SAP RSPO_IRETURN_BIN_DATA Function Module for









RSPO_IRETURN_BIN_DATA is a standard rspo ireturn bin 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 bin data FM, simply by entering the name RSPO_IRETURN_BIN_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_BIN_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_BIN_DATA'"
EXPORTING
RQ = "
* LIST_FIRST = 1 "
* LIST_COUNT = 0 "
* LIST_END = ' ' "
* OTF_FIRST = 1 "
* OTF_COUNT = 0 "
* OTF_END = ' ' "
* SHORT = 'X' "

IMPORTING
MORE_DATA = "
COL_HEADER = "
OTF_HEADER = "
LAST_PAGE = "
CODEPAGE = "SAP character set identification

TABLES
* LINE_BUFFER = "Data Set for Data Exchange
PAGE_INDEX = "
* LINE_BUFFER2 = "Dataset for data exchange (long lines)

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for RSPO_IRETURN_BIN_DATA

RQ -

Data type: TSP01SYS
Optional: No
Call by Reference: No ( called with pass by value option)

LIST_FIRST -

Data type: RSPOTYPE-PAGE
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

LIST_COUNT -

Data type: RSPOTYPE-PAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LIST_END -

Data type: RSPOTYPE-MODE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

OTF_FIRST -

Data type: RSPOTYPE-PAGE
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

OTF_COUNT -

Data type: RSPOTYPE-PAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

OTF_END -

Data type: RSPOTYPE-MODE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHORT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSPO_IRETURN_BIN_DATA

MORE_DATA -

Data type: RSPOTYPE-MODE
Optional: No
Call by Reference: No ( called with pass by value option)

COL_HEADER -

Data type: RSPOTYPE-PRTCTL
Optional: No
Call by Reference: No ( called with pass by value option)

OTF_HEADER -

Data type: ITCOO
Optional: No
Call by Reference: No ( called with pass by value option)

LAST_PAGE -

Data type: RSPOTYPE-PAGE
Optional: No
Call by Reference: No ( called with pass by value option)

CODEPAGE - SAP character set identification

Data type: TSP0A-CPCODEPAGE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RSPO_IRETURN_BIN_DATA

LINE_BUFFER - Data Set for Data Exchange

Data type: RSPO_DSX
Optional: Yes
Call by Reference: Yes

PAGE_INDEX -

Data type: RSPO_INDEX
Optional: No
Call by Reference: No ( called with pass by value option)

LINE_BUFFER2 - Dataset for data exchange (long lines)

Data type: RSPO_DSX2
Optional: 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_BIN_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_DSX, "   
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_DSX2, "   
lv_list_end  TYPE RSPOTYPE-MODE, "   ' '
lv_last_page  TYPE RSPOTYPE-PAGE, "   
lv_codepage  TYPE TSP0A-CPCODEPAGE, "   
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'

  CALL FUNCTION 'RSPO_IRETURN_BIN_DATA'  "
    EXPORTING
         RQ = lv_rq
         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
    IMPORTING
         MORE_DATA = lv_more_data
         COL_HEADER = lv_col_header
         OTF_HEADER = lv_otf_header
         LAST_PAGE = lv_last_page
         CODEPAGE = lv_codepage
    TABLES
         LINE_BUFFER = lt_line_buffer
         PAGE_INDEX = lt_page_index
         LINE_BUFFER2 = lt_line_buffer2
    EXCEPTIONS
        ERROR = 1
. " RSPO_IRETURN_BIN_DATA




ABAP code using 7.40 inline data declarations to call FM RSPO_IRETURN_BIN_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).
 
 
"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 CPCODEPAGE FROM TSP0A INTO @DATA(ld_codepage).
 
"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'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!