SAP Function SAMPLE_PROCESS_00105010 - Interface description for process 00105010

Parameter Reference Type Length Default Optional Text
I_FLG_RFFMTOBL LKO74-TESTLAUF C 1 X Perform test run
I_F_IFMBLIN IFMBLIN u 532 X Budgetary Ledger Interface
I_INTCA T005-INTCA C 2 X Country ISO code

Parameter Reference Type Length Default Optional Text
C_BDGT_SUBTYPE BP_SUBVO C 4 X Budget subtype
C_COST_CTR KOSTL C 10 X Cost Center
C_FUNC_AREA FKBER C 16 X Functional Area
C_FUNDS_CTR FISTL C 16 X Funds center
C_OBJECT_NO J_OBJNR C 22 X Object number
C_ORDER_NUM AUFNR C 12 X Order Number
C_WBS_ELEMENT PS_POSNR N 8 X WBS element


DEFINE &TEXT& = 'Budgetary ledger data collection on funds center'
DEFINE &EVENT& = '00105010'
DEFINE &TYPE& = 'PROCESS'
INCLUDE FI_OPEN_FI_DOCUMENTATION_1 OBJECT DOKU ID TX

PROCESS
This BTE function module belongs to the budgetary ledger (BL) process.It collects certain fields according to user requirements. Aftercollecting the fields, a standard routine inside the BL is called forcollection of fields. This way the user has the option of collecting oreven removing lines from the resulting document. The result can be fewerlines collected by GL account, or even no lines and consequently nodocument posted.
The changing parameters currently being passed are the funds center, thefunctional area, the CO objects (object number, cost center, ordernumber, and WBS element), and the budget subtype.
The default action in this module is to clear the budget subtype forbudgeting (when CO transaction is from budgeting and the value type isnot an actuals/open items value.
The CO objects are cleared, unless if the call is from program RFFMTOBLor RFFMTOBL1 for posting encumbrances for US state and localgovernments.
The funds center is only cleared if the CO transaction is from budgetingand is not an original budget, but only if the account derived was forthe proprietary ledger - in other words, for transfers and only forproprietary entries.
However, if you need to clear any of the fields based on certainconditions, the BL interface record being processed is passed as animport parameter (changes to the BL interface records are not allowedexcept for the fields passed as changing parameters).
The main reason for clearing some or all of the fields is the collectionof lines for the budgetary ledger document. For example, based on theaccount derivation rules, two lines of the interface table could bederived from the same GL account. However, they could have differentfunds centers. In this case, if the funds center remains uncleared (withits original value), then two different lines in the document will becreated. If you need these two lines with the same GL account to becollected, thus getting only one with the amounts added (or substracteddepending on the sign), then the BTE module would need to be replaced.
Do not change any standard SAP code related to FM_LEDGER_LAST_CHECK orFM_FG_DATA_COLLECT. If you need your own function module, create itstarting with 'Z' as copy of FM_FG_DATA_COLLECT. Do not change thecontent of the internal interface table. If you need to add, delete, ormodify line items, refer to process '00104010'.
If you are usinng the US federal government account derivation, a betteroption than creating a user-defined function module copied from theSAP-delivered one is to create a function module with exactly the sameparameters as the ones in the original one and then insert the call tothe original function module. After the original logic has been executed
, your customer-specific logic can be inserted after the call.
This Business Transaction Event (BTE) process is called after theaccount derivation and just before the last check for the documentposting. The call is found in subroutine DATA_COLLECT (includeLFMBL_EF09) called from function module FM_LEDGER_LAST_CHECK.
To replace this SAP application function module FM_FG_DATA_COLLECT withone of your own, execute transaction BF44, enter your own functionmodule starting with 'Z' and key Process '00105010' and 'IS-PS' asapplication. Also, enter a customer product with status "active". Usetransaction BF24 to create and activate the customer product.
After the changes, verify that the new user-defined function moduleexists as a field in table TPS34 with the same key as indicated above.

INTERFACE
IMPORT PARAMETERS
I_F_IFMBLIN LIKE STRUCTURE IFMBLIN.- Current BL interface table beingprocess; some of the fields could be used as conditions for clearingchanging parameters. Changes to the contents of this record are notallowed.
I_FLG_RFFMTOBL LIKE LKO74-TESTLAUF.- This flag is set to 'X' when thecall to the budgetary ledger is from the RFFMTOBL or RFFMTOBL1 programs.Optional.
CHANGING
C_FUNDS_CTR.- Current value for funds center. Optional.
C_FUNC_AREA.- Functional area. Optional.
C_OBJECT_NO.- CO Object number. Optional.
C_COST_CTR.- CO cost center. Optional.
C_ORDER_NUM.- CO order number. Optional.
C_WBS_ELEMENT.- WBS element. Optional.
C_BDGT_SUBTYPE.- Budget subtype for budgeting transactions. Optional.
EXAMPLE
If you need to clear the funds center for lines collection, write thefollowing code:
CLEAR: C_FUNDS_CTR.