Ansicht
Dokumentation

FKK_SAMPLE_2647 - INV: Transfer Completed Invoicing Document (without Document Number)

FKK_SAMPLE_2647 - INV: Transfer Completed Invoicing Document (without Document Number)

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function modules called at event 2647 allow you to trigger additional action when an invoicing document is posted in Contract Accounts Receivable and Payable. You can also check the invoicing document (including its environment) here for the last time before it is updated.

The invoicing document and all posting documents to be created - with the exception of their document numbers - are available in this event.

Dependencies

If the additional action also requires knowing the document numbers, these can be determined using a function module at event 2648.

Two events are required, since once the document number has been assigned, the corresponding number range is locked and is therefore unavailable to other users. This lock remains in place until the document is posted. You should try to ensure that the duration of the lock, and the resulting hindrance to other users, is kept as short as possible. This is achieved if no time-consuming actions take place between the assignment of the document number and posting of the document.

Since all kinds of additional actions can be initiated at event 2647, and the action may be time-consuming, this event is processed prior to document number assignment. At this event you can carry out all preparations for updating further data and have this data recorded in internal tables. At event 2648, the only data that is normally added to these internal tables is the document number.

If internal tables are created at event 2647, and these tables form the basis for database operations (DELETE, INSERT, UPDATE) that are triggered by PERFORMON COMMIT, you have to ensure, using a PERFORM ON ROLLBACK, that a REFRESH of these tables takes place in the case of a ROLLBACK WORK.





Parameters

C_INVDOC
I_INV_UNIT_PUBLIC

Exceptions

Function Group

FKKINV_EVENT

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2022 Date: 20240523 Time: 071511     sap01-206 ( 54 ms )