Ansicht
Dokumentation

FAGL_MM_RECON - Master Data Enhancement for Bal. Reconcil. Btwn Gen. Ledger and Matls Mgmt

FAGL_MM_RECON - Master Data Enhancement for Bal. Reconcil. Btwn Gen. Ledger and Matls Mgmt

CPI1466 during Backup   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the General Ledger Accounting (FI-GL) component. You can use this BAdI to define additional G/L account assignments for the programs used to compare the stocks in Materials Management against the balances of assigned balance sheet accounts in General Ledger Accounting. You can also use this BAdI to deactivate G/L account assignments in individual company codes so that they are not reconciled when the following programs are run:

  • Program for the initial reconciliation after starting to use the material ledger in the production system (FAGL_ML_ADJUST_INITIAL)
To call this program, go to the SAP Easy Access screen and choose Logistics -> Materials Management -> Valuation -> Actual Costing/Material Ledger -> Environment -> Production Startup -> Reconciliation with Balance Sheet Accounts in FI.
  • Program for comparing balances in General Ledger Accounting against stocks in Materials Management (FAGL_MM_RECON)
To call this program, go to the SAP Easy Access menu and choose Accounting -> Financial Accounting -> General Ledger -> Periodic Processing -> Closing -> Check/Count -> Balance Comparison: General Ledger - Materials Management.

Using the methods defined for the BAdI, the system assigns, for each valuation area and plant, the values of the corresponding G/L account assignments to the stock values determined. For this, the data of structure FAGL_MM_MATERIAL_DATA is used. If no values can be derived from the data in the structure for a G/L account assignment, analysis of that G/L account assignment is not possible.

Note

As with the standard logic for deriving profit centers, the G/L account assignments used must have a unique assignment to a stock value in Materials Management. Using a free assignment for each goods movement or deriving the G/L account assignment from other CO account assignments is not supported.

For the definition of additional G/L account assignments, you have added additional fields in structure FAGL_MM_REPORT_DIMENSIONS. Proceed as follows:

  1. In transaction SE11, create an append structure in a separate namespace for structure FAGL_MM_REPORT_DIMENSIONS.
  2. Include the general ledger fields for reconciliation as components in the append structure.

Ensure that the names and the data types of the fields in the append structure match the names and the data types of the fields defined in the general ledger table used. The settings for customer fields in the G/L table are made in Customizing for Financial Accounting, under Financial Accounting Global Settings -> Ledgers -> Fields -> Customer Fields.

For more information on the standard settings (filters, single or multiple use), see the Enh. Spot Element Definitions tab page in the BAdI Builder (transaction SE18).

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

You want to define general ledger characteristic ZZWERKS from table ZZFAGLFLEXT as an additional account assignment. Proceed as follows:

  1. Add to table FAGL_MM_REPORT_DIMENSIONS.
To define the general ledger characteristic ZZWERKS as an additional account assignment, copy the field ZZWERKS to the append structure. Assign this field the same data type as the field in table ZZFAGLFLEXT.
  1. Implement method Assign Account Assignment Value to Material as follows:
METHOD if_fagl_mm_recon_master_data~assign_field_to_material.
  CASE iv_dimension.
    WHEN 'ZZWERKS'.
          ev_assignment = is_material_data-werks.
  ENDCASE.
ENDMETHOD.

Note
Since the WERKS field is already found in structure IS_MATERIAL_DATA, it is not necessary to implement method Determine General Ledger Acct Assignment for Material List in this case.

BAdI method documentation:






BAL Application Log Documentation   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 7199 Date: 20240523 Time: 200146     sap01-206 ( 156 ms )