SAP ABAP IMG Activity /ISDFPS/MATMASSRCDET (BAdI: Define Templates for Creating Material Master Data)
Hierarchy
EA-DFPS (Software Component) SAP Enterprise Extension Defense Forces & Public Security
   IS-DFS-MM (Application Component) Materials Management
     /ISDFPS/MM (Package) SDP BW Enhancements in Materials Management
IMG Activity
ID /ISDFPS/MATMASSRCDET BAdI: Define Templates for Creating Material Master Data  
Transaction Code /ISDFPS/11000049   IMG Activity: /ISDFPS/MATMASSRCDET 
Created on 20021206    
Customizing Attributes /ISDFPS/MATMASSRCDET   BAdI: Determine Template for Creating Material Master Data 
Customizing Activity /ISDFPS/MATMASSRCDET   BAdI: Determine Template for Creating Material Master Data 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /ISDFPS/MATMASSRCDET    

Use

With this business add-in (BAdI), you can determine a source from which to copy material master data.

The BAdI is called in report /ISDFPS/FDP_CHANGES_EXECUTE (Transfer Changes Restricted by Time from OrgFlex to MM). The report processes the following changes:

  • Changes to material planning objects (MPOs)
  • Changes to material packages (MPAs)
  • Changes to the assignment of MPOs/MPAs to force elements
  • Changes to command and control relationships or support relationships
  • Changes to addresses or to the organizational structure

You can establish the procedure for your own implementation on the basis of the standard implementation settings. A common feature of all methods is that the parameter E_SOURCE_FOUND must be set to 'X' so that the result is transferred to the calling application.

Requirements

Standard settings

The BAdI is active in the standard system. If you do not make any changes to it, the default implementation is executed automatically. This contains the following functions:

  • GET_SOURCE_SLOC: Gets a reference storage location from which the material master data is copied (MARD). First of all, the system searches the target plant for a storage location. If none is found, it uses any storage location.
  • GET_SOURCE_MRP_AREA: Gets either a plant, from which the planning data can be copied to the planning view, or an MRP area, which can be used as the source. First of all, the system checks the target plant to determine whether sufficient data is maintained for the material at plant level. If it is, the plant is used as a template. If it is not, any MRP area that contains the material is used.
  • GET_SOURCE_PLANT: Gets a plant from which the material master data is copied (MARC). Any plant containing the material is used.
  • GET_SOURCE_LGNUM: Can transfer a warehouse number from which to copy a material. No default settings are shipped in the standard implementation because no warehouse data can be copied at the moment.
  • GET_SOURCE_SALES: Gets a sales area from which the material master data is copied (MVKE). Any sales area is used.
  • GET_TARGET_MRP_DATA: Gets the MRP data that may need to be set differently to the source data in the target MRP area. Currently, this applies to the MRP controller. To transfer the data, a selection structure similar to BAPIs is used.
  • GET_SOURCES_FROM_FORCE enables you to override the force element used as the reference source for creating material master data. The system transfers the force element for which master data is to be created. The MRP controller can also be changed in this BAdI.
  • CHANGE_MATMAS_BAPIVALUES allows you to change the material data before BAPI_MATERIAL_SAVEDATA is called to create the material master data. All BAPI segments to be changed are transferred. The changes can be made dependent on the target force element and stock type ("Provisions" or "Stock").

Activities

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
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 /ISDFPS/MATMASSRCDET 0 /ISDFPS/KL10000025 Materials Management 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20021206 
SAP Release Created in 46C0