SAP VENDOR_MASTER_DATA_SELECT_05 Function Module for Check, Vendor - POrg. - Bonus
VENDOR_MASTER_DATA_SELECT_05 is a standard vendor master data select 05 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check, Vendor - POrg. - Bonus 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 05 FM, simply by entering the name VENDOR_MASTER_DATA_SELECT_05 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_05 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_05'"Check, Vendor - POrg. - Bonus.
EXPORTING
PI_LIFNR = "
PI_EKORG = "
* I_LFA1 = ' ' "
* I_LFM1 = ' ' "
* PI_OBJTYPE = ' ' "Object Type
* PI_READ_CAM = ' ' "
IMPORTING
E_LFA1 = "
E_LFM1 = "
PE_SORTL = "
PE_NAME1 = "
PE_BOLRE = "
PE_UMSAE = "
PE_EKORZ = "
E_ADDRESS_VALUE = "Address Return Structure
EXCEPTIONS
NOT_LIEF = 1 NOT_LIEF_EKORG = 2 NOT_BONUS = 3 LOEVM = 4
IMPORTING Parameters details for VENDOR_MASTER_DATA_SELECT_05
PI_LIFNR -
Data type: LFA1-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
PI_EKORG -
Data type: LFM1-EKORGOptional: No
Call by Reference: No ( called with pass by value option)
I_LFA1 -
Data type: LFA1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFM1 -
Data type: LFM1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_OBJTYPE - Object Type
Data type: SWO_OBJTYPDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_READ_CAM -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for VENDOR_MASTER_DATA_SELECT_05
E_LFA1 -
Data type: LFA1Optional: No
Call by Reference: Yes
E_LFM1 -
Data type: LFM1Optional: No
Call by Reference: Yes
PE_SORTL -
Data type: LFA1-SORTLOptional: No
Call by Reference: Yes
PE_NAME1 -
Data type: LFA1-NAME1Optional: No
Call by Reference: Yes
PE_BOLRE -
Data type: LFM1-BOLREOptional: No
Call by Reference: Yes
PE_UMSAE -
Data type: LFM1-UMSAEOptional: No
Call by Reference: Yes
PE_EKORZ -
Data type: T024Z-EKORZOptional: No
Call by Reference: No ( called with pass by value option)
E_ADDRESS_VALUE - Address Return Structure
Data type: ADDR1_VALOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_LIEF -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_LIEF_EKORG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_BONUS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOEVM -
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_05 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_e_lfa1 | TYPE LFA1, " | |||
| lv_not_lief | TYPE LFA1, " | |||
| lv_pi_lifnr | TYPE LFA1-LIFNR, " | |||
| lv_e_lfm1 | TYPE LFM1, " | |||
| lv_pi_ekorg | TYPE LFM1-EKORG, " | |||
| lv_not_lief_ekorg | TYPE LFM1, " | |||
| lv_i_lfa1 | TYPE LFA1, " ' ' | |||
| lv_pe_sortl | TYPE LFA1-SORTL, " | |||
| lv_not_bonus | TYPE LFA1, " | |||
| lv_loevm | TYPE LFA1, " | |||
| lv_i_lfm1 | TYPE LFM1, " ' ' | |||
| lv_pe_name1 | TYPE LFA1-NAME1, " | |||
| lv_pe_bolre | TYPE LFM1-BOLRE, " | |||
| lv_pi_objtype | TYPE SWO_OBJTYP, " ' ' | |||
| lv_pe_umsae | TYPE LFM1-UMSAE, " | |||
| lv_pi_read_cam | TYPE C, " SPACE | |||
| lv_pe_ekorz | TYPE T024Z-EKORZ, " | |||
| lv_e_address_value | TYPE ADDR1_VAL. " |
|   CALL FUNCTION 'VENDOR_MASTER_DATA_SELECT_05' "Check, Vendor - POrg. - Bonus |
| EXPORTING | ||
| PI_LIFNR | = lv_pi_lifnr | |
| PI_EKORG | = lv_pi_ekorg | |
| I_LFA1 | = lv_i_lfa1 | |
| I_LFM1 | = lv_i_lfm1 | |
| PI_OBJTYPE | = lv_pi_objtype | |
| PI_READ_CAM | = lv_pi_read_cam | |
| IMPORTING | ||
| E_LFA1 | = lv_e_lfa1 | |
| E_LFM1 | = lv_e_lfm1 | |
| PE_SORTL | = lv_pe_sortl | |
| PE_NAME1 | = lv_pe_name1 | |
| PE_BOLRE | = lv_pe_bolre | |
| PE_UMSAE | = lv_pe_umsae | |
| PE_EKORZ | = lv_pe_ekorz | |
| E_ADDRESS_VALUE | = lv_e_address_value | |
| EXCEPTIONS | ||
| NOT_LIEF = 1 | ||
| NOT_LIEF_EKORG = 2 | ||
| NOT_BONUS = 3 | ||
| LOEVM = 4 | ||
| . " VENDOR_MASTER_DATA_SELECT_05 | ||
ABAP code using 7.40 inline data declarations to call FM VENDOR_MASTER_DATA_SELECT_05
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_pi_lifnr). | ||||
| "SELECT single EKORG FROM LFM1 INTO @DATA(ld_pi_ekorg). | ||||
| DATA(ld_i_lfa1) | = ' '. | |||
| "SELECT single SORTL FROM LFA1 INTO @DATA(ld_pe_sortl). | ||||
| DATA(ld_i_lfm1) | = ' '. | |||
| "SELECT single NAME1 FROM LFA1 INTO @DATA(ld_pe_name1). | ||||
| "SELECT single BOLRE FROM LFM1 INTO @DATA(ld_pe_bolre). | ||||
| DATA(ld_pi_objtype) | = ' '. | |||
| "SELECT single UMSAE FROM LFM1 INTO @DATA(ld_pe_umsae). | ||||
| DATA(ld_pi_read_cam) | = ' '. | |||
| "SELECT single EKORZ FROM T024Z INTO @DATA(ld_pe_ekorz). | ||||
Search for further information about these or an SAP related objects