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

BAPI_PROFITCENTER_CREATE Create Profit Center

Creates a new profit center master record in a controlling area for the given validity period. Programs that load profit centers from an external system or Excel use it instead of KE51. Pass the company code assignments in the COMPANYCODES table and call BAPI_TRANSACTION_COMMIT if RETURN contains no type E/A message.

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

Importing parameters

ParameterTypeDescriptionRequired
PROFITCENTERIDBAPI0015ID2Profit center key (controlling area + profit center)Yes
VALIDFROMBAPI0015_3-DATEValid from dateYes
VALIDTOBAPI0015_3-DATEValid to dateYes
BASICDATABAPI0015_4Basic dataYes
ADDRESSBAPI0015_5Address data—
COMMUNICATIONBAPI0015_6Communication data—
INDICATORSBAPI0015_8Indicators—
TESTRUNBAPI0015_9Test run (no update)—
LANGUAGEBAPI0015_10Language for texts—

Exporting parameters

ParameterTypeDescription
CONTROLLINGAREABAPI0015ID2-CO_AREAControlling area
PROFITCENTERBAPI0015ID2-PROFIT_CTRCreated profit center
RETURNBAPIRET2Return message

Tables parameters

ParameterTypeDescriptionRequired
COMPANYCODESBAPI0015_7Company code assignments—

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_PROFITCENTER_CREATE'
  EXPORTING
    profitcenterid = lv_profitcenterid
    validfrom = lv_validfrom
    validto = lv_validto
    basicdata = lv_basicdata
  IMPORTING
    controllingarea = lv_controllingarea
    profitcenter = lv_profitcenter
    return = lv_return
  TABLES
    companycodes = lt_companycodes.

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