SAP J_7L_F4_MATNR Function Module for NOTRANSL: REA F4-Hilfe: Artikelnummern inkl. Referenzartikel









J_7L_F4_MATNR is a standard j 7l f4 matnr 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: REA F4-Hilfe: Artikelnummern inkl. Referenzartikel 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 j 7l f4 matnr FM, simply by entering the name J_7L_F4_MATNR into the relevant SAP transaction such as SE37 or SE38.

Function Group: J7LR
Program Name: SAPLJ7LR
Main Program: SAPLJ7LR
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function J_7L_F4_MATNR 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 'J_7L_F4_MATNR'"NOTRANSL: REA F4-Hilfe: Artikelnummern inkl. Referenzartikel
EXPORTING
HELP_TYPE = "
DYNPPROG = "ABAP Program: Current Main Program
DYNPNR = "ABAP Program, Current Screen Number
DYNPROFIELD = "
* DYNFIELDVAR = "

IMPORTING
SELECTED_MATNR = "
SELECTED_MAKTX = "
SELECTED_VARIANTE = "

EXCEPTIONS
HELP_TYPE_NOT_SPECIFIED = 1 ERROR_IN_HELP_VALUES_GET = 2
.



IMPORTING Parameters details for J_7L_F4_MATNR

HELP_TYPE -

Data type: I
Optional: No
Call by Reference: Yes

DYNPPROG - ABAP Program: Current Main Program

Data type: SY-REPID
Optional: No
Call by Reference: Yes

DYNPNR - ABAP Program, Current Screen Number

Data type: SY-DYNNR
Optional: No
Call by Reference: Yes

DYNPROFIELD -

Data type: C
Optional: No
Call by Reference: Yes

DYNFIELDVAR -

Data type: C
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for J_7L_F4_MATNR

SELECTED_MATNR -

Data type: MATNR
Optional: No
Call by Reference: Yes

SELECTED_MAKTX -

Data type: MAKTG
Optional: No
Call by Reference: Yes

SELECTED_VARIANTE -

Data type: J_7LVARIANTE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

HELP_TYPE_NOT_SPECIFIED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_IN_HELP_VALUES_GET -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for J_7L_F4_MATNR 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_help_type  TYPE I, "   
lv_selected_matnr  TYPE MATNR, "   
lv_help_type_not_specified  TYPE MATNR, "   
lv_dynpprog  TYPE SY-REPID, "   
lv_selected_maktx  TYPE MAKTG, "   
lv_error_in_help_values_get  TYPE MAKTG, "   
lv_dynpnr  TYPE SY-DYNNR, "   
lv_selected_variante  TYPE J_7LVARIANTE, "   
lv_dynprofield  TYPE C, "   
lv_dynfieldvar  TYPE C. "   

  CALL FUNCTION 'J_7L_F4_MATNR'  "NOTRANSL: REA F4-Hilfe: Artikelnummern inkl. Referenzartikel
    EXPORTING
         HELP_TYPE = lv_help_type
         DYNPPROG = lv_dynpprog
         DYNPNR = lv_dynpnr
         DYNPROFIELD = lv_dynprofield
         DYNFIELDVAR = lv_dynfieldvar
    IMPORTING
         SELECTED_MATNR = lv_selected_matnr
         SELECTED_MAKTX = lv_selected_maktx
         SELECTED_VARIANTE = lv_selected_variante
    EXCEPTIONS
        HELP_TYPE_NOT_SPECIFIED = 1
        ERROR_IN_HELP_VALUES_GET = 2
. " J_7L_F4_MATNR




ABAP code using 7.40 inline data declarations to call FM J_7L_F4_MATNR

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 REPID FROM SY INTO @DATA(ld_dynpprog).
 
 
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_dynpnr).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!