SAP RSPO_IRETURN_RAW_DATA Function Module for
RSPO_IRETURN_RAW_DATA is a standard rspo ireturn raw data 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 rspo ireturn raw data FM, simply by entering the name RSPO_IRETURN_RAW_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SPOOL_SP01R
Program Name: SAPLSPOOL_SP01R
Main Program: SAPLSPOOL_SP01R
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSPO_IRETURN_RAW_DATA 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 'RSPO_IRETURN_RAW_DATA'".
EXPORTING
RQ = "
* SUPPRESS_PAGEINFO = 'X' "
* RETURN_CONVERTED_OTF = ' ' "
* LIST_FIRST = 1 "
* LIST_COUNT = 0 "
* LIST_END = ' ' "
* OTF_FIRST = 1 "
* OTF_COUNT = 0 "
* OTF_END = ' ' "
* SHORT = 'X' "
* DISPLAY_ACC_LINES = ' ' "
IMPORTING
MORE_DATA = "
COL_HEADER = "
OTF_HEADER = "
LAST_PAGE = "
TABLES
* LINE_BUFFER = "
PAGE_INDEX = "
* LINE_BUFFER2 = "Dataset for data exchange (long lines)
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for RSPO_IRETURN_RAW_DATA
RQ -
Data type: TSP01SYSOptional: No
Call by Reference: No ( called with pass by value option)
SUPPRESS_PAGEINFO -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RETURN_CONVERTED_OTF -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
LIST_FIRST -
Data type: RSPOTYPE-PAGEDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
LIST_COUNT -
Data type: RSPOTYPE-PAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
LIST_END -
Data type: RSPOTYPE-MODEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OTF_FIRST -
Data type: RSPOTYPE-PAGEDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
OTF_COUNT -
Data type: RSPOTYPE-PAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
OTF_END -
Data type: RSPOTYPE-MODEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY_ACC_LINES -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSPO_IRETURN_RAW_DATA
MORE_DATA -
Data type: RSPOTYPE-MODEOptional: No
Call by Reference: No ( called with pass by value option)
COL_HEADER -
Data type: RSPOTYPE-PRTCTLOptional: No
Call by Reference: No ( called with pass by value option)
OTF_HEADER -
Data type: ITCOOOptional: No
Call by Reference: No ( called with pass by value option)
LAST_PAGE -
Data type: RSPOTYPE-PAGEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSPO_IRETURN_RAW_DATA
LINE_BUFFER -
Data type: RSPO_DSOptional: Yes
Call by Reference: Yes
PAGE_INDEX -
Data type: RSPO_INDEXOptional: No
Call by Reference: No ( called with pass by value option)
LINE_BUFFER2 - Dataset for data exchange (long lines)
Data type: RSPO_DS2Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSPO_IRETURN_RAW_DATA 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_rq | TYPE TSP01SYS, " | |||
lv_error | TYPE TSP01SYS, " | |||
lv_more_data | TYPE RSPOTYPE-MODE, " | |||
lt_line_buffer | TYPE STANDARD TABLE OF RSPO_DS, " | |||
lv_suppress_pageinfo | TYPE C, " 'X' | |||
lv_return_converted_otf | TYPE C, " ' ' | |||
lv_col_header | TYPE RSPOTYPE-PRTCTL, " | |||
lv_list_first | TYPE RSPOTYPE-PAGE, " 1 | |||
lt_page_index | TYPE STANDARD TABLE OF RSPO_INDEX, " | |||
lv_list_count | TYPE RSPOTYPE-PAGE, " 0 | |||
lv_otf_header | TYPE ITCOO, " | |||
lt_line_buffer2 | TYPE STANDARD TABLE OF RSPO_DS2, " | |||
lv_list_end | TYPE RSPOTYPE-MODE, " ' ' | |||
lv_last_page | TYPE RSPOTYPE-PAGE, " | |||
lv_otf_first | TYPE RSPOTYPE-PAGE, " 1 | |||
lv_otf_count | TYPE RSPOTYPE-PAGE, " 0 | |||
lv_otf_end | TYPE RSPOTYPE-MODE, " ' ' | |||
lv_short | TYPE C, " 'X' | |||
lv_display_acc_lines | TYPE C. " ' ' |
  CALL FUNCTION 'RSPO_IRETURN_RAW_DATA' " |
EXPORTING | ||
RQ | = lv_rq | |
SUPPRESS_PAGEINFO | = lv_suppress_pageinfo | |
RETURN_CONVERTED_OTF | = lv_return_converted_otf | |
LIST_FIRST | = lv_list_first | |
LIST_COUNT | = lv_list_count | |
LIST_END | = lv_list_end | |
OTF_FIRST | = lv_otf_first | |
OTF_COUNT | = lv_otf_count | |
OTF_END | = lv_otf_end | |
SHORT | = lv_short | |
DISPLAY_ACC_LINES | = lv_display_acc_lines | |
IMPORTING | ||
MORE_DATA | = lv_more_data | |
COL_HEADER | = lv_col_header | |
OTF_HEADER | = lv_otf_header | |
LAST_PAGE | = lv_last_page | |
TABLES | ||
LINE_BUFFER | = lt_line_buffer | |
PAGE_INDEX | = lt_page_index | |
LINE_BUFFER2 | = lt_line_buffer2 | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " RSPO_IRETURN_RAW_DATA |
ABAP code using 7.40 inline data declarations to call FM RSPO_IRETURN_RAW_DATA
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 MODE FROM RSPOTYPE INTO @DATA(ld_more_data). | ||||
DATA(ld_suppress_pageinfo) | = 'X'. | |||
DATA(ld_return_converted_otf) | = ' '. | |||
"SELECT single PRTCTL FROM RSPOTYPE INTO @DATA(ld_col_header). | ||||
"SELECT single PAGE FROM RSPOTYPE INTO @DATA(ld_list_first). | ||||
DATA(ld_list_first) | = 1. | |||
"SELECT single PAGE FROM RSPOTYPE INTO @DATA(ld_list_count). | ||||
"SELECT single MODE FROM RSPOTYPE INTO @DATA(ld_list_end). | ||||
DATA(ld_list_end) | = ' '. | |||
"SELECT single PAGE FROM RSPOTYPE INTO @DATA(ld_last_page). | ||||
"SELECT single PAGE FROM RSPOTYPE INTO @DATA(ld_otf_first). | ||||
DATA(ld_otf_first) | = 1. | |||
"SELECT single PAGE FROM RSPOTYPE INTO @DATA(ld_otf_count). | ||||
"SELECT single MODE FROM RSPOTYPE INTO @DATA(ld_otf_end). | ||||
DATA(ld_otf_end) | = ' '. | |||
DATA(ld_short) | = 'X'. | |||
DATA(ld_display_acc_lines) | = ' '. | |||
Search for further information about these or an SAP related objects