SAP VENDOR_MATERIAL_MASTER_UPDATE Function Module for
VENDOR_MATERIAL_MASTER_UPDATE is a standard vendor material master update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 vendor material master update FM, simply by entering the name VENDOR_MATERIAL_MASTER_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WY02
Program Name: SAPLWY02
Main Program: SAPLWY02
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 2

Function VENDOR_MATERIAL_MASTER_UPDATE 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 'VENDOR_MATERIAL_MASTER_UPDATE'".
EXPORTING
I_LIFNR = "Number of vendor
I_EKORG = "Purchasing Organization
I_TCODE = "ABAP System Field: Current Transaction Code
I_UNAME = "ABAP System Field: Name of Current User
I_DATUM = "ABAP System Field: Current Date of Application Server
I_UZEIT = "ABAP System Field: Current Time of Application Server
I_BEREICH = "Indicator: vendor sub-range relevant
I_WERKS = "Plant Number
TABLES
* T_WYT5H = "Changes to default data in vendor master processing
* T_FLFM2 = "Change Document Structure; Generated by RSSCD000
IMPORTING Parameters details for VENDOR_MATERIAL_MASTER_UPDATE
I_LIFNR - Number of vendor
Data type: LFA1-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
I_EKORG - Purchasing Organization
Data type: LFM1-EKORGOptional: No
Call by Reference: No ( called with pass by value option)
I_TCODE - ABAP System Field: Current Transaction Code
Data type: SY-TCODEOptional: No
Call by Reference: No ( called with pass by value option)
I_UNAME - ABAP System Field: Name of Current User
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_DATUM - ABAP System Field: Current Date of Application Server
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_UZEIT - ABAP System Field: Current Time of Application Server
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
I_BEREICH - Indicator: vendor sub-range relevant
Data type: LFA1-LTSNAOptional: No
Call by Reference: No ( called with pass by value option)
I_WERKS - Plant Number
Data type: LFA1-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for VENDOR_MATERIAL_MASTER_UPDATE
T_WYT5H - Changes to default data in vendor master processing
Data type: WYT5HOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FLFM2 - Change Document Structure; Generated by RSSCD000
Data type: FLFM2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for VENDOR_MATERIAL_MASTER_UPDATE 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_i_lifnr | TYPE LFA1-LIFNR, " | |||
| lt_t_wyt5h | TYPE STANDARD TABLE OF WYT5H, " | |||
| lv_i_ekorg | TYPE LFM1-EKORG, " | |||
| lt_t_flfm2 | TYPE STANDARD TABLE OF FLFM2, " | |||
| lv_i_tcode | TYPE SY-TCODE, " | |||
| lv_i_uname | TYPE SY-UNAME, " | |||
| lv_i_datum | TYPE SY-DATUM, " | |||
| lv_i_uzeit | TYPE SY-UZEIT, " | |||
| lv_i_bereich | TYPE LFA1-LTSNA, " | |||
| lv_i_werks | TYPE LFA1-WERKS. " |
|   CALL FUNCTION 'VENDOR_MATERIAL_MASTER_UPDATE' " |
| EXPORTING | ||
| I_LIFNR | = lv_i_lifnr | |
| I_EKORG | = lv_i_ekorg | |
| I_TCODE | = lv_i_tcode | |
| I_UNAME | = lv_i_uname | |
| I_DATUM | = lv_i_datum | |
| I_UZEIT | = lv_i_uzeit | |
| I_BEREICH | = lv_i_bereich | |
| I_WERKS | = lv_i_werks | |
| TABLES | ||
| T_WYT5H | = lt_t_wyt5h | |
| T_FLFM2 | = lt_t_flfm2 | |
| . " VENDOR_MATERIAL_MASTER_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM VENDOR_MATERIAL_MASTER_UPDATE
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 LIFNR FROM LFA1 INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single EKORG FROM LFM1 INTO @DATA(ld_i_ekorg). | ||||
| "SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode). | ||||
| "SELECT single UNAME FROM SY INTO @DATA(ld_i_uname). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_datum). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_i_uzeit). | ||||
| "SELECT single LTSNA FROM LFA1 INTO @DATA(ld_i_bereich). | ||||
| "SELECT single WERKS FROM LFA1 INTO @DATA(ld_i_werks). | ||||
Search for further information about these or an SAP related objects