Ansicht
Dokumentation
FKK_SAMPLE_2655 - INV: Determine Previous Invoicing
General Data in Customer Master General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
At event 2655, you can determine the previous invoicing document for a given invoicing document or invoicing. This event is called during the creation of the payment history in invoicing and in invoice printing. For orientation, a table of all possible invoicing document headers and either the current invoicing document header being processed I_CURRENT_INVDOC_H (if the module is called during invoice printing) or the general data part of the current invoicing unit I_INV_UNIT_PUBLIC being processed are given to the module. Note that generally, only one of these parameters contains information. I_INVDOC_H_TAB also contains a table with all possible invoicing document headers.
From this table you can determine the last relevant invoicing document for further consideration and return it as C_LAST_INVDOC_H. If no document is determined at this point, the last invoicing document header created is taken from table I_INVDOC_H_TAB for further processing. The parameters C_IGNORE_REVERSED_DOC and C_IGNORE_REVERSAL_DOC define whether reversed documents and reversal documents are considered in further processing. These parameters have default value X, meaning that in the standard, neither reversal nor reversed documents are considered. However, if such documents are also to be considered, set this indicator to # #.
Alternatively you can determine a date C_START_DATE and time C_START_TIME directly. In this case, this data forms the basis of further processing, but only if C_LAST_INVDOC_H is not set.
Example
Notes
Further information
Parameters
C_IGNORE_REVERSAL_DOCSC_IGNORE_REVERSED_DOCS
C_LAST_INVDOC_H
C_START_DATE
C_START_TIME
I_CURRENT_INVDOC_H
I_INVDOC_H_TAB
I_INV_UNIT_PUBLIC
Exceptions
Function Group
FKKINV_EVENTABAP Short Reference ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 2306 Date: 20240523 Time: 075955 sap01-206 ( 64 ms )