SD
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- VBRK
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
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_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
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.