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

ParameterTypeDescriptionRequired
CREATORDATAINBAPICREATORDATACreator data (user, date)—
TESTRUNBAPIVBRKTESTRUN-TESTRUNTest run (no update)—
POSTINGPOSTING_TYPE_CTPosting type—

Tables parameters

ParameterTypeDescriptionRequired
BILLINGDATAINBAPIVBRKReference documents to billYes
CONDITIONDATAINBAPIKOMVPricing conditions—
CCARDDATAINBAPICCARD_VFPayment card data—
TEXTDATAINBAPIKOMFKTXTexts—
ERRORSBAPIVBRKERRORSDocuments with errors—
RETURNBAPIRET1Return messagesYes
SUCCESSBAPIVBRKSUCCESSSuccessfully processed documentsYes

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.

Request a custom report