SAP TRINT_APPEND_COMM Function Module for
TRINT_APPEND_COMM is a standard trint append comm 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 append comm FM, simply by entering the name TRINT_APPEND_COMM 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_APPEND_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 'TRINT_APPEND_COMM'".
EXPORTING
* WI_EXCLUSIVE = 'X' "Indicator for 'Exclusive Append'
* WI_SEL_E071 = ' ' "Flag, whether append to be made out on E071
* WI_SEL_E071K = ' ' "Flag, whether append to be made on E071K
WI_TRKORR = "Number of the request/task
* IT_E071K_STR = "
IMPORTING
WE_KEYS_PHYSICAL_APPENDED = "x - E071K key added to the database
WE_OBJECTS_PHYSICAL_APPENDED = "X - E071 objects added to the database
TABLES
* WT_E071 = "Input/output table E071
* WT_E071K = "Input table E071K
EXCEPTIONS
E071K_APPEND_ERROR = 1 E071_APPEND_ERROR = 2 TRKORR_EMPTY = 3
IMPORTING Parameters details for TRINT_APPEND_COMM
WI_EXCLUSIVE - Indicator for 'Exclusive Append'
Data type: TRPARI-S_LOCKFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E071 - Flag, whether append to be made out on E071
Data type: TRPARI-W_E071Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_SEL_E071K - Flag, whether append to be made on E071K
Data type: TRPARI-W_E071KDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WI_TRKORR - Number of the request/task
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
IT_E071K_STR -
Data type: E071K_STRTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TRINT_APPEND_COMM
WE_KEYS_PHYSICAL_APPENDED - x - E071K key added to the database
Data type: TRPARI-W_APPENDOptional: No
Call by Reference: No ( called with pass by value option)
WE_OBJECTS_PHYSICAL_APPENDED - X - E071 objects added to the database
Data type: TRPARI-W_APPENDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TRINT_APPEND_COMM
WT_E071 - Input/output table E071
Data type: E071Optional: Yes
Call by Reference: No ( called with pass by value option)
WT_E071K - Input table E071K
Data type: E071KOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
E071K_APPEND_ERROR - Error on inserting E071K key entries
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E071_APPEND_ERROR - Error on inserting E071-object entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TRKORR_EMPTY - Request/task number is empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TRINT_APPEND_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: | ||||
| lt_wt_e071 | TYPE STANDARD TABLE OF E071, " | |||
| lv_wi_exclusive | TYPE TRPARI-S_LOCKFLAG, " 'X' | |||
| lv_e071k_append_error | TYPE TRPARI, " | |||
| lv_we_keys_physical_appended | TYPE TRPARI-W_APPEND, " | |||
| lt_wt_e071k | TYPE STANDARD TABLE OF E071K, " | |||
| lv_wi_sel_e071 | TYPE TRPARI-W_E071, " ' ' | |||
| lv_e071_append_error | TYPE TRPARI, " | |||
| lv_we_objects_physical_appended | TYPE TRPARI-W_APPEND, " | |||
| lv_trkorr_empty | TYPE TRPARI, " | |||
| lv_wi_sel_e071k | TYPE TRPARI-W_E071K, " ' ' | |||
| lv_wi_trkorr | TYPE E070-TRKORR, " | |||
| lv_it_e071k_str | TYPE E071K_STRTYP. " |
|   CALL FUNCTION 'TRINT_APPEND_COMM' " |
| EXPORTING | ||
| WI_EXCLUSIVE | = lv_wi_exclusive | |
| WI_SEL_E071 | = lv_wi_sel_e071 | |
| WI_SEL_E071K | = lv_wi_sel_e071k | |
| WI_TRKORR | = lv_wi_trkorr | |
| IT_E071K_STR | = lv_it_e071k_str | |
| IMPORTING | ||
| WE_KEYS_PHYSICAL_APPENDED | = lv_we_keys_physical_appended | |
| WE_OBJECTS_PHYSICAL_APPENDED | = lv_we_objects_physical_appended | |
| TABLES | ||
| WT_E071 | = lt_wt_e071 | |
| WT_E071K | = lt_wt_e071k | |
| EXCEPTIONS | ||
| E071K_APPEND_ERROR = 1 | ||
| E071_APPEND_ERROR = 2 | ||
| TRKORR_EMPTY = 3 | ||
| . " TRINT_APPEND_COMM | ||
ABAP code using 7.40 inline data declarations to call FM TRINT_APPEND_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 S_LOCKFLAG FROM TRPARI INTO @DATA(ld_wi_exclusive). | ||||
| DATA(ld_wi_exclusive) | = 'X'. | |||
| "SELECT single W_APPEND FROM TRPARI INTO @DATA(ld_we_keys_physical_appended). | ||||
| "SELECT single W_E071 FROM TRPARI INTO @DATA(ld_wi_sel_e071). | ||||
| DATA(ld_wi_sel_e071) | = ' '. | |||
| "SELECT single W_APPEND FROM TRPARI INTO @DATA(ld_we_objects_physical_appended). | ||||
| "SELECT single W_E071K FROM TRPARI INTO @DATA(ld_wi_sel_e071k). | ||||
| DATA(ld_wi_sel_e071k) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_wi_trkorr). | ||||
Search for further information about these or an SAP related objects