SAP LOCATION_STORE_DIALOG Function Module for NOTRANSL: Pflege allg. Werksdaten
LOCATION_STORE_DIALOG is a standard location store 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: Pflege allg. Werksdaten 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 store dialog FM, simply by entering the name LOCATION_STORE_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_STORE_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_STORE_DIALOG'"NOTRANSL: Pflege allg. Werksdaten.
EXPORTING
CALLBACK_PROGRAM = "
* I_T078W = "
I_CWRF1 = "
* I_KNVV = "
CALLBACK_USER_COMMAND = "
I_LOCNR = "
I_NAME1 = "
I_T020 = "
I_TITLE0 = "
I_TITLE1 = "
I_ROLLNAME = "
I_TWRF2 = "
CHANGING
I_XWRF1 = "
* I_XT001W = "
I_OKCODE = "
TABLES
I_XWRF4 = "
IMPORTING Parameters details for LOCATION_STORE_DIALOG
CALLBACK_PROGRAM -
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
I_T078W -
Data type: T078WOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CWRF1 -
Data type: WRF1Optional: No
Call by Reference: No ( called with pass by value option)
I_KNVV -
Data type: KNVVOptional: 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_LOCNR -
Data type:Optional: No
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: T020Optional: No
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-ROLLNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_TWRF2 -
Data type: TWRF2Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for LOCATION_STORE_DIALOG
I_XWRF1 -
Data type: WRF1Optional: No
Call by Reference: No ( called with pass by value option)
I_XT001W -
Data type: T001WOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OKCODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LOCATION_STORE_DIALOG
I_XWRF4 -
Data type: FWRF4Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LOCATION_STORE_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: | ||||
| lv_i_xwrf1 | TYPE WRF1, " | |||
| lt_i_xwrf4 | TYPE STANDARD TABLE OF FWRF4, " | |||
| lv_callback_program | TYPE SY-REPID, " | |||
| lv_i_t078w | TYPE T078W, " | |||
| lv_i_cwrf1 | TYPE WRF1, " | |||
| lv_i_knvv | TYPE KNVV, " | |||
| lv_i_xt001w | TYPE T001W, " | |||
| lv_callback_user_command | TYPE T001W, " | |||
| lv_i_locnr | TYPE T001W, " | |||
| lv_i_okcode | TYPE T001W, " | |||
| lv_i_name1 | TYPE T001W, " | |||
| lv_i_t020 | TYPE T020, " | |||
| lv_i_title0 | TYPE T020, " | |||
| lv_i_title1 | TYPE T020, " | |||
| lv_i_rollname | TYPE DD04L-ROLLNAME, " | |||
| lv_i_twrf2 | TYPE TWRF2. " |
|   CALL FUNCTION 'LOCATION_STORE_DIALOG' "NOTRANSL: Pflege allg. Werksdaten |
| EXPORTING | ||
| CALLBACK_PROGRAM | = lv_callback_program | |
| I_T078W | = lv_i_t078w | |
| I_CWRF1 | = lv_i_cwrf1 | |
| I_KNVV | = lv_i_knvv | |
| CALLBACK_USER_COMMAND | = lv_callback_user_command | |
| I_LOCNR | = lv_i_locnr | |
| I_NAME1 | = lv_i_name1 | |
| I_T020 | = lv_i_t020 | |
| I_TITLE0 | = lv_i_title0 | |
| I_TITLE1 | = lv_i_title1 | |
| I_ROLLNAME | = lv_i_rollname | |
| I_TWRF2 | = lv_i_twrf2 | |
| CHANGING | ||
| I_XWRF1 | = lv_i_xwrf1 | |
| I_XT001W | = lv_i_xt001w | |
| I_OKCODE | = lv_i_okcode | |
| TABLES | ||
| I_XWRF4 | = lt_i_xwrf4 | |
| . " LOCATION_STORE_DIALOG | ||
ABAP code using 7.40 inline data declarations to call FM LOCATION_STORE_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). | ||||
Search for further information about these or an SAP related objects