SAP TR_READ_COMM Function Module for Read request/task
TR_READ_COMM is a standard tr read comm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read request/task 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 tr read comm FM, simply by entering the name TR_READ_COMM into the relevant SAP transaction such as SE37 or SE38.
Function Group: STRI
Program Name: SAPLSTRI
Main Program: SAPLSTRI
Appliation area: S
Release date: 26-Mar-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function TR_READ_COMM 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 'TR_READ_COMM'"Read request/task.
EXPORTING
WI_TRKORR = "Request/Task
* IV_SEL_E070M = ' ' "Read E070M
* IV_SEL_E070A = ' ' "General Indicator
* WI_DIALOG = 'X' "Flag, whether information messages sent
* WI_LANGU = SY-LANGU "Language or request/task text
* WI_SEL_E070 = ' ' "Read E070
* WI_SEL_E071 = ' ' "Read E071
* WI_SEL_E071K = ' ' "Read E071K
* IV_SEL_E071KF = ' ' "Read E071KF
* WI_SEL_E07T = ' ' "Read E07T
* WI_SEL_E070C = ' ' "Read E070C
IMPORTING
WE_E070 = "Output field string: Request header (E070)
WE_E07T = "Output field string: Request header (E07T)
WE_E070C = "Output field string: Client information (E070C)
ES_E070M = "Output field string: Request header (E070M)
WE_E07T_DOESNT_EXIST = "X - E07T does not exist on the database
WE_E070C_DOESNT_EXIST = "X - E070C does not exist on the database
EV_E070M_DOESNT_EXIST = "X - E070M does not exist on the database
WT_E071K_STR = "Table Key with String Field
TABLES
* WT_E071 = "Output table E071
* WT_E071K = "Output table E071K
* ET_E071KF = "Output table E071KF
* ET_E070A = "
EXCEPTIONS
NOT_EXIST_E070 = 1 NO_AUTHORIZATION = 2
IMPORTING Parameters details for TR_READ_COMM
WI_TRKORR - Request/Task
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
IV_SEL_E070M - Read E070M
Data type: TRPARI-W_E070MDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SEL_E070A - General Indicator
Data type: TRPARI-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_DIALOG - Flag, whether information messages sent
Data type: TRPARI-W_DIALOGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_LANGU - Language or request/task text
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E070 - Read E070
Data type: TRPARI-W_E070Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E071 - Read E071
Data type: TRPARI-W_E071Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E071K - Read E071K
Data type: TRPARI-W_E071KDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SEL_E071KF - Read E071KF
Data type: TRPARI-W_E071KFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E07T - Read E07T
Data type: TRPARI-W_E07TDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E070C - Read E070C
Data type: TRPARI-W_E070CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TR_READ_COMM
WE_E070 - Output field string: Request header (E070)
Data type: E070Optional: No
Call by Reference: No ( called with pass by value option)
WE_E07T - Output field string: Request header (E07T)
Data type: E07TOptional: No
Call by Reference: No ( called with pass by value option)
WE_E070C - Output field string: Client information (E070C)
Data type: E070COptional: No
Call by Reference: No ( called with pass by value option)
ES_E070M - Output field string: Request header (E070M)
Data type: E070MOptional: No
Call by Reference: No ( called with pass by value option)
WE_E07T_DOESNT_EXIST - X - E07T does not exist on the database
Data type: TRPARI-W_E07TOptional: No
Call by Reference: No ( called with pass by value option)
WE_E070C_DOESNT_EXIST - X - E070C does not exist on the database
Data type: TRPARI-W_E070COptional: No
Call by Reference: No ( called with pass by value option)
EV_E070M_DOESNT_EXIST - X - E070M does not exist on the database
Data type: TRPARI-W_E070MOptional: No
Call by Reference: No ( called with pass by value option)
WT_E071K_STR - Table Key with String Field
Data type: E071K_STRTYPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TR_READ_COMM
WT_E071 - Output table E071
Data type: E071Optional: Yes
Call by Reference: No ( called with pass by value option)
WT_E071K - Output table E071K
Data type: E071KOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_E071KF - Output table E071KF
Data type: E071KFOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_E070A -
Data type: E070AOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_EXIST_E070 - Request/task does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORIZATION - No authorization to read the request/task
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TR_READ_COMM 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_we_e070 | TYPE E070, " | |||
lt_wt_e071 | TYPE STANDARD TABLE OF E071, " | |||
lv_wi_trkorr | TYPE E070-TRKORR, " | |||
lv_not_exist_e070 | TYPE E070, " | |||
lv_iv_sel_e070m | TYPE TRPARI-W_E070M, " SPACE | |||
lv_iv_sel_e070a | TYPE TRPARI-FLAG, " SPACE | |||
lv_we_e07t | TYPE E07T, " | |||
lt_wt_e071k | TYPE STANDARD TABLE OF E071K, " | |||
lv_wi_dialog | TYPE TRPARI-W_DIALOG, " 'X' | |||
lv_no_authorization | TYPE TRPARI, " | |||
lv_we_e070c | TYPE E070C, " | |||
lv_wi_langu | TYPE SY-LANGU, " SY-LANGU | |||
lt_et_e071kf | TYPE STANDARD TABLE OF E071KF, " | |||
lv_es_e070m | TYPE E070M, " | |||
lt_et_e070a | TYPE STANDARD TABLE OF E070A, " | |||
lv_wi_sel_e070 | TYPE TRPARI-W_E070, " SPACE | |||
lv_wi_sel_e071 | TYPE TRPARI-W_E071, " SPACE | |||
lv_we_e07t_doesnt_exist | TYPE TRPARI-W_E07T, " | |||
lv_wi_sel_e071k | TYPE TRPARI-W_E071K, " SPACE | |||
lv_we_e070c_doesnt_exist | TYPE TRPARI-W_E070C, " | |||
lv_iv_sel_e071kf | TYPE TRPARI-W_E071KF, " SPACE | |||
lv_ev_e070m_doesnt_exist | TYPE TRPARI-W_E070M, " | |||
lv_wi_sel_e07t | TYPE TRPARI-W_E07T, " SPACE | |||
lv_wt_e071k_str | TYPE E071K_STRTYP, " | |||
lv_wi_sel_e070c | TYPE TRPARI-W_E070C. " SPACE |
  CALL FUNCTION 'TR_READ_COMM' "Read request/task |
