SAP BAPI_BMUOM_SAVEREPLICAMULTIPLE Function Module for Replicate batch-specific material quantity units









BAPI_BMUOM_SAVEREPLICAMULTIPLE is a standard bapi bmuom savereplicamultiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Replicate batch-specific material quantity units processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bapi bmuom savereplicamultiple FM, simply by entering the name BAPI_BMUOM_SAVEREPLICAMULTIPLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: VBWU
Program Name: SAPLVBWU
Main Program: SAPLVBWU
Appliation area: M
Release date: 15-Oct-2004
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_BMUOM_SAVEREPLICAMULTIPLE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BAPI_BMUOM_SAVEREPLICAMULTIPLE'"Replicate batch-specific material quantity units
EXPORTING
MATERIALNUMBER = "Material Number
* MATERIALDATA = "Relevant attribute at material level
* MATERIALDATAX = "Material attribute - Change parameters -
* COMPLETEREPLICATION = "Complete Replication
* SENDER = "Logical system from which the message comes
* MATERIALNUMBER_EVG = "Long Material Number

TABLES
* BATCHSPECIFICUOM = "Batch-Specific Units of Measure
* BATCHSPECIFICUOMX = "Batch-Specific UoM - Change Parameter -
* SPECIALFUNCTIONS = "Special Functions
* SPECIALFUNCTIONSX = "Special functions - change parameters -
* ALTERNATIVEUOM = "Alternative Units of Measure
* ALTERNATIVEUOMX = "Alternative units of measure - change parameters -
* RETURN = "Confirmations
.



IMPORTING Parameters details for BAPI_BMUOM_SAVEREPLICAMULTIPLE

MATERIALNUMBER - Material Number

Data type: BAPI_BMUOM_KEY-MATERIAL
Optional: No
Call by Reference: No ( called with pass by value option)

MATERIALDATA - Relevant attribute at material level

Data type: BAPI_BMUOM_MATERIAL_DATA
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIALDATAX - Material attribute - Change parameters -

Data type: BAPI_BMUOM_MATERIAL_DATAX
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPLETEREPLICATION - Complete Replication

Data type: BAPI_BMUOM_DATA-REPLICATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SENDER - Logical system from which the message comes

Data type: BAPI_BMUOM_DATA-SYSTEM
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIALNUMBER_EVG - Long Material Number

Data type: BAPIMGVMATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_BMUOM_SAVEREPLICAMULTIPLE

BATCHSPECIFICUOM - Batch-Specific Units of Measure

Data type: BAPI_BMUOM_ATTRIBUTES
Optional: Yes
Call by Reference: No ( called with pass by value option)

BATCHSPECIFICUOMX - Batch-Specific UoM - Change Parameter -

Data type: BAPI_BMUOM_ATTRIBUTESX
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPECIALFUNCTIONS - Special Functions

Data type: BAPI_BMUOM_SPEC_FUNCTION
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPECIALFUNCTIONSX - Special functions - change parameters -

Data type: BAPI_BMUOM_SPEC_FUNCTIONX
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALTERNATIVEUOM - Alternative Units of Measure

Data type: BAPI_BMUOM_ALT_UOM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALTERNATIVEUOMX - Alternative units of measure - change parameters -

Data type: BAPI_BMUOM_ALT_UOMX
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN - Confirmations

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_BMUOM_SAVEREPLICAMULTIPLE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_materialnumber  TYPE BAPI_BMUOM_KEY-MATERIAL, "   
lt_batchspecificuom  TYPE STANDARD TABLE OF BAPI_BMUOM_ATTRIBUTES, "   
lv_materialdata  TYPE BAPI_BMUOM_MATERIAL_DATA, "   
lt_batchspecificuomx  TYPE STANDARD TABLE OF BAPI_BMUOM_ATTRIBUTESX, "   
lv_materialdatax  TYPE BAPI_BMUOM_MATERIAL_DATAX, "   
lt_specialfunctions  TYPE STANDARD TABLE OF BAPI_BMUOM_SPEC_FUNCTION, "   
lt_specialfunctionsx  TYPE STANDARD TABLE OF BAPI_BMUOM_SPEC_FUNCTIONX, "   
lv_completereplication  TYPE BAPI_BMUOM_DATA-REPLICATE, "   
lv_sender  TYPE BAPI_BMUOM_DATA-SYSTEM, "   
lt_alternativeuom  TYPE STANDARD TABLE OF BAPI_BMUOM_ALT_UOM, "   
lt_alternativeuomx  TYPE STANDARD TABLE OF BAPI_BMUOM_ALT_UOMX, "   
lv_materialnumber_evg  TYPE BAPIMGVMATNR, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_BMUOM_SAVEREPLICAMULTIPLE'  "Replicate batch-specific material quantity units
    EXPORTING
         MATERIALNUMBER = lv_materialnumber
         MATERIALDATA = lv_materialdata
         MATERIALDATAX = lv_materialdatax
         COMPLETEREPLICATION = lv_completereplication
         SENDER = lv_sender
         MATERIALNUMBER_EVG = lv_materialnumber_evg
    TABLES
         BATCHSPECIFICUOM = lt_batchspecificuom
         BATCHSPECIFICUOMX = lt_batchspecificuomx
         SPECIALFUNCTIONS = lt_specialfunctions
         SPECIALFUNCTIONSX = lt_specialfunctionsx
         ALTERNATIVEUOM = lt_alternativeuom
         ALTERNATIVEUOMX = lt_alternativeuomx
         RETURN = lt_return
. " BAPI_BMUOM_SAVEREPLICAMULTIPLE




ABAP code using 7.40 inline data declarations to call FM BAPI_BMUOM_SAVEREPLICAMULTIPLE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single MATERIAL FROM BAPI_BMUOM_KEY INTO @DATA(ld_materialnumber).
 
 
 
 
 
 
 
"SELECT single REPLICATE FROM BAPI_BMUOM_DATA INTO @DATA(ld_completereplication).
 
"SELECT single SYSTEM FROM BAPI_BMUOM_DATA INTO @DATA(ld_sender).
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!