RS_TR_WRITE_OBJECTS_TO_REQUEST 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 RS_TR_WRITE_OBJECTS_TO_REQUEST into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSVERS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RS_TR_WRITE_OBJECTS_TO_REQUEST' "BW CTO: Writes Objects to Request That Were Selected in Dialog Box
EXPORTING
i_t_tr_object = " rs_t_tr_object Object List
* i_request = SPACE " trkorr Request - If Provided, Objects Are Written to this Request
* i_collect_grouping = " rso_collect_grouping For System Copy: Suppress Export Check
i_write_on_request = RS_C_FALSE " rs_bool = X: Write Directly to Request = " " Write to Task
IMPORTING
e_t_msg = " rs_t_msg BW: Table with Messages (Application Log)
e_subrc = " sysubrc Return Value = 2: Error, = 4: Exit
e_request = " trkorr Order/Task That Was Selected (First Task, If Several)
. " RS_TR_WRITE_OBJECTS_TO_REQUEST
The ABAP code below is a full code listing to execute function module RS_TR_WRITE_OBJECTS_TO_REQUEST 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).
| ld_e_t_msg | TYPE RS_T_MSG , |
| ld_e_subrc | TYPE SYSUBRC , |
| ld_e_request | TYPE TRKORR . |
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_e_t_msg | TYPE RS_T_MSG , |
| ld_i_t_tr_object | TYPE RS_T_TR_OBJECT , |
| ld_e_subrc | TYPE SYSUBRC , |
| ld_i_request | TYPE TRKORR , |
| ld_e_request | TYPE TRKORR , |
| ld_i_collect_grouping | TYPE RSO_COLLECT_GROUPING , |
| ld_i_write_on_request | TYPE RS_BOOL . |
This module is used to write BW objects to one or more requests. It is
called from the object collector or directly from the maintenance
...See here for full SAP fm documentation
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 RS_TR_WRITE_OBJECTS_TO_REQUEST or its description.
RS_TR_WRITE_OBJECTS_TO_REQUEST - BW CTO: Writes Objects to Request That Were Selected in Dialog Box RS_TR_TADIR_POPUP - RS_TR_SYSTEM_CHANGEABLE - Can the system be changed with regard to BW CTO? RS_TR_OBJECTS_TRANSPORT - Transports a Range of Objects or Inserts as $TMP to TADIR RS_TR_OBJECTS_SORT_INSERT - BW CTO: Writes Objects to Requests Sorted by Task / Target System RS_TR_OBJECTS_CHECK_INSERT - BW CTO: Call RS_TR_OBJECTS_CHECK and RS_TR_OBJECTS_SORT_INSERT