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
| Parameter | Type | Description | Required |
|---|---|---|---|
| OPERATINGCONCERN | BAPI0017-OP_CONCERN | Operating concern | Yes |
| TESTRUN | BAPI0017-TESTRUN | Test run (no update) | Yes |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| INPUTDATA | BAPI_COPA_DATA | Input data (record, field, value) | Yes |
| FIELDLIST | BAPI_COPA_FIELD | List of fields used | Yes |
| RETURN | BAPIRET2 | Return messages | Yes |
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.