SAP Function SAMPLE_PROCESS_00104010 - Interface description for process 00104010

Parameter Reference Type Length Default Optional Text
I_FLG_RECONCILIATION LKO74-TESTLAUF C 1 X Reconciliation flag for RFFMRC13

Parameter Reference Type Length Text
E_FLG_ERROR SYST-SUBRC I 4 Error flag like SY-SUBRC

Parameter Reference Type Length Default Optional Text
C_FLG_BUFFERED C C 0 X

Parameter Reference Length Optional Text
I_T_FMBLIN IFMBLIN 532 IFMBLIN interface table


DEFINE &TEXT& = 'Budgetary ledger account derivation'
DEFINE &EVENT& = '00104010'
DEFINE &TYPE& = 'PROCESS'
INCLUDE FI_OPEN_FI_DOCUMENTATION_1 OBJECT DOKU ID TX

PROCESS
The budgetary ledger processor takes the account derivation for theUnited States as the default.
If you need to use an account derivation other than the US federalgovernment, you have to replace the function moduleFM_FG_ACCOUNTS_DERIVE using a Business Transaction Event (BTE).
If you are using the account derivation for the US federal governmentand still need to add, delete, or modify line items that cannot becustomized in account derivation customizing (transaction OFBL), copythe original FM_FG_ACCOUNTS_DERIVE to your own one starting with 'Z' andmodify it. Follow the procedure described below to replace the originalsource code.
This function module is called by process '00104010' in function moduleFM_LEDGER_LAST_CHECK (include LFMBL_EU02).
If you program your own account derivation, you need to create auser-defined function module starting with Z with the interfaceparameters as described below.
In order to replace the standard SAP function moduleFM_FG_ACCOUNTS_DERIVE, you need to execute transaction BF44 "CustomerFunction Modules per Process Interface". Create a new entry with thefollowing elements in the key:
Process PROCS = '00104010'
Country LAND = The ISO code of the country for account derivation (foundin table T005)
Application APPLK = 'IS-PS'
Function module FUNCT = Your own one starting with 'Z'
Product PRDKT = User-defined product with active status.
The customer products can be defined using transaction BF24. Do notforget to active the product used.
After the change, verify that your new record exists in table TPS34 withthe same key as defined above.
Do not modify the standard function module FM_FG_ACCOUNTS_DERIVE norreplace it in table TPS31. If your account derivation is similar to theUS federal government, copy the original function module to your ownstarting with 'Z'.

INTERFACE
The interface requires that the following parameters be passed:
E_FLG_ERROR that is an error flag that must be set in case of a missingaccount or another error
T_FMBLIN of structure type IFMBLIN containing the records for which anaccount has to be found.
The account derivation has to be programmed in order to derive theaccount for the credit and debit line items of the document.
The debit/credit lines should be identified by the account derivationbased on the following fields contained in the interface table IFMBLIN:

  • Value type - VALUE_TYPE

  • Business transaction - TRANSAC

  • Amount type - AMT_TYPE

  • Carryforward level flag - CARRYFWD_LEVEL

  • FI Document type - DOC_TYPE is the application caller is FI

  • Budget category - BDGT_SUBTYPE for budgeting transactions

  • Line type - LINE_TYPE tells whether the line is for new budget (N),
  • availability control (A), statistical (S) posting for revenue or income,or line type for open items (SPACE)
    • Ledger area - LEDGER either payment (9A) or commitment budget (9B).

    • Additional fields for account derivation could be:
      • Company code - COMP_CODE

      • Fund - FUND

      • Funds center - FUNDS_CTR

      • Commitment item - CMMT_ITEM

      • Posting date - PSTNG_DATE, etc.

      • The account derivation can be as complete or complex as necessary. As anexample for customer-defined account derivation, consider the posting ofa vendor invoice:
        • The budgetary ledger receives two lines, one with value '54' for the
        • invoice and another one from availability control with value type '44'.
          • The line with '54' has transaction 'RFBU', amount type '0100', document
          • type 'KR' (if standard document type) and line type blank. The secondline from the availability control '44' has transaction KBFC, no amounttype, no document type, line type A for availability. The other fieldsare the same for both lines.
            • For the US federal government account derivation, the credit side of the
            • document is found using the value type '54' in the open items/actualstable and the other one is found using the '44' in the budgetdistribution table.
              At the end of the customer-defined account derivation, the user has tocheck for existing and valid GL accounts and the balance of the documentsince only zero-balance documents can be posted.