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

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.

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

Importing parameters

ParameterTypeDescriptionRequired
CONTROLLINGAREABAPI0012_GEN-CO_AREAControlling areaYes
COMPANYCODE_FROMBAPI0012_GEN-COMP_CODECompany code (from)—
COMPANYCODE_TOBAPI0012_GEN-COMP_CODECompany code (to)—
COSTCENTER_FROMBAPI0012_GEN-COSTCENTERCost center (from)—
COSTCENTER_TOBAPI0012_GEN-COSTCENTERCost center (to)—
COSTCENTERGROUPBAPI0012_GEN-COST_CTR_GRPCost center group—
DATE_FROMBAPI0012_GEN-SOME_DATEValid from date—
DATE_TOBAPI0012_GEN-SOME_DATEValid to date—
PERSON_IN_CHARGE_FROMBAPI0012_GEN-PERS_IN_CHRGPerson responsible (from)—

Tables parameters

ParameterTypeDescriptionRequired
COSTCENTERLISTBAPI0012_CCLISTCost center listYes
RETURNBAPIRET2Return messagesYes

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_GETLIST1'
  EXPORTING
    controllingarea = lv_controllingarea
  TABLES
    costcenterlist = lt_costcenterlist
    return = lt_return.

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