CO BAPI RFC Used the same way in S/4HANA

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.

Function group
0012
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
CONTROLLINGAREABAPI0012_5-CO_AREAControlling area—
COMPANYCODEBAPI0012_5-C_CODECompany code—
COSTCENTERBAPI0012_5-COSTCTRCost center (from)—
COSTCENTER_TOBAPI0012_5-COSTCTR_TOCost center (to)—
COSTCENTERGROUPBAPI0012_5-COST_CENTER_GRPCost center group—
DATEBAPI0012_5-DATEValidity date—
PERSON_IN_CHARGEBAPI0012_5-INCHARGEPerson responsible—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
COSTCENTER_LISTBAPI0012_2Cost center listYes

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_GETLIST'
  IMPORTING
    return = lv_return
  TABLES
    costcenter_list = lt_costcenter_list.

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.

Request a custom report