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

BAPI_COSTCENTER_CREATEMULTIPLE Create One or More Cost Centers

Creates one or more cost center master records in a controlling area in a single call. It replaces KS01 in cost center upload programs and master data interfaces. Run it first with TESTRUN = 'X', check the RETURN table for type E/A messages, then call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
CONTROLLINGAREABAPI0012_GEN-CO_AREAControlling areaYes
TESTRUNBAPI0012_GEN-TESTRUNTest run (no update)—
MASTER_DATA_INACTIVEBAPI0012_GEN-MASTER_DATA_INACTIVECreate master data as inactive—
LANGUAGEBAPI0015_10Language for texts—

Tables parameters

ParameterTypeDescriptionRequired
COSTCENTERLISTBAPI0012_CCINPUTLISTCost centers to createYes
RETURNBAPIRET2Return messagesYes
EXTENSIONINBAPIPAREXCustomer extension fields (input)—

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

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