SAP Function BAPI_BILLINGDOC_CANCEL1 - Cancel Customer Individual Billing Document

Parameter Reference Type Length Default Optional Text
BILLINGDATE BF_DATM1EB D 8 X Value date
BILLINGDOCUMENT BAPIVBRKSUCCESS-BILL_DOC C 10 Number of the Billing Document to be Canceled
NO_COMMIT BAPI_NCOMT C 1 X COMMIT control at BAPI interface
TESTRUN BAPIVBRKTESTRUN-TESTRUN C 1 X Test Run ('X'), Update Run (' ')

Parameter Reference Length Optional Text
RETURN BAPIRETURN1 470 Table of Error Messages Entered
SUCCESS BAPIVBRKSUCCESS 100 Table of Successfully Processed Documents

Functionality
You can use this method to cancel a billing document.
As an input parameter, you are expected to enter a billing documentnumber in the field BILLINGDOC_NUMBER. This corresponds to the documentto be canceled.
This method can be used not only in the simulation run (TESTRUN = 'X')but also in an update run including update (TESTRUN = ' '). Bothexecution variants send back any errors that have occurred to theoutput table RETURN. If the document to be canceled has been correctlyprocessed, information on successful processing is sent back in theSUCCESS table. This ouptut table delivers in particular the documentnumber of the cancellation billing document in the update run.

Notes
Required entries :
BILLINGDOC Number of the billing document to be canceled
COMMIT Control :
In the update (TESTRUN = ' ') the update is carried out by COMMIT
WORK using the methods available.

717272Parameter BAPI_BILLINGDOC_CANCEL1
997939BAPI_BILLINGDOC_CANCEL1: SUCCESS table has errors
850626BAPI_BILLINGDOC_CANCEL1: Error VF 001
592355BAPI_BILLINGDOC_CANCEL1: SUCCESS table initial
383001BAPI_BILLINGDOC_CANCEL1: Enhancements