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

BAPI_COPAACTUALS_POSTCOSTDATA Operating Concern: Post Costing-Based Actual Data

Posts actual profitability line items (characteristics and value fields) to an operating concern in costing-based CO-PA. Interfaces that transfer sales, rebate or freight data from external systems to profitability analysis use it instead of KE21N. List the field names you fill in FIELDLIST and pass the values per record and field in INPUTDATA; TESTRUN is mandatory, so pass it empty for a real posting and then call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
OPERATINGCONCERNBAPI0017-OP_CONCERNOperating concernYes
TESTRUNBAPI0017-TESTRUNTest run (no update)Yes

Tables parameters

ParameterTypeDescriptionRequired
INPUTDATABAPI_COPA_DATAInput data (record, field, value)Yes
FIELDLISTBAPI_COPA_FIELDList of fields usedYes
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_COPAACTUALS_POSTCOSTDATA'
  EXPORTING
    operatingconcern = lv_operatingconcern
    testrun = lv_testrun
  TABLES
    inputdata = lt_inputdata
    fieldlist = lt_fieldlist
    return = lt_return.

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