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

BAPI_COSTACTPLN_POSTPRIMCOST Post Primary Cost Planning

Posts primary cost planning in a plan version for CO objects such as cost centers and orders (the counterpart of KP06). Programs that transfer budget and plan data from Excel or planning tools to CO use it. The COOBJECT and PERVALUE/TOTVALUE rows are linked through INDEXSTRUCTURE; DELTA = 'X' adds to the existing plan, and if RETURN has no errors call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
HEADERINFOBAPIPLNHDRPlan header (controlling area, year, periods, version)Yes
DELTABAPI6031_CTRLDATA-DELTAAdd change to existing plan (delta)—

Tables parameters

ParameterTypeDescriptionRequired
INDEXSTRUCTUREBAPIACPSTRUIndex linking objects and value rowsYes
COOBJECTBAPIPCPOBJPlanned CO objectsYes
PERVALUEBAPIPCPVALPeriod plan values—
TOTVALUEBAPIPCPTOTTotal plan values—
CONTRLBAPIPCPCTRLDistribution key control data—
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_COSTACTPLN_POSTPRIMCOST'
  EXPORTING
    headerinfo = lv_headerinfo
  TABLES
    indexstructure = lt_indexstructure
    coobject = lt_coobject
    pervalue = lt_pervalue
    totvalue = lt_totvalue
    contrl = lt_contrl
    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