Ansicht
Dokumentation

/ISDFPS/MATMASSRCDET - BAdI: Determine Template for Creating Material Master Data

/ISDFPS/MATMASSRCDET - BAdI: Determine Template for Creating Material Master Data

Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

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.

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






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3630 Date: 20240427 Time: 004127     sap01-206 ( 63 ms )