SAP VENDOR_MASTER_DATA_SELECT_00 Function Module for Select Vendor Master Data
VENDOR_MASTER_DATA_SELECT_00 is a standard vendor master data select 00 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select Vendor Master Data 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 vendor master data select 00 FM, simply by entering the name VENDOR_MASTER_DATA_SELECT_00 into the relevant SAP transaction such as SE37 or SE38.
Function Group: WY06
Program Name: SAPLWY06
Main Program: SAPLWY06
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VENDOR_MASTER_DATA_SELECT_00 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_MASTER_DATA_SELECT_00'"Select Vendor Master Data.
EXPORTING
I_LFA1_LIFNR = "Vendor Number
* I_LFM1_EKORG = ' ' "Purchasing Organization
* I_LFM2_LTSNR = ' ' "Vendor Subrange
* I_LFM2_WERKS = ' ' "Plant
* I_LFB1_BUKRS = ' ' "Company Code
* I_DATA = 'X' "
* I_PARTNER = ' ' "
* I_READ_CAM = "
IMPORTING
A_LFA1 = "
A_LFB1 = "
A_LFM1 = "Vendor Master Record: Purchasing Organization Data
A_LFM2 = "
A_EKORZ = "
A_ADDRESS_VALUE = "
TABLES
* T_WYT3 = "
EXCEPTIONS
VENDOR_NOT_FOUND = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for VENDOR_MASTER_DATA_SELECT_00
I_LFA1_LIFNR - Vendor Number
Data type: LFA1-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
I_LFM1_EKORG - Purchasing Organization
Data type: LFM1-EKORGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFM2_LTSNR - Vendor Subrange
Data type: LFM2-LTSNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFM2_WERKS - Plant
Data type: LFM2-WERKSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFB1_BUKRS - Company Code
Data type: LFB1-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATA -
Data type: WRF02K-HINZEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PARTNER -
Data type: WRF02K-HINZPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_CAM -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for VENDOR_MASTER_DATA_SELECT_00
A_LFA1 -
Data type: LFA1Optional: No
Call by Reference: No ( called with pass by value option)
A_LFB1 -
Data type: LFB1Optional: No
Call by Reference: No ( called with pass by value option)
A_LFM1 - Vendor Master Record: Purchasing Organization Data
Data type: LFM1Optional: No
Call by Reference: No ( called with pass by value option)
A_LFM2 -
Data type: LFM2Optional: No
Call by Reference: No ( called with pass by value option)
A_EKORZ -
Data type: T024Z-EKORZOptional: No
Call by Reference: No ( called with pass by value option)
A_ADDRESS_VALUE -
Data type: ADDR1_VALOptional: No
Call by Reference: Yes
TABLES Parameters details for VENDOR_MASTER_DATA_SELECT_00
T_WYT3 -
Data type: WYT3Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VENDOR_NOT_FOUND - No Data Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for VENDOR_MASTER_DATA_SELECT_00 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_a_lfa1 | TYPE LFA1, " | |||
| lt_t_wyt3 | TYPE STANDARD TABLE OF WYT3, " | |||
| lv_i_lfa1_lifnr | TYPE LFA1-LIFNR, " | |||
| lv_vendor_not_found | TYPE LFA1, " | |||
| lv_a_lfb1 | TYPE LFB1, " | |||
| lv_i_lfm1_ekorg | TYPE LFM1-EKORG, " SPACE | |||
| lv_internal_error | TYPE LFM1, " | |||
| lv_a_lfm1 | TYPE LFM1, " | |||
| lv_i_lfm2_ltsnr | TYPE LFM2-LTSNR, " SPACE | |||
| lv_a_lfm2 | TYPE LFM2, " | |||
| lv_i_lfm2_werks | TYPE LFM2-WERKS, " SPACE | |||
| lv_a_ekorz | TYPE T024Z-EKORZ, " | |||
| lv_i_lfb1_bukrs | TYPE LFB1-BUKRS, " SPACE | |||
| lv_i_data | TYPE WRF02K-HINZE, " 'X' | |||
| lv_a_address_value | TYPE ADDR1_VAL, " | |||
| lv_i_partner | TYPE WRF02K-HINZP, " SPACE | |||
| lv_i_read_cam | TYPE WRF02K. " |
|   CALL FUNCTION 'VENDOR_MASTER_DATA_SELECT_00' "Select Vendor Master Data |
| EXPORTING | ||
| I_LFA1_LIFNR | = lv_i_lfa1_lifnr | |
| I_LFM1_EKORG | = lv_i_lfm1_ekorg | |
| I_LFM2_LTSNR | = lv_i_lfm2_ltsnr | |
| I_LFM2_WERKS | = lv_i_lfm2_werks | |
| I_LFB1_BUKRS | = lv_i_lfb1_bukrs | |
| I_DATA | = lv_i_data | |
| I_PARTNER | = lv_i_partner | |
| I_READ_CAM | = lv_i_read_cam | |
| IMPORTING | ||
| A_LFA1 | = lv_a_lfa1 | |
| A_LFB1 | = lv_a_lfb1 | |
| A_LFM1 | = lv_a_lfm1 | |
| A_LFM2 | = lv_a_lfm2 | |
| A_EKORZ | = lv_a_ekorz | |
| A_ADDRESS_VALUE | = lv_a_address_value | |
| TABLES | ||
| T_WYT3 | = lt_t_wyt3 | |
| EXCEPTIONS | ||
| VENDOR_NOT_FOUND = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " VENDOR_MASTER_DATA_SELECT_00 | ||
ABAP code using 7.40 inline data declarations to call FM VENDOR_MASTER_DATA_SELECT_00
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_lfa1_lifnr). | ||||
| "SELECT single EKORG FROM LFM1 INTO @DATA(ld_i_lfm1_ekorg). | ||||
| DATA(ld_i_lfm1_ekorg) | = ' '. | |||
| "SELECT single LTSNR FROM LFM2 INTO @DATA(ld_i_lfm2_ltsnr). | ||||
| DATA(ld_i_lfm2_ltsnr) | = ' '. | |||
| "SELECT single WERKS FROM LFM2 INTO @DATA(ld_i_lfm2_werks). | ||||
| DATA(ld_i_lfm2_werks) | = ' '. | |||
| "SELECT single EKORZ FROM T024Z INTO @DATA(ld_a_ekorz). | ||||
| "SELECT single BUKRS FROM LFB1 INTO @DATA(ld_i_lfb1_bukrs). | ||||
| DATA(ld_i_lfb1_bukrs) | = ' '. | |||
| "SELECT single HINZE FROM WRF02K INTO @DATA(ld_i_data). | ||||
| DATA(ld_i_data) | = 'X'. | |||
| "SELECT single HINZP FROM WRF02K INTO @DATA(ld_i_partner). | ||||
| DATA(ld_i_partner) | = ' '. | |||
Search for further information about these or an SAP related objects