SAP TRINT_READ_COMM_HEADER Function Module for









TRINT_READ_COMM_HEADER is a standard trint read comm header 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 trint read comm header FM, simply by entering the name TRINT_READ_COMM_HEADER into the relevant SAP transaction such as SE37 or SE38.

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



Function TRINT_READ_COMM_HEADER 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 'TRINT_READ_COMM_HEADER'"
EXPORTING
* WI_DIALOG = 'X' "Flag, whether information messages sent
* WI_LANGU = SY-LANGU "Language of corr. order text/tran. order text
WI_TRKORR = "Corr. number of corre. request/transfer order
* WI_SEL_E070 = ' ' "Read flag for E070
* WI_SEL_E07T = ' ' "Read flag for E07T
* WI_SEL_E070C = ' ' "Flag = 'X' if E070C should be read
* IV_SEL_E070M = ' ' "

IMPORTING
WE_E070 = "Output field string E070
WE_E07T = "Output field string E07T
WE_E070C = "Output field string E070C client information
ES_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 = "

EXCEPTIONS
NOT_EXIST_E070 = 1
.



IMPORTING Parameters details for TRINT_READ_COMM_HEADER

WI_DIALOG - Flag, whether information messages sent

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

WI_LANGU - Language of corr. order text/tran. order text

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

WI_TRKORR - Corr. number of corre. request/transfer order

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

WI_SEL_E070 - Read flag for E070

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

WI_SEL_E07T - Read flag for E07T

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

WI_SEL_E070C - Flag = 'X' if E070C should be read

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

IV_SEL_E070M -

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

EXPORTING Parameters details for TRINT_READ_COMM_HEADER

WE_E070 - Output field string E070

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

WE_E07T - Output field string E07T

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

WE_E070C - Output field string E070C client information

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

ES_E070M -

Data type: E070M
Optional: 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_E07T
Optional: 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_E070C
Optional: No
Call by Reference: No ( called with pass by value option)

EV_E070M_DOESNT_EXIST -

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

EXCEPTIONS details

NOT_EXIST_E070 - (correcti./transport/..) order does not exist

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

Copy and paste ABAP code example for TRINT_READ_COMM_HEADER 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, "   
lv_wi_dialog  TYPE TRPARI-W_DIALOG, "   'X'
lv_not_exist_e070  TYPE TRPARI, "   
lv_we_e07t  TYPE E07T, "   
lv_wi_langu  TYPE SY-LANGU, "   SY-LANGU
lv_we_e070c  TYPE E070C, "   
lv_wi_trkorr  TYPE E070-TRKORR, "   
lv_es_e070m  TYPE E070M, "   
lv_wi_sel_e070  TYPE TRPARI-W_E070, "   ' '
lv_wi_sel_e07t  TYPE TRPARI-W_E07T, "   ' '
lv_we_e07t_doesnt_exist  TYPE TRPARI-W_E07T, "   
lv_wi_sel_e070c  TYPE TRPARI-W_E070C, "   ' '
lv_we_e070c_doesnt_exist  TYPE TRPARI-W_E070C, "   
lv_iv_sel_e070m  TYPE TRPARI-W_E070M, "   SPACE
lv_ev_e070m_doesnt_exist  TYPE TRPARI-W_E070M. "   

  CALL FUNCTION 'TRINT_READ_COMM_HEADER'  "
    EXPORTING
         WI_DIALOG = lv_wi_dialog
         WI_LANGU = lv_wi_langu
         WI_TRKORR = lv_wi_trkorr
         WI_SEL_E070 = lv_wi_sel_e070
         WI_SEL_E07T = lv_wi_sel_e07t
         WI_SEL_E070C = lv_wi_sel_e070c
         IV_SEL_E070M = lv_iv_sel_e070m
    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
    EXCEPTIONS
        NOT_EXIST_E070 = 1
. " TRINT_READ_COMM_HEADER




ABAP code using 7.40 inline data declarations to call FM TRINT_READ_COMM_HEADER

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 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 TRKORR FROM E070 INTO @DATA(ld_wi_trkorr).
 
 
"SELECT single W_E070 FROM TRPARI INTO @DATA(ld_wi_sel_e070).
DATA(ld_wi_sel_e070) = ' '.
 
"SELECT single W_E07T FROM TRPARI INTO @DATA(ld_wi_sel_e07t).
DATA(ld_wi_sel_e07t) = ' '.
 
"SELECT single W_E07T FROM TRPARI INTO @DATA(ld_we_e07t_doesnt_exist).
 
"SELECT single W_E070C FROM TRPARI INTO @DATA(ld_wi_sel_e070c).
DATA(ld_wi_sel_e070c) = ' '.
 
"SELECT single W_E070C FROM TRPARI INTO @DATA(ld_we_e070c_doesnt_exist).
 
"SELECT single W_E070M FROM TRPARI INTO @DATA(ld_iv_sel_e070m).
DATA(ld_iv_sel_e070m) = ' '.
 
"SELECT single W_E070M FROM TRPARI INTO @DATA(ld_ev_e070m_doesnt_exist).
 


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!