SAP RS_EDTR_ATTR_SHOW Function Module for
RS_EDTR_ATTR_SHOW is a standard rs edtr attr show 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 edtr attr show FM, simply by entering the name RS_EDTR_ATTR_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: SEDTATTR
Program Name: SAPLSEDTATTR
Main Program: SAPLSEDTATTR
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RS_EDTR_ATTR_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_ATTR_SHOW'".
EXPORTING
* PROGRAM_NAME = "
* WITH_PROGDIR_ENTRY = ' ' "
* WITH_TRDIR_ENTRY = ' ' "
* CALLED_BY_SHDB = ' ' "
* TYPE_SWITCH_ALLOWED = 'X' "
IMPORTING
LEAVED_WITH_MODE = "
LEAVE_TO_EDITOR = "
LEAVED_WITH_FCODE = "
PROGRAM_CORRNUM = "
PROGRAM_ORDERNUM = "
CHANGING
* PROGRAM_PROGDIR = "
* PROGRAM_TRDIR = "
EXCEPTIONS
PROGRAM_NAME_MISSING = 1 PROGRAM_NOT_EXISTS = 2 ACTION_CANCELLED = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLSEDTATTR_010 Exit in Program Attributes Release 4 (on Create Program,Disp./Chg. Attrs.)
IMPORTING Parameters details for RS_EDTR_ATTR_SHOW
PROGRAM_NAME -
Data type: TRDIR-NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
WITH_PROGDIR_ENTRY -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_TRDIR_ENTRY -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_BY_SHDB -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TYPE_SWITCH_ALLOWED -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RS_EDTR_ATTR_SHOW
LEAVED_WITH_MODE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
LEAVE_TO_EDITOR -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
LEAVED_WITH_FCODE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
PROGRAM_CORRNUM -
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
PROGRAM_ORDERNUM -
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RS_EDTR_ATTR_SHOW
PROGRAM_PROGDIR -
Data type: PROGDIROptional: Yes
Call by Reference: No ( called with pass by value option)
PROGRAM_TRDIR -
Data type: TRDIROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PROGRAM_NAME_MISSING - Program name is missing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROGRAM_NOT_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACTION_CANCELLED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RS_EDTR_ATTR_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_program_name | TYPE TRDIR-NAME, " | |||
| lv_program_progdir | TYPE PROGDIR, " | |||
| lv_leaved_with_mode | TYPE C, " | |||
| lv_program_name_missing | TYPE C, " | |||
| lv_program_trdir | TYPE TRDIR, " | |||
| lv_leave_to_editor | TYPE C, " | |||
| lv_program_not_exists | TYPE C, " | |||
| lv_with_progdir_entry | TYPE C, " ' ' | |||
| lv_action_cancelled | TYPE C, " | |||
| lv_with_trdir_entry | TYPE C, " ' ' | |||
| lv_leaved_with_fcode | TYPE C, " | |||
| lv_called_by_shdb | TYPE C, " ' ' | |||
| lv_program_corrnum | TYPE E070-TRKORR, " | |||
| lv_program_ordernum | TYPE E070-TRKORR, " | |||
| lv_type_switch_allowed | TYPE C. " 'X' |
|   CALL FUNCTION 'RS_EDTR_ATTR_SHOW' " |
| EXPORTING | ||
| PROGRAM_NAME | = lv_program_name | |
| WITH_PROGDIR_ENTRY | = lv_with_progdir_entry | |
| WITH_TRDIR_ENTRY | = lv_with_trdir_entry | |
| CALLED_BY_SHDB | = lv_called_by_shdb | |
| TYPE_SWITCH_ALLOWED | = lv_type_switch_allowed | |
| IMPORTING | ||
| LEAVED_WITH_MODE | = lv_leaved_with_mode | |
| LEAVE_TO_EDITOR | = lv_leave_to_editor | |
| LEAVED_WITH_FCODE | = lv_leaved_with_fcode | |
| PROGRAM_CORRNUM | = lv_program_corrnum | |
| PROGRAM_ORDERNUM | = lv_program_ordernum | |
| CHANGING | ||
| PROGRAM_PROGDIR | = lv_program_progdir | |
| PROGRAM_TRDIR | = lv_program_trdir | |
| EXCEPTIONS | ||
| PROGRAM_NAME_MISSING = 1 | ||
| PROGRAM_NOT_EXISTS = 2 | ||
| ACTION_CANCELLED = 3 | ||
| . " RS_EDTR_ATTR_SHOW | ||
ABAP code using 7.40 inline data declarations to call FM RS_EDTR_ATTR_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.| "SELECT single NAME FROM TRDIR INTO @DATA(ld_program_name). | ||||
| DATA(ld_with_progdir_entry) | = ' '. | |||
| DATA(ld_with_trdir_entry) | = ' '. | |||
| DATA(ld_called_by_shdb) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_program_corrnum). | ||||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_program_ordernum). | ||||
| DATA(ld_type_switch_allowed) | = 'X'. | |||
Search for further information about these or an SAP related objects