SAP TR_MODIFY_COMM Function Module for









TR_MODIFY_COMM is a standard tr modify 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 tr modify comm FM, simply by entering the name TR_MODIFY_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: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TR_MODIFY_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_MODIFY_COMM'"
EXPORTING
WI_E070 = "Input string for E070
WI_E07T = "Input string for E07T
* WI_SEL_E071 = ' ' "Flag, whether replace to be made on E071
* WI_SEL_E071K = ' ' "Flag, whether replace to be made on E071K
* WI_SEL_E07T = ' ' "Flag, whether replace to be made on E07T
* WI_SEL_E070C = ' ' "Flag, whether replace to be made on E070C_
* WI_E070C = ' ' "Input string for E070C

IMPORTING
WE_E070 = "Output string for E070
WE_E07T = "Output string for E07T
WE_E070C = "Output string for E070C

TABLES
* WT_E071 = "Input/output table E071
* WT_E071K = "Input/output table E071K

EXCEPTIONS
DB_ACCESS_ERROR = 1 TR_CHECK_KEYSYNTAX_ERROR = 10 TR_ENQUEUE_FAILED = 11 NO_AUTHORIZATION = 12 WRONG_CLIENT = 13 UNALLOWED_SOURCE_CLIENT = 14 UNALLOWED_USER = 15 UNALLOWED_TRFUNCTION = 16 UNALLOWED_TRSTATUS = 17 NO_SYSTEMNAME = 18 NO_SYSTEMTYPE = 19 CHOSEN_PROJECT_CLOSED = 2 LOCKED_ENTRIES = 3 LOCKED_OBJECT_NOT_DELETED = 4 ORDERNAME_FORBIDDEN = 5 ORDERNUMBER_EMPTY = 6 ORDER_CHANGE_BUT_LOCKED_OBJECT = 7 ORDER_RELEASED = 8 ORDER_USER_LOCKED = 9
.



IMPORTING Parameters details for TR_MODIFY_COMM

WI_E070 - Input string for E070

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

WI_E07T - Input string for E07T

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

WI_SEL_E071 - Flag, whether replace to be made on E071

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

WI_SEL_E071K - Flag, whether replace to be made on E071K

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

WI_SEL_E07T - Flag, whether replace to be made on E07T

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

WI_SEL_E070C - Flag, whether replace to be made on E070C_

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

WI_E070C - Input string for E070C

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

EXPORTING Parameters details for TR_MODIFY_COMM

WE_E070 - Output string for E070

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

WE_E07T - Output string for E07T

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

WE_E070C - Output string for E070C

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

TABLES Parameters details for TR_MODIFY_COMM

WT_E071 - Input/output table E071

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

WT_E071K - Input/output table E071K

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

EXCEPTIONS details

DB_ACCESS_ERROR - Database access error

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

TR_CHECK_KEYSYNTAX_ERROR - Syntax error in E071K entry (->Message)

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

TR_ENQUEUE_FAILED - SM12 lock indicator rejected (see SM12)

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

NO_AUTHORIZATION - No authorization to carry out this function

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

WRONG_CLIENT - Editing in invalid client

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

UNALLOWED_SOURCE_CLIENT - Source client can only be modified in logon client_

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

UNALLOWED_USER - Request/task creation for SAP* not allowed

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

UNALLOWED_TRFUNCTION -

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

UNALLOWED_TRSTATUS - Invalid status

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

NO_SYSTEMNAME -

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

NO_SYSTEMTYPE -

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

CHOSEN_PROJECT_CLOSED - Project request locked, networking forbidden

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

LOCKED_ENTRIES - Error changing E071, locked entries

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

LOCKED_OBJECT_NOT_DELETED - Error attempting to delete locked objects

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

ORDERNAME_FORBIDDEN - Request/task name in reserved name range

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

ORDERNUMBER_EMPTY - Request/task number is empty (space)

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

ORDER_CHANGE_BUT_LOCKED_OBJECT - Request/task contains locked entries

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

ORDER_RELEASED - Request/task already released

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

ORDER_USER_LOCKED - Request/task exclusively locked for other users

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

