Ansicht
Dokumentation

FKKINV_EVENT_SAMPLE_2665_XX - Change correction category of tax invoice trigger in case of reversal

FKKINV_EVENT_SAMPLE_2665_XX - Change correction category of tax invoice trigger in case of reversal

Addresses (Business Address Services)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

If an invoicing document is reversed, new invoicing orders are created for the source documents included in this invoicing document to enable a new invoicing. In the function module defined for event 2665, for each invoicing order, you can set the earliest possible date for a new invoicing and set the indicator for separate invoicing of the related source document.

Function module FKKINV_EVENT_SAMPLE_2665_XX is used to control revision processes of documents if there is a reversal that affects official document numbering.

A revision process handles documents that are technically normal documents that do not change existing documents, but from a legal point of view have to be handled as a correction of a document such as a credit or debit note.

This function module changes the correction category value of a document trigger (FKKINV_TRIG_TAB) to the value that is used in a specific revision process for the corresponding document created from this document trigger. The value change is performed if a corresponding reversal reason is assigned to the reversal document.

The correction category value is used as follows:

  • It is used in event 2645 to affect the generation of legal document references and official document numbers (external official document numbering).
  • It is used in events 2658 and 2667 to determine a sub-ID to derive a document class from Customizing for the offical document number. A document class may be configured to use an external official document number created in event 2645.

The sample function module uses the value RR for the reversal reason used in a Russian revision process. If this value does not match your system settings, copy the function module and change the coding to set a different value for the reversal reason constant (lc_reverse_reason_revision_ru).

Example

Notes

Prerequisites:

We do notdeliver values that can be used to enter a reversal reason if a document is posted. Before you use the function module, you must therefore enter the required values in the Customizing table TFK2661. Note that a reversal reason value is not country-dependent.

If a reversal is posted the relevant reversal reason must be entered.

Further information





Parameters

C_INV_TRIG_TAB
I_FKKVKP
I_REVERSED_DOC
I_REVERSE_PARAMS

Exceptions

Function Group

FKKINV_ODN_EVENT_XX

ROGBILLS - Synchronize billing plans   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2738 Date: 20240523 Time: 053806     sap01-206 ( 62 ms )