Ansicht
Dokumentation

ISU_SAMPLE_0010 - Example 0010: Transfer Finished Document (Without Document Number)

ISU_SAMPLE_0010 - Example 0010: Transfer Finished Document (Without Document Number)

BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function modules called when the event 0010 is processed can trigger additional actions if a document is posted in the Contract Accounts Receivable and Payable (FI-CA) component and if, at the same time, open items are fully or partially cleared. All the document data except the document number, and all the data for the items to be cleared are made available by this event.

Dependencies

If the document number is also required for these additional actions, this number can be determined by a function module when the event 0030 is processed.

Two different events are required because the corresponding number range is locked once the document number is assigned and cannot be used by other users. The number range remains locked until the document is posted. The period for which it is locked must be kept as short as possible, so as to avoid inconvenience to other users. For this to be possible, no further actions that take a long time to process must occur between number assignment and posting of the document.

Since the event 0010 can trigger any additional actions, including, if necessary, those requiring more time, it is processed before number assignment. This event can process all preparations for the update of additional data and record them in internal tables. In most cases, the event 0030 then adds only the document number to these internal tables.

In addition to the event 0010, the event 0020 is available. This is processed instead of the event 0020 if items are cleared as well. Usually, if a function module is stored for the event 0100, a function module is also stored for the event 0200.

If the event 0010 constructs internal tables that are used as a basis for database operations (such as DELETE, INSERT, UPDATE) that are triggered by PERFORM ON COMMIT, a function module must be stored for the event 0090, in which the internal tables are reset by REFRESH. The event 0090 is processed if an application program is to execute a ROLLBACK WORK. Before the ROLLBACK WORK, the application program of the function module FKK_ROLLBACK_POSTING_MEMORY must be called. This function module processes various events including the event 0090.

Programming notes

The line items are transferred in the tables T_FKKOP (open items), T_FKKOPK (G/L items) and T_FKKOPW (repetition specifications). Do not change the contents or the sort sequence of the tables transferred. This may give rise to inconsistencies in the data when the data is updated. If necessary, copy the data for further processing to your own internal tables.





Parameters

I_FKKKO
T_FKKOP
T_FKKOPK
T_FKKOPW

Exceptions

Function Group

E31E

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3051 Date: 20240523 Time: 143630     sap01-206 ( 114 ms )