Ansicht
Dokumentation

SAMPLE_PROCESS_00108012 - Assign FM budgetary ledger document type 'SA'

SAMPLE_PROCESS_00108012 - Assign FM budgetary ledger document type 'SA'

General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is an interface description only and does not contain any instructions. It is intended for developers of those additional components that provide their own function module at Event 00108012 (Budgetary ledger FI-GL document type derivation).

Function module SAMPLE_PROCESS_00108012 must not be changed.

If you want to create your own function module that is to be accessed at the callup point mentioned above, proceed as follows:

  1. Copy the function module to your own name range.
  2. Do not change any transfer parameters !!
  3. Write your own coding in the copied function module.
  4. Save and activate your function module.
  5. Carry out the necessary settings in Customizing. Business Transaction Events

PROCESS

The default document type for the FI-GL document generated from the budgetary ledger is 'SA'. To use this document type, you must must create the company code ranges using transaction FBN1 (or use transaction OBH1 to copy the ranges), assigning this range to the document type using transaction OBA7.

If the document type of the generated budgetary ledger FI-GL document needs to be other than the default 'SA', you must must replace the function module FM_LEDGER_DOCUMENT_TYPE_ASSIGN; otherwise, there is no need 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 the BL document. The function module calling this process is FM_LEDGER_LAST_CHECK (include LFMBL_EU02).

Do not modify the standard SAP function module FM_LEDGER_DOCUMENT_TYPE_ASSIGN nor replace it in table TPS31. If you want, copy the function module starting with 'Z' as a basis for creating your own function module.

To replace the SAP function module, execute transaction BF44, create an entry for your function module starting with 'Z' for the key: process PROCS = '00108012' and APPLK = 'IS-PS'. Enter a customer product using transaction BF24. The product defined must be active.

After this change, verify that the new user-defined function module exists 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 the ranges exist for the desired company code and fiscal year. Two function modules 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 the interface table.

As a guide for the coding, check the source code in function module FM_LEDGER_DOCUMENT_TYPE_ASSIGN.





Parameters

E_BLART
E_FLG_ERROR

Exceptions

Function Group

FMFS_BFFMSMPL_E

Fill RESBD Structure from EBP Component Structure   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3350 Date: 20240604 Time: 063506     sap01-206 ( 62 ms )