# BAPI_BILLINGDOC_CREATEMULTIPLE — Create Billing Documents (Multiple)

> Creates billing documents for the reference documents (deliveries or orders) listed in BILLINGDATAIN, like VF01 or VF04. It is used in billing jobs and interfaces that invoice external shipments. Run with TESTRUN first, check RETURN, ERRORS and SUCCESS, then call BAPI_TRANSACTION_COMMIT.

- Modules: SD
- Type: BAPI
- Function group: VBRK
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-billingdoc-createmultiple/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CREATORDATAIN | BAPICREATORDATA | Creator data (user, date) | - |
| TESTRUN | BAPIVBRKTESTRUN-TESTRUN | Test run (no update) | - |
| POSTING | POSTING_TYPE_CT | Posting type | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| BILLINGDATAIN | BAPIVBRK | Reference documents to bill | Yes |
| CONDITIONDATAIN | BAPIKOMV | Pricing conditions | - |
| CCARDDATAIN | BAPICCARD_VF | Payment card data | - |
| TEXTDATAIN | BAPIKOMFKTX | Texts | - |
| ERRORS | BAPIVBRKERRORS | Documents with errors | - |
| RETURN | BAPIRET1 | Return messages | Yes |
| SUCCESS | BAPIVBRKSUCCESS | Successfully processed documents | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
  TABLES
    billingdatain = lt_billingdatain
    conditiondatain = lt_conditiondatain
    ccarddatain = lt_ccarddatain
    textdatain = lt_textdatain
    errors = lt_errors
    return = lt_return
    success = lt_success.
```

## Related tables

KONV, VBFA, VBRK, VBRP

