Ansicht
Dokumentation

FKK_SAMPLE_2770 - INV: Reversal of Billing Document

FKK_SAMPLE_2770 - INV: Reversal of Billing Document

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can reverse a billing document in event 2770.

Event 2770 is run to reverse billing documents that do not have origin process 0001 Billing in Contract Accounts Receivable and Payable. You cannot use this event to influence billing documents that originate from billing in Contract Accounts Receivable and Payable.

Also note that event 2770 does not contain explicit reversal logic for billing documents. The event enables you to implement a reversal process dependent on the origin process of the billing document and to integrate the process in a dialog transaction, FKKINVBILL_REV_S, intended for this purpose. This allows you to reverse billing documents of differing origin processes using one interface.

For implementing this reversal process for an origin process, a distinction needs to made between synchronous and asynchronous reversal.

  • Synchronous reversal
The reversal of the billing document is executed directly in event 2770. This type of reversal is possible only for those origin processes (billing processes) that can communicate synchronously with inbound processing for billing documents in invoicing in Contract Accounts Receivable and Payable.
Note: The reversal of a billing document must always be performed using a reversal billing document that is sent to invoicing in Contract Accounts Receivable and Payable using inbound processing ("reversal BAPI"). This means that, in event 2770, you have to implement the call of a reversal BAPI suitable to the origin process.
In the case of a synchronous reversal in event 2770, return the document number of the reversal billing document in parameter E_REVERSALDOC.
  • Asynchronous reversal
For those origin processes that do not communicate synchronously with invoicing in Contract Accounts Receivable and Payable, you can use event 2770 to trigger asynchronous reversal of the billing document.
This does not actually reverse the billing document. The billing document is not reversed in invoicing in Contract Accounts Receivable and Payable until the billing process (origin process) has sent a reversal billing document to inbound processing for billing documents. Remember that the billing document in invoicing in FI-CA is not considered to be reversed until that happens, and that it can therefore be selected again for (asynchronous) reversal.
In the case of an asynchronous reversal in event 2770, select the E_REVTRIGGERED parameter.

Example

Notes

The BAPIs for generating and reversing billing documents are implemented on an application-specific basis.

After event 2770 was executed successfully, a COMMIT WORK is performed. If the execution of event 2770 ends with an error, then a ROLLBACK WORK is executed.

Further information





Parameters

E_DOCTYPE
E_DOCTYPE_EXT
E_REFDOCNO
E_REVTRIGGERED
I_BILLDOC
I_DIALOG
I_SRCPROCESS

Exceptions

Function Group

FKKINV_EVENT

ABAP Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3454 Date: 20240523 Time: 081620     sap01-206 ( 76 ms )