# 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.

- Modules: CO
- Type: BAPI
- Function group: 0012
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-costcenter-changemultiple/

## 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)

```abap
CALL FUNCTION 'BAPI_COSTCENTER_CHANGEMULTIPLE'
  EXPORTING
    controllingarea = lv_controllingarea
  TABLES
    costcenterlist = lt_costcenterlist
    return = lt_return
    extensionin = lt_extensionin.
```

## Related tables

CSKS, CSKT

