Ansicht
Dokumentation

PSM_FM_REQUEST_GL_AC - BAdI: Enhance Derivation of G/L Account

PSM_FM_REQUEST_GL_AC - BAdI: Enhance Derivation of G/L Account

BAL_S_LOG - Application Log: Log header data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

You use this Business Add-In (BAdI) to implement your own derivation of G/L account from commitment item, funds center and fund.

The BAdI is mainly called when entering requests. However, the BAdI is also run for programs that use the G/L account determination for requests, for example, when the derivation is configured for earmarked funds.

Starting from Release 1.10, the derivation of the G/L account is supported only in accordance with the commitment item. The funds center or fund are no longer considered with the G/L account determination as this can cause an error to occur in the account assignment when using component CO at the same time. This is due to the flow of account assignment derivations:

Overview of flow of account assignment derivation for requests

  1. Manual entry of account assignments such as commitment item, CO account assignment and so on.
  2. Derivation of G/L account from the commitment item and calling the BAdI
  3. Derivation of more account assignments using the account assignment block and simultaneous calling of the Define Account Assignment Derivation for deriving FM account assignments (for example, funds center from cost center or funds center as default funds center of the respective commitment item).

In accordance with this flow logic (steps 1 - 3), the following problems may occur when using the BAdIs:

  • If you do not enter the funds center in step 1 manually, but it is first derived in step 3, you cannot use the funds center to derive the G/L account in step 2.

  • If you enter the funds center in step one instead, then the G/L account is derived through the activated BAdI depending on step 2. If a different funds center is derived in step 3, the derived G/L account may not match the derived funds center.

If you want to enter a funds center and fund (in spite of the mentioned problems) for the G/L account derivation, you can create a customer- specific implementation using this BAdIs. You can use the coding example of the BAdI delivered by SAP for this. With this coding example the G/L account is derived in accordance with the commitment item, funds center and fund entered in the request.

In this case, you must ensure that:

  1. the funds center or fund of the user necessary for the derivation (step 1) has been entered
  2. the funds center and fund entered are not overwritten by derived values with the account assignment derivation (step 3)

The BAdI is not active in the standard delivery.

In order to copy the sample coding example to your customer method, on the initial screen of your implementation, choose Go To -> Coding Example -> Copy.

Documentation on BAdI method DERIVE_GL_ACCOUNT






RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3283 Date: 20240523 Time: 184704     sap01-206 ( 55 ms )