SD BAPI RFC Used the same way in S/4HANA

BAPI_BILLINGDOC_CANCEL1 Cancel Billing Document

Cancels a customer billing document and creates the cancellation document, like VF11. It is used in correction programs and interfaces that reverse invoices. Run it with TESTRUN first, check RETURN and SUCCESS, and call BAPI_TRANSACTION_COMMIT unless NO_COMMIT handling is in place.

Function group
VBRK
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
BILLINGDOCUMENTBAPIVBRKSUCCESS-BILL_DOCBilling document numberYes
TESTRUNBAPIVBRKTESTRUN-TESTRUNTest run (no update)—
NO_COMMITBAPI_NCOMTDo not commit inside the BAPI—
BILLINGDATEBF_DATM1EBCancellation billing date—

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRETURN1Return 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_CANCEL1'
  EXPORTING
    billingdocument = lv_billingdocument
  TABLES
    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