# 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.

- Modules: CO
- Type: BAPI
- Function group: KEBAPI1169
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-copaactuals-postcostdata/

## 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)

```abap
CALL FUNCTION 'BAPI_COPAACTUALS_POSTCOSTDATA'
  EXPORTING
    operatingconcern = lv_operatingconcern
    testrun = lv_testrun
  TABLES
    inputdata = lt_inputdata
    fieldlist = lt_fieldlist
    return = lt_return.
```


