SAP Function Modules

TR_MODIFY_COMM SAP Function module







TR_MODIFY_COMM is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TR_MODIFY_COMM into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: STRI
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TR_MODIFY_COMM - TR MODIFY COMM





CALL FUNCTION 'TR_MODIFY_COMM' "
  EXPORTING
    wi_e070 =                   " e070          Input string for E070
    wi_e07t =                   " e07t          Input string for E07T
*   wi_sel_e071 = ' '           " trpari-w_e071  Flag, whether replace to be made on E071
*   wi_sel_e071k = ' '          " trpari-w_e071k  Flag, whether replace to be made on E071K
*   wi_sel_e07t = ' '           " trpari-w_e07t  Flag, whether replace to be made on E07T
*   wi_sel_e070c = ' '          " trpari-w_e070c  Flag, whether replace to be made on E070C_
*   wi_e070c = ' '              " e070c         Input string for E070C
  IMPORTING
    we_e070 =                   " e070          Output string for E070
    we_e07t =                   " e07t          Output string for E07T
    we_e070c =                  " e070c         Output string for E070C
* TABLES
*   wt_e071 =                   " e071          Input/output table E071
*   wt_e071k =                  " e071k         Input/output table E071K
  EXCEPTIONS
    DB_ACCESS_ERROR = 1         "               Database access error
    CHOSEN_PROJECT_CLOSED = 2   "               Project request locked, networking forbidden
    LOCKED_ENTRIES = 3          "               Error changing E071, locked entries
    LOCKED_OBJECT_NOT_DELETED = 4  "            Error attempting to delete locked objects
    ORDERNAME_FORBIDDEN = 5     "               Request/task name in reserved name range
    ORDERNUMBER_EMPTY = 6       "               Request/task number is empty (space)
    ORDER_CHANGE_BUT_LOCKED_OBJECT = 7  "       Request/task contains locked entries
    ORDER_RELEASED = 8          "               Request/task already released
    ORDER_USER_LOCKED = 9       "               Request/task exclusively locked for other users
    TR_CHECK_KEYSYNTAX_ERROR = 10  "            Syntax error in E071K entry (->Message)
    TR_ENQUEUE_FAILED = 11      "               SM12 lock indicator rejected (see SM12)
    NO_AUTHORIZATION = 12       "               No authorization to carry out this function
    WRONG_CLIENT = 13           "               Editing in invalid client
    UNALLOWED_SOURCE_CLIENT = 14  "             Source client can only be modified in logon client_
    UNALLOWED_USER = 15         "               Request/task creation for SAP* not allowed
    UNALLOWED_TRFUNCTION = 16   "
    UNALLOWED_TRSTATUS = 17     "               Invalid status
    NO_SYSTEMNAME = 18          "
    NO_SYSTEMTYPE = 19          "
    .  "  TR_MODIFY_COMM

ABAP code example for Function Module TR_MODIFY_COMM





The ABAP code below is a full code listing to execute function module TR_MODIFY_COMM including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_we_e070  TYPE E070 ,
ld_we_e07t  TYPE E07T ,
ld_we_e070c  TYPE E070C ,
it_wt_e071  TYPE STANDARD TABLE OF E071,"TABLES PARAM
wa_wt_e071  LIKE LINE OF it_wt_e071 ,
it_wt_e071k  TYPE STANDARD TABLE OF E071K,"TABLES PARAM
wa_wt_e071k  LIKE LINE OF it_wt_e071k .

DATA(ld_wi_e070) = 'Check type of data required'.
DATA(ld_wi_e07t) = 'Check type of data required'.

DATA(ld_wi_sel_e071) = some text here

DATA(ld_wi_sel_e071k) = some text here

DATA(ld_wi_sel_e07t) = some text here

DATA(ld_wi_sel_e070c) = some text here
DATA(ld_wi_e070c) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wt_e071 to it_wt_e071.

"populate fields of struture and append to itab
append wa_wt_e071k to it_wt_e071k. . CALL FUNCTION 'TR_MODIFY_COMM' EXPORTING wi_e070 = ld_wi_e070 wi_e07t = ld_wi_e07t * wi_sel_e071 = ld_wi_sel_e071 * wi_sel_e071k = ld_wi_sel_e071k * wi_sel_e07t = ld_wi_sel_e07t * wi_sel_e070c = ld_wi_sel_e070c * wi_e070c = ld_wi_e070c IMPORTING we_e070 = ld_we_e070 we_e07t = ld_we_e07t we_e070c = ld_we_e070c * TABLES * wt_e071 = it_wt_e071 * wt_e071k = it_wt_e071k EXCEPTIONS DB_ACCESS_ERROR = 1 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_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 . " TR_MODIFY_COMM
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 16. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 17. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 18. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 19. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_we_e070  TYPE E070 ,
ld_wi_e070  TYPE E070 ,
it_wt_e071  TYPE STANDARD TABLE OF E071 ,
wa_wt_e071  LIKE LINE OF it_wt_e071,
ld_we_e07t  TYPE E07T ,
ld_wi_e07t  TYPE E07T ,
it_wt_e071k  TYPE STANDARD TABLE OF E071K ,
wa_wt_e071k  LIKE LINE OF it_wt_e071k,
ld_we_e070c  TYPE E070C ,
ld_wi_sel_e071  TYPE TRPARI-W_E071 ,
ld_wi_sel_e071k  TYPE TRPARI-W_E071K ,
ld_wi_sel_e07t  TYPE TRPARI-W_E07T ,
ld_wi_sel_e070c  TYPE TRPARI-W_E070C ,
ld_wi_e070c  TYPE E070C .

ld_wi_e070 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wt_e071 to it_wt_e071.
ld_wi_e07t = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wt_e071k to it_wt_e071k.

ld_wi_sel_e071 = some text here

ld_wi_sel_e071k = some text here

ld_wi_sel_e07t = some text here

ld_wi_sel_e070c = some text here
ld_wi_e070c = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TR_MODIFY_COMM or its description.