SAP RS_EDTR_SHOW Function Module for Display a module









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

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



Function RS_EDTR_SHOW 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_EDTR_SHOW'"Display a module
EXPORTING
* EDITOR_LINE = 1 "
* INCLUDENAME = ' ' "Include file containing the component
* NAME = ' ' "
* PROGRAM = ' ' "
* I_TYPE = 'R' "Component type
* STATUS = ' ' "

EXCEPTIONS
DOESNT_EXIST = 1 NOT_EXECUTED = 2
.



IMPORTING Parameters details for RS_EDTR_SHOW

EDITOR_LINE -

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

INCLUDENAME - Include file containing the component

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

NAME -

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

PROGRAM -

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

I_TYPE - Component type

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

STATUS -

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

EXCEPTIONS details

DOESNT_EXIST - Component does not exist

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

NOT_EXECUTED - Processing cancelled

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

Copy and paste ABAP code example for RS_EDTR_SHOW 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_editor_line  TYPE STRING, "   1
lv_doesnt_exist  TYPE STRING, "   
lv_includename  TYPE STRING, "   SPACE
lv_not_executed  TYPE STRING, "   
lv_name  TYPE STRING, "   SPACE
lv_program  TYPE STRING, "   SPACE
lv_i_type  TYPE STRING, "   'R'
lv_status  TYPE PROGDIR-STATE. "   ' '

  CALL FUNCTION 'RS_EDTR_SHOW'  "Display a module
    EXPORTING
         EDITOR_LINE = lv_editor_line
         INCLUDENAME = lv_includename
         NAME = lv_name
         PROGRAM = lv_program
         I_TYPE = lv_i_type
         STATUS = lv_status
    EXCEPTIONS
        DOESNT_EXIST = 1
        NOT_EXECUTED = 2
. " RS_EDTR_SHOW




ABAP code using 7.40 inline data declarations to call FM RS_EDTR_SHOW

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_editor_line) = 1.
 
 
DATA(ld_includename) = ' '.
 
 
DATA(ld_name) = ' '.
 
DATA(ld_program) = ' '.
 
DATA(ld_i_type) = 'R'.
 
"SELECT single STATE FROM PROGDIR INTO @DATA(ld_status).
DATA(ld_status) = ' '.
 


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!