SAP EAN_GLN_VENDOR Function Module for Find Vendor with the help of GLN
EAN_GLN_VENDOR is a standard ean gln vendor SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Find Vendor with the help of GLN 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 ean gln vendor FM, simply by entering the name EAN_GLN_VENDOR into the relevant SAP transaction such as SE37 or SE38.
Function Group: EAN_GLN_FUNCS
Program Name: SAPLEAN_GLN_FUNCS
Main Program: SAPLEAN_GLN_FUNCS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EAN_GLN_VENDOR 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 'EAN_GLN_VENDOR'"Find Vendor with the help of GLN.
EXPORTING
* I_ILN_VENDOR = "International Location Number(GLN)
* I_BBBNR = "International location number (part 1)
* I_BBSNR = "International location number (Part 2)
* I_BUBKZ = "Check digit for the international location number
IMPORTING
E_WA_LFA1 = "Vendor Master (General Section)
EXCEPTIONS
NO_VENDOR = 1 MANY_VENDOR = 2 WRONG_INTERFACE = 3
IMPORTING Parameters details for EAN_GLN_VENDOR
I_ILN_VENDOR - International Location Number(GLN)
Data type: EANE_ILNOptional: Yes
Call by Reference: Yes
I_BBBNR - International location number (part 1)
Data type: KNA1-BBBNROptional: Yes
Call by Reference: Yes
I_BBSNR - International location number (Part 2)
Data type: KNA1-BBSNROptional: Yes
Call by Reference: Yes
I_BUBKZ - Check digit for the international location number
Data type: KNA1-BUBKZOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EAN_GLN_VENDOR
E_WA_LFA1 - Vendor Master (General Section)
Data type: LFA1Optional: No
Call by Reference: Yes
EXCEPTIONS details
NO_VENDOR - No vendor was found
Data type:Optional: No
Call by Reference: Yes
MANY_VENDOR - Many vendors were found
Data type:Optional: No
Call by Reference: Yes
WRONG_INTERFACE - Wrond Interface
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EAN_GLN_VENDOR 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_wa_lfa1 | TYPE LFA1, " | |||
| lv_no_vendor | TYPE LFA1, " | |||
| lv_i_iln_vendor | TYPE EANE_ILN, " | |||
| lv_i_bbbnr | TYPE KNA1-BBBNR, " | |||
| lv_many_vendor | TYPE KNA1, " | |||
| lv_i_bbsnr | TYPE KNA1-BBSNR, " | |||
| lv_wrong_interface | TYPE KNA1, " | |||
| lv_i_bubkz | TYPE KNA1-BUBKZ. " |
|   CALL FUNCTION 'EAN_GLN_VENDOR' "Find Vendor with the help of GLN |
| EXPORTING | ||
| I_ILN_VENDOR | = lv_i_iln_vendor | |
| I_BBBNR | = lv_i_bbbnr | |
| I_BBSNR | = lv_i_bbsnr | |
| I_BUBKZ | = lv_i_bubkz | |
| IMPORTING | ||
| E_WA_LFA1 | = lv_e_wa_lfa1 | |
| EXCEPTIONS | ||
| NO_VENDOR = 1 | ||
| MANY_VENDOR = 2 | ||
| WRONG_INTERFACE = 3 | ||
| . " EAN_GLN_VENDOR | ||
ABAP code using 7.40 inline data declarations to call FM EAN_GLN_VENDOR
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 BBBNR FROM KNA1 INTO @DATA(ld_i_bbbnr). | ||||
| "SELECT single BBSNR FROM KNA1 INTO @DATA(ld_i_bbsnr). | ||||
| "SELECT single BUBKZ FROM KNA1 INTO @DATA(ld_i_bubkz). | ||||
Search for further information about these or an SAP related objects