SAP ABAP IMG Activity FAGL_MM_RECON (Master Data Enhancement for Bal. Reconcil. Btwn Gen. Ledger and Matls Mgmt)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FI-GL (Application Component) General Ledger Accounting
     FAGL_MM_RECON (Package) Reconciliation of MM / ML with GL
IMG Activity
ID FAGL_MM_RECON Master Data Enhancement for Bal. Reconcil. Btwn Gen. Ledger and Matls Mgmt  
Transaction Code S_EB5_05000652   (empty) 
Created on 20100121    
Customizing Attributes FAGL_MM_RECON   Master Data Enhancement for Bal. Reconcil. Btwn Gen. Ledger and Matls Mgmt 
Customizing Activity FAGL_MM_RECON   Master Data Enhancement for Bal. Reconcil. Btwn Gen. Ledger and Matls Mgmt 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name FAGL_MM_RECON    

Use

This Business Add-In (BAdI) is used in the General Ledger Accounting (FI-GL) component. You 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 new 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 (New).

  • 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.

Requirements

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 (New) under Financial Accounting Global Settings (New) -> Ledgers -> Fields -> Customer Fields.

Standard settings

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).

Activities

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

Example

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 field WERKS to the append structure and assign to this field the same data type as the field in table ZZFAGLFLEXT.

  2. 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.

See also

BAdI method documentation:

Business Attributes
ASAP Roadmap ID 203   Establish Master Data 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG FAGL_MM_RECON 0 HLA0001205 Closing Operations 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20100121 
SAP Release Created in 605