SAP RS_DYNPRO_TEST Function Module for Test screen









RS_DYNPRO_TEST is a standard rs dynpro test SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Test screen 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 rs dynpro test FM, simply by entering the name RS_DYNPRO_TEST into the relevant SAP transaction such as SE37 or SE38.

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



Function RS_DYNPRO_TEST 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_DYNPRO_TEST'"Test screen
EXPORTING
* WITH_DYNPRO_TABLES = ' ' "
* PF_TITLE = ' ' "
* P_WB_MANAGER = "
* PROGNAME = "
* DYNNR = "
* DYNPRO_HEADER = "
* STANDARD_RUN_WITHOUT_FLOW = 'X' "
* SCHEDULE_ONLY = ' ' "
* WITHOUT_POPUP = ' ' "
* PF_STATUS = ' ' "
* PF_PROGRAM = ' ' "

IMPORTING
TEST_PROGNAME = "
TEST_DYNNR = "

TABLES
* DYNPRO_FIELDLIST = "
* DYNPRO_FLOWLOGIC = "
* DYNPRO_MATCHCODES = "

EXCEPTIONS
DYNPRO_NOT_SPECIFIED = 1 DYNPRO_NOT_FOUND = 2 PERMISSION_ERROR = 3 SYNTAX_ERROR = 4 GENERATING_ERROR = 5 CANCELLED = 6
.



IMPORTING Parameters details for RS_DYNPRO_TEST

WITH_DYNPRO_TABLES -

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

PF_TITLE -

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

P_WB_MANAGER -

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

PROGNAME -

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

DYNNR -

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

DYNPRO_HEADER -

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

STANDARD_RUN_WITHOUT_FLOW -

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

SCHEDULE_ONLY -

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

WITHOUT_POPUP -

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

PF_STATUS -

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

PF_PROGRAM -

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

EXPORTING Parameters details for RS_DYNPRO_TEST

TEST_PROGNAME -

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

TEST_DYNNR -

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

TABLES Parameters details for RS_DYNPRO_TEST

DYNPRO_FIELDLIST -

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

DYNPRO_FLOWLOGIC -

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

DYNPRO_MATCHCODES -

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

EXCEPTIONS details

DYNPRO_NOT_SPECIFIED -

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

DYNPRO_NOT_FOUND -

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

PERMISSION_ERROR -

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

SYNTAX_ERROR -

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

GENERATING_ERROR -

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

CANCELLED -

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

Copy and paste ABAP code example for RS_DYNPRO_TEST 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_test_progname  TYPE STRING, "   
lt_dynpro_fieldlist  TYPE STANDARD TABLE OF D021S, "   
lv_with_dynpro_tables  TYPE C, "   ' '
lv_dynpro_not_specified  TYPE C, "   
lv_pf_title  TYPE RSMPE-TITCODE, "   ' '
lv_p_wb_manager  TYPE IF_WB_MANAGER, "   
lv_progname  TYPE IF_WB_MANAGER, "   
lv_test_dynnr  TYPE IF_WB_MANAGER, "   
lt_dynpro_flowlogic  TYPE STANDARD TABLE OF DYN_FLOWLIST, "   
lv_dynpro_not_found  TYPE DYN_FLOWLIST, "   
lv_dynnr  TYPE DYN_FLOWLIST, "   
lv_permission_error  TYPE DYN_FLOWLIST, "   
lt_dynpro_matchcodes  TYPE STANDARD TABLE OF D023S, "   
lv_syntax_error  TYPE D023S, "   
lv_dynpro_header  TYPE D020S, "   
lv_generating_error  TYPE D020S, "   
lv_standard_run_without_flow  TYPE C, "   'X'
lv_cancelled  TYPE C, "   
lv_schedule_only  TYPE C, "   ' '
lv_without_popup  TYPE C, "   ' '
lv_pf_status  TYPE RSMPE-STATUS, "   ' '
lv_pf_program  TYPE TRDIR-NAME. "   ' '

  CALL FUNCTION 'RS_DYNPRO_TEST'  "Test screen
    EXPORTING
         WITH_DYNPRO_TABLES = lv_with_dynpro_tables
         PF_TITLE = lv_pf_title
         P_WB_MANAGER = lv_p_wb_manager
         PROGNAME = lv_progname
         DYNNR = lv_dynnr
         DYNPRO_HEADER = lv_dynpro_header
         STANDARD_RUN_WITHOUT_FLOW = lv_standard_run_without_flow
         SCHEDULE_ONLY = lv_schedule_only
         WITHOUT_POPUP = lv_without_popup
         PF_STATUS = lv_pf_status
         PF_PROGRAM = lv_pf_program
    IMPORTING
         TEST_PROGNAME = lv_test_progname
         TEST_DYNNR = lv_test_dynnr
    TABLES
         DYNPRO_FIELDLIST = lt_dynpro_fieldlist
         DYNPRO_FLOWLOGIC = lt_dynpro_flowlogic
         DYNPRO_MATCHCODES = lt_dynpro_matchcodes
    EXCEPTIONS
        DYNPRO_NOT_SPECIFIED = 1
        DYNPRO_NOT_FOUND = 2
        PERMISSION_ERROR = 3
        SYNTAX_ERROR = 4
        GENERATING_ERROR = 5
        CANCELLED = 6
. " RS_DYNPRO_TEST




ABAP code using 7.40 inline data declarations to call FM RS_DYNPRO_TEST

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.

 
 
DATA(ld_with_dynpro_tables) = ' '.
 
 
"SELECT single TITCODE FROM RSMPE INTO @DATA(ld_pf_title).
DATA(ld_pf_title) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_standard_run_without_flow) = 'X'.
 
 
DATA(ld_schedule_only) = ' '.
 
DATA(ld_without_popup) = ' '.
 
"SELECT single STATUS FROM RSMPE INTO @DATA(ld_pf_status).
DATA(ld_pf_status) = ' '.
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_pf_program).
DATA(ld_pf_program) = ' '.
 


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!