Ansicht
Dokumentation
BCA_DIM_BILLDOC_CANCEL - Wrapper RFC for billing Document Cancel
Vendor Master (General Section) BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Functionality
With the function module BCA_DIM_BILLDOC_CANCEL, you can reverse a billing document in the Contract Account Receivable and Payable (FI-CAx )system. This reversal process is triggered by the Account Management system (external billing system).
The reversal is stored in the FI-CAx system as a reversal billing document. The system ensures that both this document and the billing document to be reversed are not invoiced.
The import parameter I_STR_REVERSAL_DOC defines the properties of the reversal document.
The E_TAB_RETURN parameter can deliver several message numbers simultaneously. These messages are also stored in the application log under object name FS_PROT (Financial Services - Standard Log), with the subobject ERROR (Normal Error) and the External ID BILLDOC_CANCEL.
Billing Reversal
Depending on whether the billing document to be canceled is already invoiced or not, billing reversal takes place in the following two scenarios:
- Reversal of billing document not yet invoiced
- The system creates a reversal document, which consists of only a document header, but does not create any new invoicing orders.
- The sytem deletes the invoicing order of the billing document to be reversed. After deletion, the system cannot invoice reversed billing documents or reversal billing documents once again.
- Reversal of billing document already invoiced
- The system reverses the invoice document and creates a new reversal billing document, which consists of a document header with 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. Next, the system deletes the invoicing order of the billing document. After deletion, the system cannot invoice reversed billing documents or reversal billing documents once again.
- This function module carries out the following actions:
- Perform direct updates in a successful case and does not use the update task
- Perform a COMMIT WORK for each call
- Not perform any separate authorization checks
- With this function module, you cannot:
- Reverse simulated billing documents
- Reverse billing documents that have already been reversed again
- Reverse reversal documents
- Reversal billing documents require a unique reference to a document in the legacy system
Parameters
E_NEW_REVERSALDOCE_TAB_EXTENSIONOUT
E_TAB_RETURN
I_READ_ARCHIVE
I_STR_REVERSAL_DOC
I_STR_REVERSED_DOC
I_TAB_BILLDOC_REV
I_TAB_EXTENSIONIN
I_TESTRUN
Exceptions
CLEAR_ACCT_NOT_QUALIFIEDFAILED
INPUT_NOT_QUALIFIED
INVOICE_REVERSAL_FAILED
Function Group
BCA_DIM_LOANS_RFCAddresses (Business Address Services) General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 4881 Date: 20240523 Time: 182403 sap01-206 ( 57 ms )