Fonction SAP BAPI_RTMAT_RPL_SAVEREPLICAMULT - Create and Change Replenishment Master Data

Paramètre Reférence Long. Facultatif Description
RECIPIENTPARAMETERS BAPI_WRPL_IMPORT 151 X Import Parameters for Replenishment Master Data BAPI
RECIPIENTPARAMETERSX BAPI_WRPL_IMPORTX 119 X Selection Parameter for Replenishment Master Data BAPI
RETURN BAPIRET2 548 Return Parameter

Functionality
This BAPI is used for creating or changing material replenishmentmaster data. It can be used for distributing replenishment master datain ALE distribution and for transferring replenishment master data fromlegacy systems.
A prerequisite for creating or changing replenishment master data isthat the basic data and, if necessary, the plant data (MARC segment)for the material have already been created in the system. Also,customer or plant master data must already exist in the system.
No commit work command is executed in the BAPI.
When you are creating or changing replenishment material master datausing this BAPI, the following must be taken into consideration:

  • Data is transferred at the plant/material or customer/material level.

  • You cannot transfer replenishments master data for generic materials or
  • variants.
    • No entries in material master table MARC can be changed. If a MARC
    • segment exists for a transferred replenishment master data record,reorder point (MARC-MINBE), safety stock (MARC-EISBE), and MRP type(MARC-DISMM) are transferred from this MARC segment.
      • Locks are set (lock object EMMARGE) for MARC for all the records that
      • were transferred. When replenishment master data is changed forreference plants, only the dependent plants that have newly been addeddo not have any locks.
        • The function module takes the mass maintenance logic for the integrated
        • material master into consideration. This means that this data is passedon to all dependent plant that were not maintained differently whenreplenishment master data for reference plants is transferred.
          When different data for a dependent plant is maintained, variants forthe plant in question are generated.
          Possible error messages:
          • Object is locked

          • Customer master data F2 153 does not exist

          • Material master data MG 305 does not exist

          • The material category is generic article or variant MU 019

          • Material is not listed in plant WM 138
          • Description
            Replenishment master data to be stored or to be changed. Data for allcombinations of recipients and materials can be transferred.
            For more documentation for the fields concerned, see structureBAPI_WRPL_IMPORT.

            Description
            This structure (selection bar) controls which fields in the transactiondata structure (RecipientParameters) contain information that can bechanged.
            This structure can therefore be used to assign valid values to fieldsin the transaction data structure. The fields are then marked in theselection bar. This ensures that all fields that are not selectedretain the current database value.

            Description
            Returning errors which may occur.