Ansicht
Dokumentation

FKK_CREATE_DOC_ADDITIONAL - Post Additional Document

FKK_CREATE_DOC_ADDITIONAL - Post Additional Document

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

Functionality

You use this function if an additional document is to be created when you are creating a document due to certain data constellations.

The module is called at events 0010, 0020 or 0030 for the original document.

You can create up to 9 additional documents. Additionally, if you set the parameter I_XXL_ACTIVE, you can generate up to 9999 additional documents. However, recursive calls are not permitted. An additionally generated document may then not trigger the generation of additional documents using the events 0010 - 0030.

Example

Notes

Module FKK_CREATE_DOC_ADDITIONAL flags the creation of an additional document. All flags are processed in order once the creation of the original, triggering document has been completed.

Therefore, FKK_CREATE_DOC_ADDITIONAL cannot return the assigned document number. Instead, a value is returned in the parameter E_HANDLE; this value enables the subsequent determination of the document number. If you need the document number, proceed as follows:

  • The function module processed in event 0010, 0020, or 0030 calls the module FKK_CREATE_DOC_ADDITIONAL and notes the return value E_HANDLE or E_HANDLE_XXL in a global data field (MY_HANDLE) of the function group.
  • The function module is to be created in the same function group in accordance with the template FKK_SAMPLE_0031. This function module is entered in Customizing for event 0031.
  • Event 0031 is processed for each additional document. The values E_HANDLE or E_HANDLE_XXL and the related document number assigned is transferred to all function modules registered. All calls with E_HANDLE <> MY_HANDLE or E_HANDLE_XXL <> MY_HANDLE should be ignored. See also the example coding in the sample function module FKK_SAMPLE_0031.

Further information





Parameters

E_HANDLE
E_HANDLE_XXL
I_FKKKO
I_XXL_ACTIVE
T_FKKCL
T_FKKOP
T_FKKOPK
T_FKKOPL

Exceptions

Function Group

FKB0

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2246 Date: 20240523 Time: 121708     sap01-206 ( 52 ms )