SAP Function Modules

RSPO_L_RETURN_BIN_DATA SAP Function module







RSPO_L_RETURN_BIN_DATA 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 RSPO_L_RETURN_BIN_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SPRR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RSPO_L_RETURN_BIN_DATA - RSPO L RETURN BIN DATA





CALL FUNCTION 'RSPO_L_RETURN_BIN_DATA' "
  EXPORTING
    rq =                        " tsp01sys
*   list_first = 1              " rspotype-page
*   list_count = 0              " rspotype-page
*   list_end = ' '              " rspotype-mode
*   otf_first = 1               " rspotype-page
*   otf_count = 0               " rspotype-page
*   otf_end = ' '               " rspotype-mode
*   short = 'X'                 " rspotype-mode  General Flag
  IMPORTING
    more_data =                 " rspotype-mode
    col_header =                " rspotype-prtctl
    otf_header =                " itcoo
    last_page =                 " rspotype-page
    codepage =                  " tsp0a-cpcodepage  SAP character set identification
  TABLES
*   line_buffer =               " rspo_dsx      Data Set for Data Exchange
    page_index =                " rspo_index
*   line_buffer2 =              " rspo_dsx2     Data Set for Data Exchange
  EXCEPTIONS
    ERROR = 1                   "
    .  "  RSPO_L_RETURN_BIN_DATA

ABAP code example for Function Module RSPO_L_RETURN_BIN_DATA





The ABAP code below is a full code listing to execute function module RSPO_L_RETURN_BIN_DATA 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).

DATA:
ld_more_data  TYPE RSPOTYPE-MODE ,
ld_col_header  TYPE RSPOTYPE-PRTCTL ,
ld_otf_header  TYPE ITCOO ,
ld_last_page  TYPE RSPOTYPE-PAGE ,
ld_codepage  TYPE TSP0A-CPCODEPAGE ,
it_line_buffer  TYPE STANDARD TABLE OF RSPO_DSX,"TABLES PARAM
wa_line_buffer  LIKE LINE OF it_line_buffer ,
it_page_index  TYPE STANDARD TABLE OF RSPO_INDEX,"TABLES PARAM
wa_page_index  LIKE LINE OF it_page_index ,
it_line_buffer2  TYPE STANDARD TABLE OF RSPO_DSX2,"TABLES PARAM
wa_line_buffer2  LIKE LINE OF it_line_buffer2 .

DATA(ld_rq) = 'Check type of data required'.

DATA(ld_list_first) = Check type of data required

DATA(ld_list_count) = Check type of data required

DATA(ld_list_end) = some text here

DATA(ld_otf_first) = Check type of data required

DATA(ld_otf_count) = Check type of data required

DATA(ld_otf_end) = some text here

DATA(ld_short) = some text here

"populate fields of struture and append to itab
append wa_line_buffer to it_line_buffer.

"populate fields of struture and append to itab
append wa_page_index to it_page_index.

"populate fields of struture and append to itab
append wa_line_buffer2 to it_line_buffer2. . CALL FUNCTION 'RSPO_L_RETURN_BIN_DATA' EXPORTING rq = ld_rq * list_first = ld_list_first * list_count = ld_list_count * list_end = ld_list_end * otf_first = ld_otf_first * otf_count = ld_otf_count * otf_end = ld_otf_end * short = ld_short IMPORTING more_data = ld_more_data col_header = ld_col_header otf_header = ld_otf_header last_page = ld_last_page codepage = ld_codepage TABLES * line_buffer = it_line_buffer page_index = it_page_index * line_buffer2 = it_line_buffer2 EXCEPTIONS ERROR = 1 . " RSPO_L_RETURN_BIN_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_more_data  TYPE RSPOTYPE-MODE ,
ld_rq  TYPE TSP01SYS ,
it_line_buffer  TYPE STANDARD TABLE OF RSPO_DSX ,
wa_line_buffer  LIKE LINE OF it_line_buffer,
ld_col_header  TYPE RSPOTYPE-PRTCTL ,
ld_list_first  TYPE RSPOTYPE-PAGE ,
it_page_index  TYPE STANDARD TABLE OF RSPO_INDEX ,
wa_page_index  LIKE LINE OF it_page_index,
ld_otf_header  TYPE ITCOO ,
ld_list_count  TYPE RSPOTYPE-PAGE ,
it_line_buffer2  TYPE STANDARD TABLE OF RSPO_DSX2 ,
wa_line_buffer2  LIKE LINE OF it_line_buffer2,
ld_last_page  TYPE RSPOTYPE-PAGE ,
ld_list_end  TYPE RSPOTYPE-MODE ,
ld_codepage  TYPE TSP0A-CPCODEPAGE ,
ld_otf_first  TYPE RSPOTYPE-PAGE ,
ld_otf_count  TYPE RSPOTYPE-PAGE ,
ld_otf_end  TYPE RSPOTYPE-MODE ,
ld_short  TYPE RSPOTYPE-MODE .

ld_rq = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_line_buffer to it_line_buffer.

ld_list_first = Check type of data required

"populate fields of struture and append to itab
append wa_page_index to it_page_index.

ld_list_count = Check type of data required

"populate fields of struture and append to itab
append wa_line_buffer2 to it_line_buffer2.

ld_list_end = some text here

ld_otf_first = Check type of data required

ld_otf_count = Check type of data required

ld_otf_end = some text here

ld_short = some text here

Contribute (Add Comments)

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 RSPO_L_RETURN_BIN_DATA or its description.