Copy and paste ABAP code example for TR_MODIFY_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, "   
lv_wi_e070  TYPE E070, "   
lt_wt_e071  TYPE STANDARD TABLE OF E071, "   
lv_db_access_error  TYPE E071, "   
lv_tr_check_keysyntax_error  TYPE E071, "   
lv_tr_enqueue_failed  TYPE E071, "   
lv_no_authorization  TYPE E071, "   
lv_wrong_client  TYPE E071, "   
lv_unallowed_source_client  TYPE E071, "   
lv_unallowed_user  TYPE E071, "   
lv_unallowed_trfunction  TYPE E071, "   
lv_unallowed_trstatus  TYPE E071, "   
lv_no_systemname  TYPE E071, "   
lv_no_systemtype  TYPE E071, "   
lv_we_e07t  TYPE E07T, "   
lv_wi_e07t  TYPE E07T, "   
lt_wt_e071k  TYPE STANDARD TABLE OF E071K, "   
lv_chosen_project_closed  TYPE E071K, "   
lv_we_e070c  TYPE E070C, "   
lv_wi_sel_e071  TYPE TRPARI-W_E071, "   ' '
lv_locked_entries  TYPE TRPARI, "   
lv_wi_sel_e071k  TYPE TRPARI-W_E071K, "   ' '
lv_locked_object_not_deleted  TYPE TRPARI, "   
lv_wi_sel_e07t  TYPE TRPARI-W_E07T, "   ' '
lv_ordername_forbidden  TYPE TRPARI, "   
lv_wi_sel_e070c  TYPE TRPARI-W_E070C, "   ' '
lv_ordernumber_empty  TYPE TRPARI, "   
lv_wi_e070c  TYPE E070C, "   ' '
lv_order_change_but_locked_object  TYPE E070C, "   
lv_order_released  TYPE E070C, "   
lv_order_user_locked  TYPE E070C. "   

  CALL FUNCTION 'TR_MODIFY_COMM'  "
    EXPORTING
         WI_E070 = lv_wi_e070
         WI_E07T = lv_wi_e07t
         WI_SEL_E071 = lv_wi_sel_e071
         WI_SEL_E071K = lv_wi_sel_e071k
         WI_SEL_E07T = lv_wi_sel_e07t
         WI_SEL_E070C = lv_wi_sel_e070c
         WI_E070C = lv_wi_e070c
    IMPORTING
         WE_E070 = lv_we_e070
         WE_E07T = lv_we_e07t
         WE_E070C = lv_we_e070c
    TABLES
         WT_E071 = lt_wt_e071
         WT_E071K = lt_wt_e071k
    EXCEPTIONS
        DB_ACCESS_ERROR = 1
        TR_CHECK_KEYSYNTAX_ERROR = 10
        TR_ENQUEUE_FAILED = 11
        NO_AUTHORIZATION = 12
        WRONG_CLIENT = 13
        UNALLOWED_SOURCE_CLIENT = 14
        UNALLOWED_USER = 15
        UNALLOWED_TRFUNCTION = 16
        UNALLOWED_TRSTATUS = 17
        NO_SYSTEMNAME = 18
        NO_SYSTEMTYPE = 19
        CHOSEN_PROJECT_CLOSED = 2
        LOCKED_ENTRIES = 3
        LOCKED_OBJECT_NOT_DELETED = 4
        ORDERNAME_FORBIDDEN = 5
        ORDERNUMBER_EMPTY = 6
        ORDER_CHANGE_BUT_LOCKED_OBJECT = 7
        ORDER_RELEASED = 8
        ORDER_USER_LOCKED = 9
. " TR_MODIFY_COMM




ABAP code using 7.40 inline data declarations to call FM TR_MODIFY_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 W_E071 FROM TRPARI INTO @DATA(ld_wi_sel_e071).
DATA(ld_wi_sel_e071) = ' '.
 
 
"SELECT single W_E071K FROM TRPARI INTO @DATA(ld_wi_sel_e071k).
DATA(ld_wi_sel_e071k) = ' '.
 
 
"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) = ' '.
 
 
DATA(ld_wi_e070c) = ' '.
 
 
 
 


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!