# BAPI_ACC_ACTIVITY_ALLOC_CHECK — Accounting: Check Activity Allocation

> Checks activity allocation data against the same rules as BAPI_ACC_ACTIVITY_ALLOC_POST without posting. Upload programs use it in test mode to validate all lines and list the errors to the user. It only returns messages in the RETURN table; it creates no document and needs no COMMIT.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| DOC_HEADER | BAPIDOCHDRP | Document header (controlling area, dates, user) | Yes |
| IGNORE_WARNINGS | BAPIIW-IGNWARN | Ignore warnings | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| DOC_ITEMS | BAPIAAITM | Activity allocation items | Yes |
| CRITERIA | BAPIACKECR | CO-PA characteristics | - |
| CUSTOMER_FIELDS | BAPIEXTC | Customer fields | - |
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ACC_ACTIVITY_ALLOC_CHECK'
  EXPORTING
    doc_header = lv_doc_header
  TABLES
    doc_items = lt_doc_items
    criteria = lt_criteria
    customer_fields = lt_customer_fields
    return = lt_return.
```


