SAP RS_SCREEN_EXPORT Function Module for









RS_SCREEN_EXPORT is a standard rs screen export 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 export FM, simply by entering the name RS_SCREEN_EXPORT 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_EXPORT 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_EXPORT'"
EXPORTING
DYNNR = "
* WITHOUT_CORR_INSERT = ' ' "
* DYNPRO_TEXT = ' ' "Short text of screen CHAR 60
H_EXPORT = "Screen header
PROGNAME = "Name of the module pool/program CHAR 8
* DYNPRO_LANGUAGE = SY-LANGU "Language of short text LANG
* EXTEND = ' ' "Customer enhancement mode ('X' -> yes)
* SAVE_WITHOUT_QUESTION = ' ' "Save without query ('X'->yes)
* I_KORRNUM = ' ' "
* I_SCREEN_PAINTER = "Screen Painter

IMPORTING
SAVED = "
E_KORRNUM = "

TABLES
E_G = "Screen flow logic
F_G = "Field list for screen
M_G = "Screen matchcode sub IDs
* SMODILOG_DYNP_G = "Customer enhancements
* SMODILOG_ABAP_G = "
* SMODISRC_PROT_ABAP_G = "

EXCEPTIONS
CANCELED_BY_USER = 1
.



IMPORTING Parameters details for RS_SCREEN_EXPORT

DYNNR -

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

WITHOUT_CORR_INSERT -

Data type: SY-CALLD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPRO_TEXT - Short text of screen CHAR 60

Data type: D020T-DTXT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

H_EXPORT - Screen header

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

PROGNAME - Name of the module pool/program CHAR 8

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

DYNPRO_LANGUAGE - Language of short text LANG

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

EXTEND - Customer enhancement mode ('X' -> yes)

Data type: SY-CALLD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAVE_WITHOUT_QUESTION - Save without query ('X'->yes)

Data type: SY-CALLD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KORRNUM -

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

I_SCREEN_PAINTER - Screen Painter

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

EXPORTING Parameters details for RS_SCREEN_EXPORT

SAVED -

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

E_KORRNUM -

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

TABLES Parameters details for RS_SCREEN_EXPORT

E_G - Screen flow logic

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

F_G - Field list for screen

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

M_G - Screen matchcode sub IDs

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

SMODILOG_DYNP_G - Customer enhancements

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

SMODILOG_ABAP_G -

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

SMODISRC_PROT_ABAP_G -

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

EXCEPTIONS details

CANCELED_BY_USER - Save dialog box cancelled with F12

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

Copy and paste ABAP code example for RS_SCREEN_EXPORT 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_saved  TYPE SY-CALLD, "   
lv_canceled_by_user  TYPE SY, "   
lv_without_corr_insert  TYPE SY-CALLD, "   ' '
lt_f_g  TYPE STANDARD TABLE OF D021S, "   
lv_e_korrnum  TYPE E070-TRKORR, "   
lv_dynpro_text  TYPE D020T-DTXT, "   ' '
lt_m_g  TYPE STANDARD TABLE OF D023S, "   
lv_h_export  TYPE D020S, "   
lv_progname  TYPE SY-REPID, "   
lt_smodilog_dynp_g  TYPE STANDARD TABLE OF SMODILOG_D, "   
lv_dynpro_language  TYPE SY-LANGU, "   SY-LANGU
lt_smodilog_abap_g  TYPE STANDARD TABLE OF SMODILOG, "   
lv_extend  TYPE SY-CALLD, "   ' '
lt_smodisrc_prot_abap_g  TYPE STANDARD TABLE OF SMODI_MOD_TAB, "   
lv_save_without_question  TYPE SY-CALLD, "   ' '
lv_i_korrnum  TYPE KORRNUM, "   ' '
lv_i_screen_painter  TYPE CL_WB_SCREEN_PAINTER. "   

  CALL FUNCTION 'RS_SCREEN_EXPORT'  "
    EXPORTING
         DYNNR = lv_dynnr
         WITHOUT_CORR_INSERT = lv_without_corr_insert
         DYNPRO_TEXT = lv_dynpro_text
         H_EXPORT = lv_h_export
         PROGNAME = lv_progname
         DYNPRO_LANGUAGE = lv_dynpro_language
         EXTEND = lv_extend
         SAVE_WITHOUT_QUESTION = lv_save_without_question
         I_KORRNUM = lv_i_korrnum
         I_SCREEN_PAINTER = lv_i_screen_painter
    IMPORTING
         SAVED = lv_saved
         E_KORRNUM = lv_e_korrnum
    TABLES
         E_G = lt_e_g
         F_G = lt_f_g
         M_G = lt_m_g
         SMODILOG_DYNP_G = lt_smodilog_dynp_g
         SMODILOG_ABAP_G = lt_smodilog_abap_g
         SMODISRC_PROT_ABAP_G = lt_smodisrc_prot_abap_g
    EXCEPTIONS
        CANCELED_BY_USER = 1
. " RS_SCREEN_EXPORT




ABAP code using 7.40 inline data declarations to call FM RS_SCREEN_EXPORT

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 CALLD FROM SY INTO @DATA(ld_saved).
 
 
"SELECT single CALLD FROM SY INTO @DATA(ld_without_corr_insert).
DATA(ld_without_corr_insert) = ' '.
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_e_korrnum).
 
"SELECT single DTXT FROM D020T INTO @DATA(ld_dynpro_text).
DATA(ld_dynpro_text) = ' '.
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_progname).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_dynpro_language).
DATA(ld_dynpro_language) = SY-LANGU.
 
 
"SELECT single CALLD FROM SY INTO @DATA(ld_extend).
DATA(ld_extend) = ' '.
 
 
"SELECT single CALLD FROM SY INTO @DATA(ld_save_without_question).
DATA(ld_save_without_question) = ' '.
 
DATA(ld_i_korrnum) = ' '.
 
 


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!