CO
BAPI
RFC
Used the same way in S/4HANA
BAPI_COSTCENTER_CHANGEMULTIPLE Change One or More Cost Centers
Changes the master data of existing cost centers in a controlling area in bulk. Programs that mass-update fields such as person responsible, profit center or lock indicators use it instead of KS02. RESET_FILLED_FIELDS controls how empty fields in the input are handled; check the RETURN table after the call and then call BAPI_TRANSACTION_COMMIT.
- Function group
- 0012
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| CONTROLLINGAREA | BAPI0012_GEN-CO_AREA | Controlling area | Yes |
| TESTRUN | BAPI0012_GEN-TESTRUN | Test run (no update) | — |
| MASTER_DATA_INACTIVE | BAPI0012_GEN-MASTER_DATA_INACTIVE | Inactive master data | — |
| LANGUAGE | BAPI0015_10 | Language for texts | — |
| RESET_FILLED_FIELDS | BAPIFLAG-BAPIFLAG | Reset filled fields | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COSTCENTERLIST | BAPI0012_CCINPUTLIST | Cost centers to change | Yes |
| RETURN | BAPIRET2 | Return messages | Yes |
| EXTENSIONIN | BAPIPAREX | Customer extension fields (input) | — |
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_CHANGEMULTIPLE'
EXPORTING
controllingarea = lv_controllingarea
TABLES
costcenterlist = lt_costcenterlist
return = lt_return
extensionin = lt_extensionin.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.