SAP RRW3_GET_ITEM Function Module for Reject Command
RRW3_GET_ITEM is a standard rrw3 get item SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reject Command processing and below is the pattern details for this FM, 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 rrw3 get item FM, simply by entering the name RRW3_GET_ITEM into the relevant SAP transaction such as SE37 or SE38.
Function Group: RRW3
Program Name: SAPLRRW3
Main Program: SAPLRRW3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RRW3_GET_ITEM 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 'RRW3_GET_ITEM'"Reject Command.
EXPORTING
I_PAGENO = "Page Number
* I_PARAMETER_STRING_SEPARATOR = ''' "Start and End Boundary for Parameter Value
* I_RESET_RETURN = RS_C_TRUE "Reset Return Table or Just Add
IMPORTING
E_RETURN_CODE = "Return Code
E_CONTENT_TYPE = "Type of contents
E_CONTENT_LENGTH = "Length of contents (required for binary objects)
E_FORCE_STATEFULL = "Page is still Statefull
TABLES
* I_T_PARAMETERS = "Parameters
* I_T_PARAMETERS_STRING = "
* C_T_RETURN = "Messages
* C_T_RETURN_HTML = "Messages as HTML
* E_T_HTML = "Command Result as HTML
* E_T_MIME = "Command Result as MIME
* E_T_NAMED_ATTRIBUTES = "Named Attributes of Item
* E_T_CUSTOM_ATTRIBUTES = "Raw Data Attributes of Item
IMPORTING Parameters details for RRW3_GET_ITEM
I_PAGENO - Page Number
Data type: RRX_PAGENOOptional: No
Call by Reference: No ( called with pass by value option)
I_PARAMETER_STRING_SEPARATOR - Start and End Boundary for Parameter Value
Data type: CHAR1Default: '''
Optional: No
Call by Reference: No ( called with pass by value option)
I_RESET_RETURN - Reset Return Table or Just Add
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RRW3_GET_ITEM
E_RETURN_CODE - Return Code
Data type: RRX_RETURN_CODEOptional: No
Call by Reference: No ( called with pass by value option)
E_CONTENT_TYPE - Type of contents
Data type: W3PARAM-CONT_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
E_CONTENT_LENGTH - Length of contents (required for binary objects)
Data type: W3PARAM-CONT_LENOptional: No
Call by Reference: No ( called with pass by value option)
E_FORCE_STATEFULL - Page is still Statefull
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RRW3_GET_ITEM
I_T_PARAMETERS - Parameters
Data type: W3QUERYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_T_PARAMETERS_STRING -
Data type: W3HTMLOptional: Yes
Call by Reference: No ( called with pass by value option)
C_T_RETURN - Messages
Data type: BAPIRET1Optional: Yes
Call by Reference: Yes
C_T_RETURN_HTML - Messages as HTML
Data type: W3HTMLOptional: Yes
Call by Reference: Yes
E_T_HTML - Command Result as HTML
Data type: W3HTMLOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_MIME - Command Result as MIME
Data type: W3MIMEOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_NAMED_ATTRIBUTES - Named Attributes of Item
Data type: RRXWS_RENDER_ATROptional: Yes
Call by Reference: Yes
E_T_CUSTOM_ATTRIBUTES - Raw Data Attributes of Item
Data type: BAPICONTENOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for RRW3_GET_ITEM 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_i_pageno | TYPE RRX_PAGENO, " | |||
| lv_e_return_code | TYPE RRX_RETURN_CODE, " | |||
| lt_i_t_parameters | TYPE STANDARD TABLE OF W3QUERY, " | |||
| lv_e_content_type | TYPE W3PARAM-CONT_TYPE, " | |||
| lt_i_t_parameters_string | TYPE STANDARD TABLE OF W3HTML, " | |||
| lv_i_parameter_string_separator | TYPE CHAR1, " ''' | |||
| lt_c_t_return | TYPE STANDARD TABLE OF BAPIRET1, " | |||
| lv_i_reset_return | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_e_content_length | TYPE W3PARAM-CONT_LEN, " | |||
| lt_c_t_return_html | TYPE STANDARD TABLE OF W3HTML, " | |||
| lv_e_force_statefull | TYPE RS_BOOL, " | |||
| lt_e_t_html | TYPE STANDARD TABLE OF W3HTML, " | |||
| lt_e_t_mime | TYPE STANDARD TABLE OF W3MIME, " | |||
| lt_e_t_named_attributes | TYPE STANDARD TABLE OF RRXWS_RENDER_ATR, " | |||
| lt_e_t_custom_attributes | TYPE STANDARD TABLE OF BAPICONTEN. " |
|   CALL FUNCTION 'RRW3_GET_ITEM' "Reject Command |
| EXPORTING | ||
| I_PAGENO | = lv_i_pageno | |
| I_PARAMETER_STRING_SEPARATOR | = lv_i_parameter_string_separator | |
| I_RESET_RETURN | = lv_i_reset_return | |
| IMPORTING | ||
| E_RETURN_CODE | = lv_e_return_code | |
| E_CONTENT_TYPE | = lv_e_content_type | |
| E_CONTENT_LENGTH | = lv_e_content_length | |
| E_FORCE_STATEFULL | = lv_e_force_statefull | |
| TABLES | ||
| I_T_PARAMETERS | = lt_i_t_parameters | |
| I_T_PARAMETERS_STRING | = lt_i_t_parameters_string | |
| C_T_RETURN | = lt_c_t_return | |
| C_T_RETURN_HTML | = lt_c_t_return_html | |
| E_T_HTML | = lt_e_t_html | |
| E_T_MIME | = lt_e_t_mime | |
| E_T_NAMED_ATTRIBUTES | = lt_e_t_named_attributes | |
| E_T_CUSTOM_ATTRIBUTES | = lt_e_t_custom_attributes | |
| . " RRW3_GET_ITEM | ||
ABAP code using 7.40 inline data declarations to call FM RRW3_GET_ITEM
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 CONT_TYPE FROM W3PARAM INTO @DATA(ld_e_content_type). | ||||
| DATA(ld_i_parameter_string_separator) | = '''. | |||
| DATA(ld_i_reset_return) | = RS_C_TRUE. | |||
| "SELECT single CONT_LEN FROM W3PARAM INTO @DATA(ld_e_content_length). | ||||
Search for further information about these or an SAP related objects