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

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

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

```abap
CALL FUNCTION 'BAPI_COSTCENTER_GETLIST'
  IMPORTING
    return = lv_return
  TABLES
    costcenter_list = lt_costcenter_list.
```

## Related tables

CSKS, CSKT

