DEFINE &TEXT& = 'Budgetary ledger FI-GL document type derivation' DEFINE &EVENT& = '00108012' DEFINE &TYPE& = 'PROCESS' INCLUDE FI_OPEN_FI_DOCUMENTATION_1 OBJECT DOKU ID TXPROCESS The default document type for the FI-GL document generated from thebudgetary ledger is 'SA'. To use this document type, you must mustcreate the company code ranges using transaction FBN1 (or usetransaction OBH1 to copy the ranges), assigning this range to thedocument type using transaction OBA7. If the document type of the generated budgetary ledger FI-GL documentneeds to be other than the default 'SA', you must must replace thefunction module FM_LEDGER_DOCUMENT_TYPE_ASSIGN; otherwise, there is noneed for modification on this process. This standard SAP function module is called after the account derivation , inside the last check for the document just before the posting of theBL document. The function module calling this process isFM_LEDGER_LAST_CHECK (include LFMBL_EU02). Do not modify the standard SAP function moduleFM_LEDGER_DOCUMENT_TYPE_ASSIGN nor replace it in table TPS31. If youwant, copy the function module starting with 'Z' as a basis for creatingyour own function module. To replace the SAP function module, execute transaction BF44, create anentry for your function module starting with 'Z' for the key: processPROCS = '00108012' and APPLK = 'IS-PS'. Enter a customer product usingtransaction BF24. The product defined must be active. After this change, verify that the new user-defined function moduleexists in table TPS34 with the same key as above. INTERFACE The parameters for the interface are:
- E_BLART to return the document type derived
- E_FLG_ERROR in case of errors
At the end of the derivation, make sure that the document type and theranges exist for the desired company code and fiscal year. Two functionmodules that you can use for this purpose are:
- FI_DOCUMENT_TYPE_CHECK
- NUMBER_GET_INFO with the document range defined in T003 for the document
type, 'RF_BELEG' as object and company code and fiscal year from theinterface table. As a guide for the coding, check the source code in function moduleFM_LEDGER_DOCUMENT_TYPE_ASSIGN.
|