SAP Function Modules

RODPS_REPL_ODP_FETCH SAP Function module







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

Associated Function Group: RODPS_REPL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM RODPS_REPL_ODP_FETCH - RODPS REPL ODP FETCH





CALL FUNCTION 'RODPS_REPL_ODP_FETCH' "
  EXPORTING
    i_pointer =                 " rodps_repl_pointer
*   i_package =                 " rodps_repl_extraction_package
*   i_redo =                    " odq_boolean
*   i_maxpackagesize = '52428800'  " rodps_repl_size
*   i_encoding = 'UTF-8'        " abap_encod
  IMPORTING
    e_package =                 " rodps_repl_extraction_package
    e_no_more_data =            " odq_boolean
* TABLES
*   et_data =                   " rodps_repl_t_xdata
*   et_return =                 " bapirettab
    .  "  RODPS_REPL_ODP_FETCH

ABAP code example for Function Module RODPS_REPL_ODP_FETCH





The ABAP code below is a full code listing to execute function module RODPS_REPL_ODP_FETCH 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_e_package  TYPE RODPS_REPL_EXTRACTION_PACKAGE ,
ld_e_no_more_data  TYPE ODQ_BOOLEAN ,
it_et_data  TYPE STANDARD TABLE OF RODPS_REPL_T_XDATA,"TABLES PARAM
wa_et_data  LIKE LINE OF it_et_data ,
it_et_return  TYPE STANDARD TABLE OF BAPIRETTAB,"TABLES PARAM
wa_et_return  LIKE LINE OF it_et_return .

DATA(ld_i_pointer) = 'Check type of data required'.
DATA(ld_i_package) = 'Check type of data required'.
DATA(ld_i_redo) = 'Check type of data required'.
DATA(ld_i_maxpackagesize) = 'Check type of data required'.
DATA(ld_i_encoding) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_data to it_et_data.

"populate fields of struture and append to itab
append wa_et_return to it_et_return. . CALL FUNCTION 'RODPS_REPL_ODP_FETCH' EXPORTING i_pointer = ld_i_pointer * i_package = ld_i_package * i_redo = ld_i_redo * i_maxpackagesize = ld_i_maxpackagesize * i_encoding = ld_i_encoding IMPORTING e_package = ld_e_package e_no_more_data = ld_e_no_more_data * TABLES * et_data = it_et_data * et_return = it_et_return . " RODPS_REPL_ODP_FETCH
IF SY-SUBRC EQ 0. "All OK 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_e_package  TYPE RODPS_REPL_EXTRACTION_PACKAGE ,
ld_i_pointer  TYPE RODPS_REPL_POINTER ,
it_et_data  TYPE STANDARD TABLE OF RODPS_REPL_T_XDATA ,
wa_et_data  LIKE LINE OF it_et_data,
ld_e_no_more_data  TYPE ODQ_BOOLEAN ,
ld_i_package  TYPE RODPS_REPL_EXTRACTION_PACKAGE ,
it_et_return  TYPE STANDARD TABLE OF BAPIRETTAB ,
wa_et_return  LIKE LINE OF it_et_return,
ld_i_redo  TYPE ODQ_BOOLEAN ,
ld_i_maxpackagesize  TYPE RODPS_REPL_SIZE ,
ld_i_encoding  TYPE ABAP_ENCOD .

ld_i_pointer = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_data to it_et_data.
ld_i_package = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.
ld_i_redo = 'Check type of data required'.
ld_i_maxpackagesize = 'Check type of data required'.
ld_i_encoding = 'Check type of data required'.

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