SAP TRINT_INSERT_COMM_HEADER Function Module for
TRINT_INSERT_COMM_HEADER is a standard trint insert 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 insert comm header FM, simply by entering the name TRINT_INSERT_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_INSERT_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_INSERT_COMM_HEADER'".
EXPORTING
WI_E070 = "input string for E070
WI_E07T = "input string for E07T
* WI_E070C = "Input string for E070C
* IS_E070M = "
* WI_SAVE_USER = ' ' "Flag, whether user name also saved
* WI_SEL_E070 = ' ' "Flag, whether Insert to be made on E070
* WI_SEL_E07T = ' ' "Flag, whether Insert to be made on E071
* WI_SEL_E070C = ' ' "Flag whether insert to be made for E070C
* IV_SEL_E070M = ' ' "
IMPORTING
WE_E070 = "Output string for E070
WE_E07T = "Output string for E07T
WE_E070C = "Output string for E070C
ES_E070M = "Output string for E070M
EXCEPTIONS
E070_INSERT_ERROR = 1 E07T_INSERT_ERROR = 2 E070C_INSERT_ERROR = 3 E070M_INSERT_ERROR = 4
IMPORTING Parameters details for TRINT_INSERT_COMM_HEADER
WI_E070 - input string for E070
Data type: E070Optional: No
Call by Reference: No ( called with pass by value option)
WI_E07T - input string for E07T
Data type: E07TOptional: No
Call by Reference: No ( called with pass by value option)
WI_E070C - Input string for E070C
Data type: E070COptional: Yes
Call by Reference: No ( called with pass by value option)
IS_E070M -
Data type: E070MOptional: Yes
Call by Reference: No ( called with pass by value option)
WI_SAVE_USER - Flag, whether user name also saved
Data type: TRPARI-W_SAVE_USRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E070 - Flag, whether Insert to be made on E070
Data type: TRPARI-W_E070Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E07T - Flag, whether Insert to be made on E071
Data type: TRPARI-W_E07TDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E070C - Flag whether insert to be made for E070C
Data type: TRPARI-W_E070CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SEL_E070M -
Data type: TRPARI-W_E070MDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TRINT_INSERT_COMM_HEADER
WE_E070 - Output string for E070
Data type: E070Optional: No
Call by Reference: No ( called with pass by value option)
WE_E07T - Output string for E07T
Data type: E07TOptional: No
Call by Reference: No ( called with pass by value option)
WE_E070C - Output string for E070C
Data type: E070COptional: No
Call by Reference: No ( called with pass by value option)
ES_E070M - Output string for E070M
Data type: E070MOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
E070_INSERT_ERROR - Error on inserting into E070
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E07T_INSERT_ERROR - Error on inserting into E07T
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E070C_INSERT_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E070M_INSERT_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TRINT_INSERT_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_e070 | TYPE E070, " | |||
| lv_e070_insert_error | TYPE E070, " | |||
| lv_we_e07t | TYPE E07T, " | |||
| lv_wi_e07t | TYPE E07T, " | |||
| lv_e07t_insert_error | TYPE E07T, " | |||
| lv_we_e070c | TYPE E070C, " | |||
| lv_wi_e070c | TYPE E070C, " | |||
| lv_e070c_insert_error | TYPE E070C, " | |||
| lv_es_e070m | TYPE E070M, " | |||
| lv_is_e070m | TYPE E070M, " | |||
| lv_e070m_insert_error | TYPE E070M, " | |||
| lv_wi_save_user | TYPE TRPARI-W_SAVE_USR, " SPACE | |||
| lv_wi_sel_e070 | TYPE TRPARI-W_E070, " SPACE | |||
| lv_wi_sel_e07t | TYPE TRPARI-W_E07T, " SPACE | |||
| lv_wi_sel_e070c | TYPE TRPARI-W_E070C, " SPACE | |||
| lv_iv_sel_e070m | TYPE TRPARI-W_E070M. " SPACE |
|   CALL FUNCTION 'TRINT_INSERT_COMM_HEADER' " |
| EXPORTING | ||
| WI_E070 | = lv_wi_e070 | |
| WI_E07T | = lv_wi_e07t | |
| WI_E070C | = lv_wi_e070c | |
| IS_E070M | = lv_is_e070m | |
| WI_SAVE_USER | = lv_wi_save_user | |
| 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 | |
| EXCEPTIONS | ||
| E070_INSERT_ERROR = 1 | ||
| E07T_INSERT_ERROR = 2 | ||
| E070C_INSERT_ERROR = 3 | ||
| E070M_INSERT_ERROR = 4 | ||
| . " TRINT_INSERT_COMM_HEADER | ||
ABAP code using 7.40 inline data declarations to call FM TRINT_INSERT_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_SAVE_USR FROM TRPARI INTO @DATA(ld_wi_save_user). | ||||
| DATA(ld_wi_save_user) | = ' '. | |||
| "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_E070C FROM TRPARI INTO @DATA(ld_wi_sel_e070c). | ||||
| DATA(ld_wi_sel_e070c) | = ' '. | |||
| "SELECT single W_E070M FROM TRPARI INTO @DATA(ld_iv_sel_e070m). | ||||
| DATA(ld_iv_sel_e070m) | = ' '. | |||
Search for further information about these or an SAP related objects