CO
BAPI
RFC
Used the same way in S/4HANA
BAPI_COSTCENTER_GETLIST1 List of Cost Centers by Selection Criteria (1)
Lists the cost centers of a controlling area by company code, business area, cost center range, cost center group, date and person responsible. Interfaces use it to export cost center master data or to build value helps. The controlling area is mandatory; leave the range parameters empty to get the whole list.
- Function group
- 0012
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| CONTROLLINGAREA | BAPI0012_GEN-CO_AREA | Controlling area | Yes |
| COMPANYCODE_FROM | BAPI0012_GEN-COMP_CODE | Company code (from) | — |
| COMPANYCODE_TO | BAPI0012_GEN-COMP_CODE | Company code (to) | — |
| COSTCENTER_FROM | BAPI0012_GEN-COSTCENTER | Cost center (from) | — |
| COSTCENTER_TO | BAPI0012_GEN-COSTCENTER | Cost center (to) | — |
| COSTCENTERGROUP | BAPI0012_GEN-COST_CTR_GRP | Cost center group | — |
| DATE_FROM | BAPI0012_GEN-SOME_DATE | Valid from date | — |
| DATE_TO | BAPI0012_GEN-SOME_DATE | Valid to date | — |
| PERSON_IN_CHARGE_FROM | BAPI0012_GEN-PERS_IN_CHRG | Person responsible (from) | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COSTCENTERLIST | BAPI0012_CCLIST | Cost center list | Yes |
| RETURN | BAPIRET2 | Return messages | 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_GETLIST1'
EXPORTING
controllingarea = lv_controllingarea
TABLES
costcenterlist = lt_costcenterlist
return = lt_return.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.