SAP LOCATION_MATERIAL_GROUP_DIALOG Function Module for NOTRANSL: Aufruf Dialog Warengruppen









LOCATION_MATERIAL_GROUP_DIALOG is a standard location material group dialog 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: Aufruf Dialog Warengruppen 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 location material group dialog FM, simply by entering the name LOCATION_MATERIAL_GROUP_DIALOG into the relevant SAP transaction such as SE37 or SE38.

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



Function LOCATION_MATERIAL_GROUP_DIALOG 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 'LOCATION_MATERIAL_GROUP_DIALOG'"NOTRANSL: Aufruf Dialog Warengruppen
EXPORTING
CALLBACK_PROGRAM = "
* I_TWPR = "
I_TITLE0 = "
I_TITLE1 = "
I_ROLLNAME = "
* I_CFM_ACTIVE = ' ' "
CALLBACK_USER_COMMAND = "
* I_WERKS = "
I_LOCNR = "
* I_ADRNR = "
I_NAME1 = "
I_T020 = "
* I_T001W = "
* I_T001K = "

CHANGING
I_OKCODE = "

TABLES
I_XWRF3 = "
I_XWRF4 = "
I_XWRF6 = "
I_XT023W = "
I_XT023X = "
* I_XKNVV = "
.



IMPORTING Parameters details for LOCATION_MATERIAL_GROUP_DIALOG

CALLBACK_PROGRAM -

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

I_TWPR -

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

I_TITLE0 -

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

I_TITLE1 -

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

I_ROLLNAME -

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

I_CFM_ACTIVE -

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

CALLBACK_USER_COMMAND -

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

I_WERKS -

Data type: T001W-WERKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOCNR -

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

I_ADRNR -

Data type: T001W-ADRNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NAME1 -

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

I_T020 -

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

I_T001W -

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

I_T001K -

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

CHANGING Parameters details for LOCATION_MATERIAL_GROUP_DIALOG

I_OKCODE -

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

TABLES Parameters details for LOCATION_MATERIAL_GROUP_DIALOG

I_XWRF3 -

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

I_XWRF4 -

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

I_XWRF6 -

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

I_XT023W -

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

I_XT023X -

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

I_XKNVV -

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

Copy and paste ABAP code example for LOCATION_MATERIAL_GROUP_DIALOG 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:
lt_i_xwrf3  TYPE STANDARD TABLE OF FWRF3, "   
lv_i_okcode  TYPE FWRF3, "   
lv_callback_program  TYPE SY-REPID, "   
lv_i_twpr  TYPE TWPR, "   
lv_i_title0  TYPE TWPR, "   
lv_i_title1  TYPE TWPR, "   
lv_i_rollname  TYPE DD04L-ROLLNAME, "   
lv_i_cfm_active  TYPE DD04L, "   SPACE
lt_i_xwrf4  TYPE STANDARD TABLE OF FWRF4, "   
lv_callback_user_command  TYPE FWRF4, "   
lv_i_werks  TYPE T001W-WERKS, "   
lt_i_xwrf6  TYPE STANDARD TABLE OF FWRF6, "   
lv_i_locnr  TYPE FWRF6, "   
lt_i_xt023w  TYPE STANDARD TABLE OF FT023W, "   
lv_i_adrnr  TYPE T001W-ADRNR, "   
lt_i_xt023x  TYPE STANDARD TABLE OF FT023X, "   
lv_i_name1  TYPE FT023X, "   
lt_i_xknvv  TYPE STANDARD TABLE OF KNVV, "   
lv_i_t020  TYPE T020, "   
lv_i_t001w  TYPE T001W, "   
lv_i_t001k  TYPE T001K. "   

  CALL FUNCTION 'LOCATION_MATERIAL_GROUP_DIALOG'  "NOTRANSL: Aufruf Dialog Warengruppen
    EXPORTING
         CALLBACK_PROGRAM = lv_callback_program
         I_TWPR = lv_i_twpr
         I_TITLE0 = lv_i_title0
         I_TITLE1 = lv_i_title1
         I_ROLLNAME = lv_i_rollname
         I_CFM_ACTIVE = lv_i_cfm_active
         CALLBACK_USER_COMMAND = lv_callback_user_command
         I_WERKS = lv_i_werks
         I_LOCNR = lv_i_locnr
         I_ADRNR = lv_i_adrnr
         I_NAME1 = lv_i_name1
         I_T020 = lv_i_t020
         I_T001W = lv_i_t001w
         I_T001K = lv_i_t001k
    CHANGING
         I_OKCODE = lv_i_okcode
    TABLES
         I_XWRF3 = lt_i_xwrf3
         I_XWRF4 = lt_i_xwrf4
         I_XWRF6 = lt_i_xwrf6
         I_XT023W = lt_i_xt023w
         I_XT023X = lt_i_xt023x
         I_XKNVV = lt_i_xknvv
. " LOCATION_MATERIAL_GROUP_DIALOG




ABAP code using 7.40 inline data declarations to call FM LOCATION_MATERIAL_GROUP_DIALOG

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_callback_program).
 
 
 
 
"SELECT single ROLLNAME FROM DD04L INTO @DATA(ld_i_rollname).
 
DATA(ld_i_cfm_active) = ' '.
 
 
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_i_werks).
 
 
 
 
"SELECT single ADRNR FROM T001W INTO @DATA(ld_i_adrnr).
 
 
 
 
 
 
 


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!