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

- 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-getlist1/

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

```abap
CALL FUNCTION 'BAPI_COSTCENTER_GETLIST1'
  EXPORTING
    controllingarea = lv_controllingarea
  TABLES
    costcenterlist = lt_costcenterlist
    return = lt_return.
```

## Related tables

CSKS, CSKT

