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

BAPI_COSTCENTER_GETDETAIL1 Cost Center Details on Key Date

Returns the master data of a cost center valid on a given key date (description, person responsible, company code, profit center, locks). Interfaces and reports use it to read cost center data or to check that a record exists. Pass the cost center number in internal format (with leading zeros); if it is not found, RETURN contains an error message.

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

Importing parameters

ParameterTypeDescriptionRequired
CONTROLLINGAREABAPI0012_GEN-CO_AREAControlling areaYes
COSTCENTERBAPI0012_GEN-COSTCENTERCost centerYes
KEYDATEBAPI0012_GEN-SOME_DATEKey date—
LANGUAGEBAPI0015_10Language for texts—

Exporting parameters

ParameterTypeDescription
COSTCENTERDETAILBAPI0012_CCOUTPUTLISTCost center details

Tables parameters

ParameterTypeDescriptionRequired
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_GETDETAIL1'
  EXPORTING
    controllingarea = lv_controllingarea
    costcenter = lv_costcenter
  IMPORTING
    costcenterdetail = lv_costcenterdetail
  TABLES
    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