SAP PLANT_DYNAM_DATA_SELECTION Function Module for NOTRANSL: Ermitteln von Werks-Daten für dynamisch übergebene Selektionsfel









PLANT_DYNAM_DATA_SELECTION is a standard plant dynam data selection 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: Ermitteln von Werks-Daten für dynamisch übergebene Selektionsfel 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 plant dynam data selection FM, simply by entering the name PLANT_DYNAM_DATA_SELECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function PLANT_DYNAM_DATA_SELECTION 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 'PLANT_DYNAM_DATA_SELECTION'"NOTRANSL: Ermitteln von Werks-Daten für dynamisch übergebene Selektionsfel
EXPORTING
* READ_T001W_DATA = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* READ_T001L_DATA = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* JOIN_OPTION = 'O' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IN_MAX_WERKS = 0 "DE-EN-LANG-SWITCH-NO-TRANSLATION

CHANGING
MORE_DATA_EXISTS = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
IN_SELECT_FIELDS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IN_WERKS_KEYS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IN_LGORT_KEYS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_T001W_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_T001L_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
WRONG_INPUT_DATA = 1
.



IMPORTING Parameters details for PLANT_DYNAM_DATA_SELECTION

READ_T001W_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

READ_T001L_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

JOIN_OPTION - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: SEL_FIELDS-READ_OPT
Default: 'O'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_MAX_WERKS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

CHANGING Parameters details for PLANT_DYNAM_DATA_SELECTION

MORE_DATA_EXISTS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for PLANT_DYNAM_DATA_SELECTION

IN_SELECT_FIELDS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

IN_WERKS_KEYS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

IN_LGORT_KEYS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

OUT_T001W_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

OUT_T001L_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

WRONG_INPUT_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for PLANT_DYNAM_DATA_SELECTION 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_read_t001w_data  TYPE SEL_FIELDS-READ_FLAG, "   SPACE
lt_in_select_fields  TYPE STANDARD TABLE OF SEL_TABLE, "   
lv_more_data_exists  TYPE SY-DATAR, "   
lv_wrong_input_data  TYPE SY, "   
lt_in_werks_keys  TYPE STANDARD TABLE OF WERK01, "   
lv_read_t001l_data  TYPE SEL_FIELDS-READ_FLAG, "   SPACE
lv_join_option  TYPE SEL_FIELDS-READ_OPT, "   'O'
lt_in_lgort_keys  TYPE STANDARD TABLE OF WERK02, "   
lv_in_max_werks  TYPE SEL_FIELDS-MAX_WERKS, "   0
lt_out_t001w_tab  TYPE STANDARD TABLE OF T001W, "   
lt_out_t001l_tab  TYPE STANDARD TABLE OF T001L. "   

  CALL FUNCTION 'PLANT_DYNAM_DATA_SELECTION'  "NOTRANSL: Ermitteln von Werks-Daten für dynamisch übergebene Selektionsfel
    EXPORTING
         READ_T001W_DATA = lv_read_t001w_data
         READ_T001L_DATA = lv_read_t001l_data
         JOIN_OPTION = lv_join_option
         IN_MAX_WERKS = lv_in_max_werks
    CHANGING
         MORE_DATA_EXISTS = lv_more_data_exists
    TABLES
         IN_SELECT_FIELDS = lt_in_select_fields
         IN_WERKS_KEYS = lt_in_werks_keys
         IN_LGORT_KEYS = lt_in_lgort_keys
         OUT_T001W_TAB = lt_out_t001w_tab
         OUT_T001L_TAB = lt_out_t001l_tab
    EXCEPTIONS
        WRONG_INPUT_DATA = 1
. " PLANT_DYNAM_DATA_SELECTION




ABAP code using 7.40 inline data declarations to call FM PLANT_DYNAM_DATA_SELECTION

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 READ_FLAG FROM SEL_FIELDS INTO @DATA(ld_read_t001w_data).
DATA(ld_read_t001w_data) = ' '.
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_more_data_exists).
 
 
 
"SELECT single READ_FLAG FROM SEL_FIELDS INTO @DATA(ld_read_t001l_data).
DATA(ld_read_t001l_data) = ' '.
 
"SELECT single READ_OPT FROM SEL_FIELDS INTO @DATA(ld_join_option).
DATA(ld_join_option) = 'O'.
 
 
"SELECT single MAX_WERKS FROM SEL_FIELDS INTO @DATA(ld_in_max_werks).
 
 
 


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!