SAP VALUE_ARTICLE_FIND Function Module for
VALUE_ARTICLE_FIND is a standard value article find 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 value article find FM, simply by entering the name VALUE_ARTICLE_FIND into the relevant SAP transaction such as SE37 or SE38.
Function Group: WWB1
Program Name: SAPLWWB1
Main Program: SAPLWWB1
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VALUE_ARTICLE_FIND 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 'VALUE_ARTICLE_FIND'".
EXPORTING
* I_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_WERKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_BWKEY = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_KZRFB = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MAXTZ = 0 "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_KZRMW = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MATKL = "
IMPORTING
E_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_WAART = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_BWKEY = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_PEVAF = "
EXCEPTIONS
ENTRY_NOT_FOUND = 1 WERTM_BF_NICHT_ERLAUBT = 2 BUCHUNG_NICHT_ERLAUBT = 3 MATERIAL_NOT_FOUND = 4
IMPORTING Parameters details for VALUE_ARTICLE_FIND
I_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MARA-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: T001W-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BWKEY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: T001K-BWKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZRFB - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MTCOM-KZRFBDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAXTZ - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MTCOM-MAXTZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZRMW - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MATKL -
Data type: MARA-MATKLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for VALUE_ARTICLE_FIND
E_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MARA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
E_WAART - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_BWKEY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: T001K-BWKEYOptional: No
Call by Reference: No ( called with pass by value option)
E_PEVAF -
Data type: PEVAFOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENTRY_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WERTM_BF_NICHT_ERLAUBT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BUCHUNG_NICHT_ERLAUBT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MATERIAL_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for VALUE_ARTICLE_FIND 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_matnr | TYPE MARA-MATNR, " | |||
| lv_i_matnr | TYPE MARA-MATNR, " | |||
| lv_entry_not_found | TYPE MARA, " | |||
| lv_e_waart | TYPE C, " | |||
| lv_i_werks | TYPE T001W-WERKS, " | |||
| lv_wertm_bf_nicht_erlaubt | TYPE T001W, " | |||
| lv_e_bwkey | TYPE T001K-BWKEY, " | |||
| lv_i_bwkey | TYPE T001K-BWKEY, " | |||
| lv_buchung_nicht_erlaubt | TYPE T001K, " | |||
| lv_e_pevaf | TYPE PEVAF, " | |||
| lv_i_kzrfb | TYPE MTCOM-KZRFB, " ' ' | |||
| lv_material_not_found | TYPE MTCOM, " | |||
| lv_i_maxtz | TYPE MTCOM-MAXTZ, " 0 | |||
| lv_i_kzrmw | TYPE C, " ' ' | |||
| lv_i_matkl | TYPE MARA-MATKL. " |
|   CALL FUNCTION 'VALUE_ARTICLE_FIND' " |
| EXPORTING | ||
| I_MATNR | = lv_i_matnr | |
| I_WERKS | = lv_i_werks | |
| I_BWKEY | = lv_i_bwkey | |
| I_KZRFB | = lv_i_kzrfb | |
| I_MAXTZ | = lv_i_maxtz | |
| I_KZRMW | = lv_i_kzrmw | |
| I_MATKL | = lv_i_matkl | |
| IMPORTING | ||
| E_MATNR | = lv_e_matnr | |
| E_WAART | = lv_e_waart | |
| E_BWKEY | = lv_e_bwkey | |
| E_PEVAF | = lv_e_pevaf | |
| EXCEPTIONS | ||
| ENTRY_NOT_FOUND = 1 | ||
| WERTM_BF_NICHT_ERLAUBT = 2 | ||
| BUCHUNG_NICHT_ERLAUBT = 3 | ||
| MATERIAL_NOT_FOUND = 4 | ||
| . " VALUE_ARTICLE_FIND | ||
ABAP code using 7.40 inline data declarations to call FM VALUE_ARTICLE_FIND
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 MATNR FROM MARA INTO @DATA(ld_e_matnr). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_i_matnr). | ||||
| "SELECT single WERKS FROM T001W INTO @DATA(ld_i_werks). | ||||
| "SELECT single BWKEY FROM T001K INTO @DATA(ld_e_bwkey). | ||||
| "SELECT single BWKEY FROM T001K INTO @DATA(ld_i_bwkey). | ||||
| "SELECT single KZRFB FROM MTCOM INTO @DATA(ld_i_kzrfb). | ||||
| DATA(ld_i_kzrfb) | = ' '. | |||
| "SELECT single MAXTZ FROM MTCOM INTO @DATA(ld_i_maxtz). | ||||
| DATA(ld_i_kzrmw) | = ' '. | |||
| "SELECT single MATKL FROM MARA INTO @DATA(ld_i_matkl). | ||||
Search for further information about these or an SAP related objects