EXPORTING | ||
WI_TRKORR | = lv_wi_trkorr | |
IV_SEL_E070M | = lv_iv_sel_e070m | |
IV_SEL_E070A | = lv_iv_sel_e070a | |
WI_DIALOG | = lv_wi_dialog | |
WI_LANGU | = lv_wi_langu | |
WI_SEL_E070 | = lv_wi_sel_e070 | |
WI_SEL_E071 | = lv_wi_sel_e071 | |
WI_SEL_E071K | = lv_wi_sel_e071k | |
IV_SEL_E071KF | = lv_iv_sel_e071kf | |
WI_SEL_E07T | = lv_wi_sel_e07t | |
WI_SEL_E070C | = lv_wi_sel_e070c | |
IMPORTING | ||
WE_E070 | = lv_we_e070 | |
WE_E07T | = lv_we_e07t | |
WE_E070C | = lv_we_e070c | |
ES_E070M | = lv_es_e070m | |
WE_E07T_DOESNT_EXIST | = lv_we_e07t_doesnt_exist | |
WE_E070C_DOESNT_EXIST | = lv_we_e070c_doesnt_exist | |
EV_E070M_DOESNT_EXIST | = lv_ev_e070m_doesnt_exist | |
WT_E071K_STR | = lv_wt_e071k_str | |
TABLES | ||
WT_E071 | = lt_wt_e071 | |
WT_E071K | = lt_wt_e071k | |
ET_E071KF | = lt_et_e071kf | |
ET_E070A | = lt_et_e070a | |
EXCEPTIONS | ||
NOT_EXIST_E070 = 1 | ||
NO_AUTHORIZATION = 2 | ||
. " TR_READ_COMM |
ABAP code using 7.40 inline data declarations to call FM TR_READ_COMM
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 TRKORR FROM E070 INTO @DATA(ld_wi_trkorr). | ||||
"SELECT single W_E070M FROM TRPARI INTO @DATA(ld_iv_sel_e070m). | ||||
DATA(ld_iv_sel_e070m) | = ' '. | |||
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_sel_e070a). | ||||
DATA(ld_iv_sel_e070a) | = ' '. | |||
"SELECT single W_DIALOG FROM TRPARI INTO @DATA(ld_wi_dialog). | ||||
DATA(ld_wi_dialog) | = 'X'. | |||
"SELECT single LANGU FROM SY INTO @DATA(ld_wi_langu). | ||||
DATA(ld_wi_langu) | = SY-LANGU. | |||
"SELECT single W_E070 FROM TRPARI INTO @DATA(ld_wi_sel_e070). | ||||
DATA(ld_wi_sel_e070) | = ' '. | |||
"SELECT single W_E071 FROM TRPARI INTO @DATA(ld_wi_sel_e071). | ||||
DATA(ld_wi_sel_e071) | = ' '. | |||
"SELECT single W_E07T FROM TRPARI INTO @DATA(ld_we_e07t_doesnt_exist). | ||||
"SELECT single W_E071K FROM TRPARI INTO @DATA(ld_wi_sel_e071k). | ||||
DATA(ld_wi_sel_e071k) | = ' '. | |||
"SELECT single W_E070C FROM TRPARI INTO @DATA(ld_we_e070c_doesnt_exist). | ||||
"SELECT single W_E071KF FROM TRPARI INTO @DATA(ld_iv_sel_e071kf). | ||||
DATA(ld_iv_sel_e071kf) | = ' '. | |||
"SELECT single W_E070M FROM TRPARI INTO @DATA(ld_ev_e070m_doesnt_exist). | ||||
"SELECT single W_E07T FROM TRPARI INTO @DATA(ld_wi_sel_e07t). | ||||
DATA(ld_wi_sel_e07t) | = ' '. | |||
"SELECT single W_E070C FROM TRPARI INTO @DATA(ld_wi_sel_e070c). | ||||
DATA(ld_wi_sel_e070c) | = ' '. | |||
Search for further information about these or an SAP related objects