SAP TR_RELEASE_PROJECT Function Module for
TR_RELEASE_PROJECT is a standard tr release project 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 release project FM, simply by entering the name TR_RELEASE_PROJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: TR_CTS_PROJECTS
Program Name: SAPLTR_CTS_PROJECTS
Main Program: SAPLTR_CTS_PROJECTS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TR_RELEASE_PROJECT 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_RELEASE_PROJECT'".
EXPORTING
IV_EXTERNALPS = "External Project System
IV_EXTERNALID = "
* IV_DIALOG = 'X' "
* IV_TEST_MODE = ' ' "
* IV_USE_CONTROL = 'X' "
IMPORTING
EV_PROJ_IN_OTHER_CLIENT = "
ET_TRPROJECTS = "
EXCEPTIONS
NO_AUTHORIZATION = 1 ENQUEUE_ERROR = 2 NO_PROJECT_FOUND = 3 REQUESTS_NOT_EXPORTED = 4 REQUESTS_NOT_IMPORTED = 5 PROJECT_IS_CLOSED = 6 DB_ACCESS_ERROR = 7 INVALID_INPUT = 8 CANCELLED_BY_USER = 9
IMPORTING Parameters details for TR_RELEASE_PROJECT
IV_EXTERNALPS - External Project System
Data type: TR_EXTPSOptional: No
Call by Reference: No ( called with pass by value option)
IV_EXTERNALID -
Data type: TR_EXTPIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_DIALOG -
Data type: TRPARFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TEST_MODE -
Data type: TRPARFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_USE_CONTROL -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TR_RELEASE_PROJECT
EV_PROJ_IN_OTHER_CLIENT -
Data type: TRPARI-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
ET_TRPROJECTS -
Data type: TRPROJECTSOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORIZATION - No Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_ERROR - Enqueue error(s)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PROJECT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REQUESTS_NOT_EXPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REQUESTS_NOT_IMPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROJECT_IS_CLOSED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DB_ACCESS_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_INPUT - Invalid entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELLED_BY_USER - Cancellation by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TR_RELEASE_PROJECT 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_iv_externalps | TYPE TR_EXTPS, " | |||
| lv_no_authorization | TYPE TR_EXTPS, " | |||
| lv_ev_proj_in_other_client | TYPE TRPARI-FLAG, " | |||
| lv_enqueue_error | TYPE TRPARI, " | |||
| lv_et_trprojects | TYPE TRPROJECTS, " | |||
| lv_iv_externalid | TYPE TR_EXTPID, " | |||
| lv_iv_dialog | TYPE TRPARFLAG, " 'X' | |||
| lv_no_project_found | TYPE TRPARFLAG, " | |||
| lv_iv_test_mode | TYPE TRPARFLAG, " ' ' | |||
| lv_requests_not_exported | TYPE TRPARFLAG, " | |||
| lv_iv_use_control | TYPE C, " 'X' | |||
| lv_requests_not_imported | TYPE C, " | |||
| lv_project_is_closed | TYPE C, " | |||
| lv_db_access_error | TYPE C, " | |||
| lv_invalid_input | TYPE C, " | |||
| lv_cancelled_by_user | TYPE C. " |
|   CALL FUNCTION 'TR_RELEASE_PROJECT' " |
| EXPORTING | ||
| IV_EXTERNALPS | = lv_iv_externalps | |
| IV_EXTERNALID | = lv_iv_externalid | |
| IV_DIALOG | = lv_iv_dialog | |
| IV_TEST_MODE | = lv_iv_test_mode | |
| IV_USE_CONTROL | = lv_iv_use_control | |
| IMPORTING | ||
| EV_PROJ_IN_OTHER_CLIENT | = lv_ev_proj_in_other_client | |
| ET_TRPROJECTS | = lv_et_trprojects | |
| EXCEPTIONS | ||
| NO_AUTHORIZATION = 1 | ||
| ENQUEUE_ERROR = 2 | ||
| NO_PROJECT_FOUND = 3 | ||
| REQUESTS_NOT_EXPORTED = 4 | ||
| REQUESTS_NOT_IMPORTED = 5 | ||
| PROJECT_IS_CLOSED = 6 | ||
| DB_ACCESS_ERROR = 7 | ||
| INVALID_INPUT = 8 | ||
| CANCELLED_BY_USER = 9 | ||
| . " TR_RELEASE_PROJECT | ||
ABAP code using 7.40 inline data declarations to call FM TR_RELEASE_PROJECT
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 FLAG FROM TRPARI INTO @DATA(ld_ev_proj_in_other_client). | ||||
| DATA(ld_iv_dialog) | = 'X'. | |||
| DATA(ld_iv_test_mode) | = ' '. | |||
| DATA(ld_iv_use_control) | = 'X'. | |||
Search for further information about these or an SAP related objects