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

Function TR_REQUEST_MODIFY 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_REQUEST_MODIFY'".
EXPORTING
* IV_ACTION = 'SHOW' "
* IT_USERS = "
* IV_START_COLUMN = 1 "Column from which the dialog box starts
* IV_START_ROW = 4 "Row from which the dialog box starts
* IV_NEW_REQUEST = ' ' "
* IV_NEW_REQUEST_TYPE = "
* IV_NEW_TASK_TYPE = "
* IV_NEW_TARSYSTEM = ' ' "
* IV_NEW_AS4TEXT = ' ' "
* IS_NEW_ATTRIBUTE = "
* IV_REQUEST = "Request number
* IS_REQUEST = "
IMPORTING
ES_NEW_REQUEST = "
ET_NEW_TASKS = "
EV_REQUEST_CHANGED = "
ES_REQUEST = "Changed order
EV_ATTRIBUTES_FILLED = "
ET_ATTRIBUTES = "Request Attributes
EXCEPTIONS
CANCELLED_BY_USER = 1 NO_AUTHORIZATION = 2 INVALID_ACTION = 3 INVALID_REQUEST = 4 INVALID_REQUEST_TYPE = 5 REQUEST_NOT_CREATED = 6 REQUEST_NOT_DELETED = 7 ENQUEUE_FAILED = 8 DB_ACCESS_ERROR = 9
IMPORTING Parameters details for TR_REQUEST_MODIFY
IV_ACTION -
Data type: SY-UCOMMDefault: 'SHOW'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_USERS -
Data type: TRWBO_USERSOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_START_COLUMN - Column from which the dialog box starts
Data type: SY-CUCOLDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_START_ROW - Row from which the dialog box starts
Data type: SY-CUROWDefault: 4
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_REQUEST -
Data type: E070-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_REQUEST_TYPE -
Data type: E070-TRFUNCTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_TASK_TYPE -
Data type: E070-TRFUNCTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_TARSYSTEM -
Data type: E070-TARSYSTEMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_AS4TEXT -
Data type: E07T-AS4TEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_NEW_ATTRIBUTE -
Data type: E070AOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_REQUEST - Request number
Data type: E070-TRKORROptional: Yes
Call by Reference: No ( called with pass by value option)
IS_REQUEST -
Data type: TRWBO_REQUESTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TR_REQUEST_MODIFY
ES_NEW_REQUEST -
Data type: TRWBO_REQUEST_HEADEROptional: No
Call by Reference: No ( called with pass by value option)
ET_NEW_TASKS -
Data type: TRWBO_REQUEST_HEADERSOptional: No
Call by Reference: No ( called with pass by value option)
EV_REQUEST_CHANGED -
Data type: TRPARI-W_VALIDOptional: No
Call by Reference: No ( called with pass by value option)
ES_REQUEST - Changed order
Data type: TRWBO_REQUEST_HEADEROptional: No
Call by Reference: No ( called with pass by value option)
EV_ATTRIBUTES_FILLED -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
ET_ATTRIBUTES - Request Attributes
Data type: TRWBO_T_E070AOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED_BY_USER - Cancellation by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORIZATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_ACTION - Invalid action
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_REQUEST - Invalid request
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_REQUEST_TYPE - Invalid request type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REQUEST_NOT_CREATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REQUEST_NOT_DELETED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DB_ACCESS_ERROR - Database access error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TR_REQUEST_MODIFY 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_action | TYPE SY-UCOMM, " 'SHOW' | |||
| lv_es_new_request | TYPE TRWBO_REQUEST_HEADER, " | |||
| lv_cancelled_by_user | TYPE TRWBO_REQUEST_HEADER, " | |||
| lv_it_users | TYPE TRWBO_USERS, " | |||
| lv_iv_start_column | TYPE SY-CUCOL, " 1 | |||
| lv_iv_start_row | TYPE SY-CUROW, " 4 | |||
| lv_et_new_tasks | TYPE TRWBO_REQUEST_HEADERS, " | |||
| lv_iv_new_request | TYPE E070-TRKORR, " SPACE | |||
| lv_no_authorization | TYPE E070, " | |||
| lv_invalid_action | TYPE E070, " | |||
| lv_ev_request_changed | TYPE TRPARI-W_VALID, " | |||
| lv_iv_new_request_type | TYPE E070-TRFUNCTION, " | |||
| lv_es_request | TYPE TRWBO_REQUEST_HEADER, " | |||
| lv_invalid_request | TYPE TRWBO_REQUEST_HEADER, " | |||
| lv_iv_new_task_type | TYPE E070-TRFUNCTION, " | |||
| lv_iv_new_tarsystem | TYPE E070-TARSYSTEM, " SPACE | |||
| lv_ev_attributes_filled | TYPE C, " | |||
| lv_invalid_request_type | TYPE C, " | |||
| lv_et_attributes | TYPE TRWBO_T_E070A, " | |||
| lv_iv_new_as4text | TYPE E07T-AS4TEXT, " SPACE | |||
| lv_request_not_created | TYPE E07T, " | |||
| lv_is_new_attribute | TYPE E070A, " | |||
| lv_request_not_deleted | TYPE E070A, " | |||
| lv_iv_request | TYPE E070-TRKORR, " | |||
| lv_enqueue_failed | TYPE E070, " | |||
| lv_is_request | TYPE TRWBO_REQUEST, " | |||
| lv_db_access_error | TYPE TRWBO_REQUEST. " |
|   CALL FUNCTION 'TR_REQUEST_MODIFY' " |
| EXPORTING | ||
| IV_ACTION | = lv_iv_action | |
| IT_USERS | = lv_it_users | |
| IV_START_COLUMN | = lv_iv_start_column | |
| IV_START_ROW | = lv_iv_start_row | |
| IV_NEW_REQUEST | = lv_iv_new_request | |
| IV_NEW_REQUEST_TYPE | = lv_iv_new_request_type | |
| IV_NEW_TASK_TYPE | = lv_iv_new_task_type | |
| IV_NEW_TARSYSTEM | = lv_iv_new_tarsystem | |
| IV_NEW_AS4TEXT | = lv_iv_new_as4text | |
| IS_NEW_ATTRIBUTE | = lv_is_new_attribute | |
| IV_REQUEST | = lv_iv_request | |
| IS_REQUEST | = lv_is_request | |
| IMPORTING | ||
| ES_NEW_REQUEST | = lv_es_new_request | |
| ET_NEW_TASKS | = lv_et_new_tasks | |
| EV_REQUEST_CHANGED | = lv_ev_request_changed | |
| ES_REQUEST | = lv_es_request | |
| EV_ATTRIBUTES_FILLED | = lv_ev_attributes_filled | |
| ET_ATTRIBUTES | = lv_et_attributes | |
| EXCEPTIONS | ||
| CANCELLED_BY_USER = 1 | ||
| NO_AUTHORIZATION = 2 | ||
| INVALID_ACTION = 3 | ||
| INVALID_REQUEST = 4 | ||
| INVALID_REQUEST_TYPE = 5 | ||
| REQUEST_NOT_CREATED = 6 | ||
| REQUEST_NOT_DELETED = 7 | ||
| ENQUEUE_FAILED = 8 | ||
| DB_ACCESS_ERROR = 9 | ||
| . " TR_REQUEST_MODIFY | ||
ABAP code using 7.40 inline data declarations to call FM TR_REQUEST_MODIFY
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 UCOMM FROM SY INTO @DATA(ld_iv_action). | ||||
| DATA(ld_iv_action) | = 'SHOW'. | |||
| "SELECT single CUCOL FROM SY INTO @DATA(ld_iv_start_column). | ||||
| DATA(ld_iv_start_column) | = 1. | |||
| "SELECT single CUROW FROM SY INTO @DATA(ld_iv_start_row). | ||||
| DATA(ld_iv_start_row) | = 4. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_new_request). | ||||
| DATA(ld_iv_new_request) | = ' '. | |||
| "SELECT single W_VALID FROM TRPARI INTO @DATA(ld_ev_request_changed). | ||||
| "SELECT single TRFUNCTION FROM E070 INTO @DATA(ld_iv_new_request_type). | ||||
| "SELECT single TRFUNCTION FROM E070 INTO @DATA(ld_iv_new_task_type). | ||||
| "SELECT single TARSYSTEM FROM E070 INTO @DATA(ld_iv_new_tarsystem). | ||||
| DATA(ld_iv_new_tarsystem) | = ' '. | |||
| "SELECT single AS4TEXT FROM E07T INTO @DATA(ld_iv_new_as4text). | ||||
| DATA(ld_iv_new_as4text) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_request). | ||||
Search for further information about these or an SAP related objects