Ansicht
Dokumentation

/ISDFPS/MATMAS_COPY - Copy Material Master Data

/ISDFPS/MATMAS_COPY - Copy Material Master Data

Vendor Master (General Section)   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Use

To create material masters in the Structures Workbench using references

Integration

Material master data is called up at different times to be maintained:

  • From the Structures Workbench:
    In the force element for which the material master data is to be created, you can choose Create Material Master Data on the Stock/Provisions tab page.
  • From background processing for changes in the Structures Workbench:
    When you assign material planning objects (MPOs) or material packages to a force element, the system updates a change entry. These change entries are processed at regular intervals using the report /ISDFPS/FDP_CHANGES_EXECUTE. Here, material master data is created for the materials of the MPOs and material packages that are assigned to the changed force element.
  • From background processing for material changes in MPOs and material packages:
    As for assignment changes in the Structures Workbench, change entries are also written for material assignments, which can also be processed using report /ISDFPS/FDP_CHANGES_EXECUTE.
  • From the framework for follow-up activities when the force element status changes.

Prerequisites

The basis for creating material master data for a force element (Dest. Force Element field) is a reference force element (Reference Force Element field), for which the relevant material master views have already been maintained. If a reference does not exist (for example, in background processing), you can use BAdI /ISDFPS/MATMASSRCDET to specify a reference.

Features

Depending on the Schedule Background Job indicator, the report can be scheduled either in online mode or started as a batch job in the background.

On the selection screen, you have to enter an MRP controller (which is copied to the material master data), in addition to the reference force element and target force element for which the material master data is to be created.

First, the current plant and storage location are read from the reference force element on the Stock Element subscreen if this data has been entered. Alternatively, the method GET_SOURCE_FORCE of the aforementioned BAdI is called to determine a reference force element.

The reference values (plant, storage location, distribution chain) can then be overwritten by the method GET_SOURCES_FROM_FORCE.

Master data for stock is created, followed by master data for provisions.

Create master data for stock

First, the values that are relevant for logistics are determined for the target force element: the target plant, target storage location (from the Stock subscreen) and the distribution chain assigned to this storage location.

The materials for all the MPOs assigned to the target force element are then determined. (If the report is called via change management for report /ISDFPS/FDP_CHANGES_EXECUTE with a single MPO, only the materials assigned to this MPO are determined.

The following is then carried out in a loop over the materials:

  • If the target distribution chain is empty, it can be determined using the method GET_TARGET_SALES of the aforementioned BAdI.
  • If the target plant is empty, it can be determined using the method GET_SOURCE_PLANT of the aforementioned BAdI.
  • If the source distribution chain is empty, it can be determined using the method GET_SOURCE_SALES of the aforementioned BAdI.
  • The source data used as a reference and target data to be created for the material views are reported in the application log.
  • The sales views for the specified materials are created based on the source data using the function module /ISDFPS/MATMAS_PLANT_SLOC.

The following is then carried out in another loop over the materials:

  • If no reference data is transferred (that is, either the reference force element is not transferred or a combination of plant and storage location does not exist as a reference), the reference data is determined using the method GET_SOURCE_SLOC (stock type = S for stock) of the aforementioned BAdI.
  • The plant and storage location views for the specified materials are created based on the source data using the function module /ISDFPS/MATMAS_PLANT_SLOC.

Create master data for provisions

The materials for all the material packages assigned to the target force element are determined. (If the report is called via change management for report /ISDFPS/FDP_CHANGES_EXECUTE with a single provisions package (PPA), only the materials assigned to this PPA are determined.)

The following is then carried out in a loop over the materials:

  • The storage locations assigned to the MRP area are read for the target force element entered on the Provisions subscreen.
  • The following is carried out in a loop across all assigned storage locations of the target MRP:
  • For the target storage location and target plant (the receiving plant in the target MRP area), the system reads the distribution chain assigned to the storage location. If a distribution chain is not entered here, it can be determined with the method GET_TARGET_SALES.

  • If a reference force element is specified, the method GET_SOURCES_FROM_FORCE is called to determine or overwrite the reference plant, reference storage location, and distribution chain.

  • If no reference plant or reference storage location is specified, the reference data is determined using the method GET_SOURCE_SLOC (stock type = P for provisions) of the aforementioned BADI.

  • If no distribution chain is specified, the reference data is determined using the method GET_SOURCE_SALES (stock type = P for provisions) of the aforementioned BAdI.

  • The source data used as a reference and the target data to be created for the material views are reported in the application log.

  • The distribution chain, plant, and storage location views for the specified materials are created based on the source data using the function module /ISDFPS/MATMAS_PLANT_SLOC.

  • The MRP area data for the material is then created. If no reference force element is specified, the method GET_SOURCE_MRP_AREA is used to determine a reference MRP area and reference plant. If a reference MRP area is determined, the system uses this data, otherwise it uses data from the reference plant.
  • The MRP controller, which can be specified when the report is called, can be changed or redetermined using the method GET_TARGET_MRP_AREA if an MRP controller was not transferred.
  • The material views are then created with the help of function module /ISDFPS/MATMAS_MRP_AREA.





TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 7838 Date: 20240511 Time: 043830     sap01-206 ( 111 ms )