SAP VALUE_ARTICLE_FIND_NEW Function Module for NOTRANSL: Wertartikelfindung / warengruppengenaue BF
VALUE_ARTICLE_FIND_NEW is a standard value article find new SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Wertartikelfindung / warengruppengenaue BF 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 value article find new FM, simply by entering the name VALUE_ARTICLE_FIND_NEW 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_NEW 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_NEW'"NOTRANSL: Wertartikelfindung / warengruppengenaue BF.
EXPORTING
* I_MATNR = "
* I_WERKS = "
* I_BWKEY = "
* I_KZRFB = ' ' "
* I_MAXTZ = 0 "
* I_KZRMW = ' ' "
* I_MATKL = "
IMPORTING
E_MATNR = "
E_WAART = "
E_BWKEY = "
E_MTART = "Material Type
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_NEW
I_MATNR -
Data type: MARA-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS -
Data type: T001W-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BWKEY -
Data type: T001K-BWKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZRFB -
Data type: MTCOM-KZRFBDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAXTZ -
Data type: MTCOM-MAXTZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZRMW -
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_NEW
E_MATNR -
Data type: MARA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
E_WAART -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_BWKEY -
Data type: T001K-BWKEYOptional: No
Call by Reference: No ( called with pass by value option)
E_MTART - Material Type
Data type: MARA-MTARTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WERTM_BF_NICHT_ERLAUBT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BUCHUNG_NICHT_ERLAUBT -
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_NEW 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_mtart | TYPE MARA-MTART, " | |||
| 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_NEW' "NOTRANSL: Wertartikelfindung / warengruppengenaue BF |
| 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_MTART | = lv_e_mtart | |
| EXCEPTIONS | ||
| ENTRY_NOT_FOUND = 1 | ||
| WERTM_BF_NICHT_ERLAUBT = 2 | ||
| BUCHUNG_NICHT_ERLAUBT = 3 | ||
| MATERIAL_NOT_FOUND = 4 | ||
| . " VALUE_ARTICLE_FIND_NEW | ||
ABAP code using 7.40 inline data declarations to call FM VALUE_ARTICLE_FIND_NEW
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 MTART FROM MARA INTO @DATA(ld_e_mtart). | ||||
| "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