SAP Function Modules

TR_RELEASE_COMM SAP Function module







TR_RELEASE_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_RELEASE_COMM into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM TR_RELEASE_COMM - TR RELEASE COMM





CALL FUNCTION 'TR_RELEASE_COMM' "
  EXPORTING
    wi_trkorr =                 " e070-trkorr   Number of the request/task
*   wi_success_message = 'X'    " trboolean     Flag if success message should be sent
*   wi_dialog = 'X'             " trboolean     Interactive editing = 'X'
  IMPORTING
    we_e070 =                   " e070          Output string E070
    we_e07t =                   " e07t          Output string E07T
    we_e070c =                  " e070c         Output string E070C
    es_e070m =                  " e070m
    et_deleted_tasks =          " trwbo_t_e070
* TABLES
*   wt_e071 =                   " e071          Output table E071
*   wt_e071k =                  " e071k         Output table E071K
  EXCEPTIONS
    NO_SYSTEMNAME = 1           "               System name cannot be determined or invalid length
    TR_ENQUEUE_FAILED = 2       "               Request/task could not be locked (SM12)
    NO_AUTHORITY = 3            "               Missing authorization for system (Unix) release
    ORDER_DOESNT_EXIST = 4      "               Request does not exist
    ORDER_ALREADY_RELEASED = 5  "               Request already released
    REPEAT_TOO_EARLY = 6        "               Release repetition too early
    TR_CHECK_KEYSYNTAX_ERROR = 7  "             Syntax error in E071K entry (->Message)
    KEY_WITHOUT_HEADER = 8      "               E071 object missing for E071K object key
    CORRECTION_WITHOUT_DOCU = 9  "              Request has no documentation
    DB_ACCESS_ERROR = 10        "               Database access error
    RELEASE_CANCELLED = 11      "
    TRANSPORT_TOOL_FAILED = 12  "               Test call of transport tool failed
    .  "  TR_RELEASE_COMM

ABAP code example for Function Module TR_RELEASE_COMM





The ABAP code below is a full code listing to execute function module TR_RELEASE_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 ,
ld_es_e070m  TYPE E070M ,
ld_et_deleted_tasks  TYPE TRWBO_T_E070 ,
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 .


SELECT single TRKORR
FROM E070
INTO @DATA(ld_wi_trkorr).

DATA(ld_wi_success_message) = 'Check type of data required'.
DATA(ld_wi_dialog) = '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_RELEASE_COMM' EXPORTING wi_trkorr = ld_wi_trkorr * wi_success_message = ld_wi_success_message * wi_dialog = ld_wi_dialog IMPORTING we_e070 = ld_we_e070 we_e07t = ld_we_e07t we_e070c = ld_we_e070c es_e070m = ld_es_e070m et_deleted_tasks = ld_et_deleted_tasks * TABLES * wt_e071 = it_wt_e071 * wt_e071k = it_wt_e071k EXCEPTIONS NO_SYSTEMNAME = 1 TR_ENQUEUE_FAILED = 2 NO_AUTHORITY = 3 ORDER_DOESNT_EXIST = 4 ORDER_ALREADY_RELEASED = 5 REPEAT_TOO_EARLY = 6 TR_CHECK_KEYSYNTAX_ERROR = 7 KEY_WITHOUT_HEADER = 8 CORRECTION_WITHOUT_DOCU = 9 DB_ACCESS_ERROR = 10 RELEASE_CANCELLED = 11 TRANSPORT_TOOL_FAILED = 12 . " TR_RELEASE_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 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:
it_wt_e071  TYPE STANDARD TABLE OF E071 ,
wa_wt_e071  LIKE LINE OF it_wt_e071,
ld_wi_trkorr  TYPE E070-TRKORR ,
ld_we_e070  TYPE E070 ,
ld_wi_success_message  TYPE TRBOOLEAN ,
ld_we_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_dialog  TYPE TRBOOLEAN ,
ld_es_e070m  TYPE E070M ,
ld_et_deleted_tasks  TYPE TRWBO_T_E070 .


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

SELECT single TRKORR
FROM E070
INTO ld_wi_trkorr.

ld_wi_success_message = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wt_e071k to it_wt_e071k.
ld_wi_dialog = '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_RELEASE_COMM or its description.