SAP RS_SCREEN_IMPORT Function Module for
RS_SCREEN_IMPORT is a standard rs screen import SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rs screen import FM, simply by entering the name RS_SCREEN_IMPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SEUS
Program Name: SAPLSEUS
Main Program: SAPLSEUS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RS_SCREEN_IMPORT 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 'RS_SCREEN_IMPORT'".
EXPORTING
DYNNR = "
PROGNAME = "Name of the module pool/program CHAR 8
* WANTED_MODE = 'MODIFY' "Required mode ('MODIFY','SHOW') CHAR 6
IMPORTING
ACTUAL_MODE = "Granted mode ('MODIFY','SHOW',' ') CHAR 6
E_KORRNUM = "
E_DYNP_REL = "
E_DEVCLASS = "Development class for Change and Transport Organizer
E_TRANSPORT_KEY = "Transport Key
E_MOD_LANGU = "Modification Language
E_NO_MODOFF = "
MESS_CODE = "Message code
MESS_TEXT = "Message Text
DYNPRO_TEXT = "Short text of screen CHAR 60
H_IMPORT = "Screen header
NEW_MASTER_LANGUAGE = "Original language
EXTEND = "Customer enhancement mode ('X' -> yes)
WITH_ACTIVE_SOURCES = "
IS_GENERATED = "
IS_IN_WA = "
IS_IN_FOREIGN_WA = "
CHANGING
* SCREEN_PAINTER = "Screen Painter
TABLES
E_G = "Screen flow logic
F_G = "Field list for screen
M_G = "Screen matchcode sub IDs
* HEADER_TEXTS = "
* FIELD_TEXTS = "
* SMODILOG_DYNP_G = "Customer enhancements
* SMODILOG_ABAP_G = "
* SMODISRC_PROT_ABAP_G = "
EXCEPTIONS
NOT_EXECUTED = 1 NOT_FOUND = 2
IMPORTING Parameters details for RS_SCREEN_IMPORT
DYNNR -
Data type: SY-DYNNROptional: No
Call by Reference: No ( called with pass by value option)
PROGNAME - Name of the module pool/program CHAR 8
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
WANTED_MODE - Required mode ('MODIFY','SHOW') CHAR 6
Data type: RS37A-MODEDefault: 'MODIFY'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RS_SCREEN_IMPORT
ACTUAL_MODE - Granted mode ('MODIFY','SHOW',' ') CHAR 6
Data type: RS37A-MODEOptional: No
Call by Reference: No ( called with pass by value option)
E_KORRNUM -
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
E_DYNP_REL -
Data type: WBDYN_DYNP_RELOptional: No
Call by Reference: No ( called with pass by value option)
E_DEVCLASS - Development class for Change and Transport Organizer
Data type: DEVCLASSOptional: No
Call by Reference: No ( called with pass by value option)
E_TRANSPORT_KEY - Transport Key
Data type: TRKEYOptional: No
Call by Reference: No ( called with pass by value option)
E_MOD_LANGU - Modification Language
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
E_NO_MODOFF -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
MESS_CODE - Message code
Data type: SCR_RFC-MESS_CODEOptional: No
Call by Reference: No ( called with pass by value option)
MESS_TEXT - Message Text
Data type: SCR_RFC-MESS_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
DYNPRO_TEXT - Short text of screen CHAR 60
Data type: D020T-DTXTOptional: No
Call by Reference: No ( called with pass by value option)
H_IMPORT - Screen header
Data type: D020SOptional: No
Call by Reference: No ( called with pass by value option)
NEW_MASTER_LANGUAGE - Original language
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
EXTEND - Customer enhancement mode ('X' -> yes)
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
WITH_ACTIVE_SOURCES -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
IS_GENERATED -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
IS_IN_WA -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
IS_IN_FOREIGN_WA -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RS_SCREEN_IMPORT
SCREEN_PAINTER - Screen Painter
Data type: CL_WB_SCREEN_PAINTEROptional: Yes
Call by Reference: Yes
TABLES Parameters details for RS_SCREEN_IMPORT
E_G - Screen flow logic
Data type: DYN_FLOWLISTOptional: No
Call by Reference: Yes
F_G - Field list for screen
Data type: D021SOptional: No
Call by Reference: No ( called with pass by value option)
M_G - Screen matchcode sub IDs
Data type: D023SOptional: No
Call by Reference: Yes
HEADER_TEXTS -
Data type: D020TOptional: Yes
Call by Reference: Yes
FIELD_TEXTS -
Data type: D021TOptional: Yes
Call by Reference: Yes
SMODILOG_DYNP_G - Customer enhancements
Data type: SMODILOG_DOptional: Yes
Call by Reference: No ( called with pass by value option)
SMODILOG_ABAP_G -
Data type: SMODILOGOptional: Yes
Call by Reference: Yes
SMODISRC_PROT_ABAP_G -
Data type: SMODI_MOD_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_EXECUTED - Screen not fetched
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND - Screen does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RS_SCREEN_IMPORT 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_e_g | TYPE STANDARD TABLE OF DYN_FLOWLIST, " | |||
| lv_dynnr | TYPE SY-DYNNR, " | |||
| lv_actual_mode | TYPE RS37A-MODE, " | |||
| lv_not_executed | TYPE RS37A, " | |||
| lv_screen_painter | TYPE CL_WB_SCREEN_PAINTER, " | |||
| lv_e_korrnum | TYPE E070-TRKORR, " | |||
| lv_e_dynp_rel | TYPE WBDYN_DYNP_REL, " | |||
| lv_e_devclass | TYPE DEVCLASS, " | |||
| lv_e_transport_key | TYPE TRKEY, " | |||
| lv_e_mod_langu | TYPE SY-LANGU, " | |||
| lv_e_no_modoff | TYPE C, " | |||
| lv_mess_code | TYPE SCR_RFC-MESS_CODE, " | |||
| lv_mess_text | TYPE SCR_RFC-MESS_TEXT, " | |||
| lt_f_g | TYPE STANDARD TABLE OF D021S, " | |||
| lv_progname | TYPE SY-REPID, " | |||
| lv_not_found | TYPE SY, " | |||
| lv_dynpro_text | TYPE D020T-DTXT, " | |||
| lt_m_g | TYPE STANDARD TABLE OF D023S, " | |||
| lv_h_import | TYPE D020S, " | |||
| lv_wanted_mode | TYPE RS37A-MODE, " 'MODIFY' | |||
| lt_header_texts | TYPE STANDARD TABLE OF D020T, " | |||
| lv_new_master_language | TYPE SY-LANGU, " | |||
| lv_extend | TYPE C, " | |||
| lt_field_texts | TYPE STANDARD TABLE OF D021T, " | |||
| lt_smodilog_dynp_g | TYPE STANDARD TABLE OF SMODILOG_D, " | |||
| lv_with_active_sources | TYPE C, " | |||
| lv_is_generated | TYPE C, " | |||
| lt_smodilog_abap_g | TYPE STANDARD TABLE OF SMODILOG, " | |||
| lv_is_in_wa | TYPE C, " | |||
| lt_smodisrc_prot_abap_g | TYPE STANDARD TABLE OF SMODI_MOD_TAB, " | |||
| lv_is_in_foreign_wa | TYPE C. " |
|   CALL FUNCTION 'RS_SCREEN_IMPORT' " |
| EXPORTING | ||
| DYNNR | = lv_dynnr | |
| PROGNAME | = lv_progname | |
| WANTED_MODE | = lv_wanted_mode | |
| IMPORTING | ||
| ACTUAL_MODE | = lv_actual_mode | |
| E_KORRNUM | = lv_e_korrnum | |
| E_DYNP_REL | = lv_e_dynp_rel | |
| E_DEVCLASS | = lv_e_devclass | |
| E_TRANSPORT_KEY | = lv_e_transport_key | |
| E_MOD_LANGU | = lv_e_mod_langu | |
| E_NO_MODOFF | = lv_e_no_modoff | |
| MESS_CODE | = lv_mess_code | |
| MESS_TEXT | = lv_mess_text | |
| DYNPRO_TEXT | = lv_dynpro_text | |
| H_IMPORT | = lv_h_import | |
| NEW_MASTER_LANGUAGE | = lv_new_master_language | |
| EXTEND | = lv_extend | |
| WITH_ACTIVE_SOURCES | = lv_with_active_sources | |
| IS_GENERATED | = lv_is_generated | |
| IS_IN_WA | = lv_is_in_wa | |
| IS_IN_FOREIGN_WA | = lv_is_in_foreign_wa | |
| CHANGING | ||
| SCREEN_PAINTER | = lv_screen_painter | |
| TABLES | ||
| E_G | = lt_e_g | |
| F_G | = lt_f_g | |
| M_G | = lt_m_g | |
| HEADER_TEXTS | = lt_header_texts | |
| FIELD_TEXTS | = lt_field_texts | |
| SMODILOG_DYNP_G | = lt_smodilog_dynp_g | |
| SMODILOG_ABAP_G | = lt_smodilog_abap_g | |
| SMODISRC_PROT_ABAP_G | = lt_smodisrc_prot_abap_g | |
| EXCEPTIONS | ||
| NOT_EXECUTED = 1 | ||
| NOT_FOUND = 2 | ||
| . " RS_SCREEN_IMPORT | ||
ABAP code using 7.40 inline data declarations to call FM RS_SCREEN_IMPORT
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 DYNNR FROM SY INTO @DATA(ld_dynnr). | ||||
| "SELECT single MODE FROM RS37A INTO @DATA(ld_actual_mode). | ||||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_e_korrnum). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_e_mod_langu). | ||||
| "SELECT single MESS_CODE FROM SCR_RFC INTO @DATA(ld_mess_code). | ||||
| "SELECT single MESS_TEXT FROM SCR_RFC INTO @DATA(ld_mess_text). | ||||
| "SELECT single REPID FROM SY INTO @DATA(ld_progname). | ||||
| "SELECT single DTXT FROM D020T INTO @DATA(ld_dynpro_text). | ||||
| "SELECT single MODE FROM RS37A INTO @DATA(ld_wanted_mode). | ||||
| DATA(ld_wanted_mode) | = 'MODIFY'. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_new_master_language). | ||||
Search for further information about these or an SAP related objects