CO
BAPI
RFC
Used the same way in S/4HANA
BAPI_COSTCENTER_GETLIST List of Cost Centers by Selection Criteria
Lists cost centers by controlling area, company code, cost center range, cost center group or person responsible. It is the older version of the interface and its RETURN parameter uses BAPIRETURN. For new developments prefer BAPI_COSTCENTER_GETLIST1, which does the same with BAPIRET2.
- Function group
- 0012
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| CONTROLLINGAREA | BAPI0012_5-CO_AREA | Controlling area | — |
| COMPANYCODE | BAPI0012_5-C_CODE | Company code | — |
| COSTCENTER | BAPI0012_5-COSTCTR | Cost center (from) | — |
| COSTCENTER_TO | BAPI0012_5-COSTCTR_TO | Cost center (to) | — |
| COSTCENTERGROUP | BAPI0012_5-COST_CENTER_GRP | Cost center group | — |
| DATE | BAPI0012_5-DATE | Validity date | — |
| PERSON_IN_CHARGE | BAPI0012_5-INCHARGE | Person responsible | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN | Return message |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COSTCENTER_LIST | BAPI0012_2 | Cost center list | Yes |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_COSTCENTER_GETLIST'
IMPORTING
return = lv_return
TABLES
costcenter_list = lt_costcenter_list.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.