Ansicht
Dokumentation

BAPI_BILLDOC_CANCEL - BAPI for Billing document cancel

BAPI_BILLDOC_CANCEL - BAPI for Billing document cancel

Addresses (Business Address Services)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to reverse a billing document in the Generic Contract Accounts Receivable and Payable(FI-CAX) system.

Billing documents that are already processed in FI-CAX can only be reversed but not deleted or deactivated.

A reversal billing document is created during the reversal process.

Actions Steps
Viewing a reversed billing document number: Choose REVERSEDDOC and then choose the field REFDOCNO.
Viewing a reversal billing document number: Choose REVERSALDOC and then choose the field REFDOCNO.

Billing Reversal

Depending on whether the billing document to be reversed is already invoiced or not, billing reversal takes place in the following two scenarios:

  • Reversal of billing document not yet invoiced
  • For those billing documents that have to be reversed, the system creates a new reversal billing document containing a document header. However, the system does not create any new invoicing order, as the billing documents which are not yet invoiced already contain invoicing orders

  • The system next deletes the invoicing order of the reversed billing document. After deletion, the system cannot invoice reversed billing documents or reversal billing documents once again.

  • Reversal of billing document already invoiced
  • For those billing documents that have to be reversed, the system creates a new reversal billing document containing a document header and document items. The system copies the document item values (amount and quantity) present in the reversed billing document and changes them to negative values in the new reversal billing document.

  • The system next deletes the invoicing order of the reversed billing document. After deletion, the system cannot invoice reversed billing documents or reversal billing documents once again.

Enhancement

You can enhance this BAPI by implementing the following BAdIs without any modification:

  • INV_BILL_CANCEL (along with all associated methods)
  • FKKINV_BAPIBILL (along with the method CONTRACT_ACCOUNT_DETERMINE)
Note:
  • This function module carries out the following actions:
  • Performs direct updates in a successful case and does not use the update task

  • Performs a COMMIT WORK for each call

  • Does not perform any separate authorization checks

  • With this function module, you cannot carry out the following actions:
  • Reverse simulated billing documents

  • Reverse billing documents that have already been reversed again

  • Reverse reversal billing documents

  • Reversal billing documents require a unique reference to a document in the legacy system

Example

Notes

Further information





Parameters

EXTENSIONIN
EXTENSIONOUT
NEW_REVERSALDOC
READ_ARCHIVE
RETURN
REVERSAL_DOC
REVERSED_DOC
TESTRUN

Exceptions

Function Group

INV_BILLBAPI

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5106 Date: 20240523 Time: 090145     sap01-206 ( 63 ms )