SAP TRINT_MERGE_COMMS Function Module for Internal: Merge Requests









TRINT_MERGE_COMMS is a standard trint merge comms SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Internal: Merge Requests 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 trint merge comms FM, simply by entering the name TRINT_MERGE_COMMS into the relevant SAP transaction such as SE37 or SE38.

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



Function TRINT_MERGE_COMMS 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_MERGE_COMMS'"Internal: Merge Requests
EXPORTING
IT_E070 = "
* IV_E071_FILLED = ' ' "
* IV_E071K_FILLED = ' ' "
* IV_E071KF_FILLED = ' ' "
* IV_E071K_STR_FILLED = ' ' "
* IV_APPEND_COMM = 'X' "
* IV_ADJUST_CLIENT = 'X' "
* IV_KEEP_FLAGS = ' ' "

CHANGING
CS_TARGET_REQUEST = "Target Request
* CT_E071 = "
* CT_E071K = "
* CT_E071KF = "
* CT_E071K_STR = "

EXCEPTIONS
DB_ACCESS_ERROR = 1 INVALID_TARGET_REQUEST = 2 INVALID_SOURCE_REQUEST = 3
.



IMPORTING Parameters details for TRINT_MERGE_COMMS

IT_E070 -

Data type: TRWBO_T_E070
Optional: No
Call by Reference: Yes

IV_E071_FILLED -

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

IV_E071K_FILLED -

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

IV_E071KF_FILLED -

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

IV_E071K_STR_FILLED -

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

IV_APPEND_COMM -

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

IV_ADJUST_CLIENT -

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

IV_KEEP_FLAGS -

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

CHANGING Parameters details for TRINT_MERGE_COMMS

CS_TARGET_REQUEST - Target Request

Data type: TRWBO_REQUEST_HEADER
Optional: No
Call by Reference: Yes

CT_E071 -

Data type: TRWBO_T_E071
Optional: Yes
Call by Reference: Yes

CT_E071K -

Data type: TRWBO_T_E071K
Optional: Yes
Call by Reference: Yes

CT_E071KF -

Data type: TRWBO_T_E071KF
Optional: Yes
Call by Reference: Yes

CT_E071K_STR -

Data type: TRWBO_T_E071K_STR
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DB_ACCESS_ERROR - Database access error

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

INVALID_TARGET_REQUEST -

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

INVALID_SOURCE_REQUEST -

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

Copy and paste ABAP code example for TRINT_MERGE_COMMS 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_it_e070  TYPE TRWBO_T_E070, "   
lv_db_access_error  TYPE TRWBO_T_E070, "   
lv_cs_target_request  TYPE TRWBO_REQUEST_HEADER, "   
lv_ct_e071  TYPE TRWBO_T_E071, "   
lv_iv_e071_filled  TYPE TRWBO_CHARFLAG, "   ' '
lv_invalid_target_request  TYPE TRWBO_CHARFLAG, "   
lv_ct_e071k  TYPE TRWBO_T_E071K, "   
lv_iv_e071k_filled  TYPE TRWBO_CHARFLAG, "   ' '
lv_invalid_source_request  TYPE TRWBO_CHARFLAG, "   
lv_ct_e071kf  TYPE TRWBO_T_E071KF, "   
lv_iv_e071kf_filled  TYPE TRWBO_CHARFLAG, "   ' '
lv_ct_e071k_str  TYPE TRWBO_T_E071K_STR, "   
lv_iv_e071k_str_filled  TYPE TRWBO_CHARFLAG, "   ' '
lv_iv_append_comm  TYPE TRWBO_CHARFLAG, "   'X'
lv_iv_adjust_client  TYPE TRWBO_CHARFLAG, "   'X'
lv_iv_keep_flags  TYPE TRWBO_CHARFLAG. "   ' '

  CALL FUNCTION 'TRINT_MERGE_COMMS'  "Internal: Merge Requests
    EXPORTING
         IT_E070 = lv_it_e070
         IV_E071_FILLED = lv_iv_e071_filled
         IV_E071K_FILLED = lv_iv_e071k_filled
         IV_E071KF_FILLED = lv_iv_e071kf_filled
         IV_E071K_STR_FILLED = lv_iv_e071k_str_filled
         IV_APPEND_COMM = lv_iv_append_comm
         IV_ADJUST_CLIENT = lv_iv_adjust_client
         IV_KEEP_FLAGS = lv_iv_keep_flags
    CHANGING
         CS_TARGET_REQUEST = lv_cs_target_request
         CT_E071 = lv_ct_e071
         CT_E071K = lv_ct_e071k
         CT_E071KF = lv_ct_e071kf
         CT_E071K_STR = lv_ct_e071k_str
    EXCEPTIONS
        DB_ACCESS_ERROR = 1
        INVALID_TARGET_REQUEST = 2
        INVALID_SOURCE_REQUEST = 3
. " TRINT_MERGE_COMMS




ABAP code using 7.40 inline data declarations to call FM TRINT_MERGE_COMMS

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.

 
 
 
 
DATA(ld_iv_e071_filled) = ' '.
 
 
 
DATA(ld_iv_e071k_filled) = ' '.
 
 
 
DATA(ld_iv_e071kf_filled) = ' '.
 
 
DATA(ld_iv_e071k_str_filled) = ' '.
 
DATA(ld_iv_append_comm) = 'X'.
 
DATA(ld_iv_adjust_client) = 'X'.
 
DATA(ld_iv_keep_flags) = ' '.
 


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!