SAP Function Modules

UCR_DATA_READ_1 SAP Function module







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

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


Pattern for FM UCR_DATA_READ_1 - UCR DATA READ 1





CALL FUNCTION 'UCR_DATA_READ_1' "
  EXPORTING
*   it_seltype =                " ucr_t_bw_seltype  Type of Selection per Row/Column
*   it_hienode =                " ucr_t_bw_hienode  Node Selection per Row/Column
*   it_hienodename =            " ucr_t_bw_hienodename  Node Selection per Row/Column -> Char.Values
*   it_range =                  " ucr_t_bw_range  Selection Range per Row/Column
*   i_packagesize = 1000        " i
*   i_keydate = SY-DATUM        " sy-datum      Date and Time, Current (Application Server) Date
*   it_sfc =                    " ucr_t_bw_iobj  List of InfoObjects
*   it_sfk =                    " ucr_t_bw_iobj  List of InfoObjects
    i_infoprov =                " rsinfocube    InfoCube
    i_rfcdest =                 " rfcdest       Logical Destination (Specified when Calling Function)
  IMPORTING
    et_data =                   " standard table
    e_end_of_data =             " uc_flg        General Indicator for SAP Consolidation
    et_message =                " ucr_t_bw_message  Messages
  CHANGING
    c_first_call =              " uc_flg        General Indicator for SAP Consolidation
    .  "  UCR_DATA_READ_1

ABAP code example for Function Module UCR_DATA_READ_1





The ABAP code below is a full code listing to execute function module UCR_DATA_READ_1 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_et_data  TYPE STANDARD TABLE ,
ld_e_end_of_data  TYPE UC_FLG ,
ld_et_message  TYPE UCR_T_BW_MESSAGE .

DATA(ld_c_first_call) = 'Check type of data required'.
DATA(ld_it_seltype) = 'Check type of data required'.
DATA(ld_it_hienode) = 'Check type of data required'.
DATA(ld_it_hienodename) = 'Check type of data required'.
DATA(ld_it_range) = 'Check type of data required'.
DATA(ld_i_packagesize) = 'Check type of data required'.
DATA(ld_i_keydate) = '20210129'.
DATA(ld_it_sfc) = '20210129'.
DATA(ld_it_sfk) = '20210129'.
DATA(ld_i_infoprov) = '20210129'.
DATA(ld_i_rfcdest) = '20210129'. . CALL FUNCTION 'UCR_DATA_READ_1' EXPORTING * it_seltype = ld_it_seltype * it_hienode = ld_it_hienode * it_hienodename = ld_it_hienodename * it_range = ld_it_range * i_packagesize = ld_i_packagesize * i_keydate = ld_i_keydate * it_sfc = ld_it_sfc * it_sfk = ld_it_sfk i_infoprov = ld_i_infoprov i_rfcdest = ld_i_rfcdest IMPORTING et_data = ld_et_data e_end_of_data = ld_e_end_of_data et_message = ld_et_message CHANGING c_first_call = ld_c_first_call . " UCR_DATA_READ_1
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_c_first_call  TYPE UC_FLG ,
ld_et_data  TYPE STANDARD TABLE ,
ld_it_seltype  TYPE UCR_T_BW_SELTYPE ,
ld_e_end_of_data  TYPE UC_FLG ,
ld_it_hienode  TYPE UCR_T_BW_HIENODE ,
ld_et_message  TYPE UCR_T_BW_MESSAGE ,
ld_it_hienodename  TYPE UCR_T_BW_HIENODENAME ,
ld_it_range  TYPE UCR_T_BW_RANGE ,
ld_i_packagesize  TYPE I ,
ld_i_keydate  TYPE SY-DATUM ,
ld_it_sfc  TYPE UCR_T_BW_IOBJ ,
ld_it_sfk  TYPE UCR_T_BW_IOBJ ,
ld_i_infoprov  TYPE RSINFOCUBE ,
ld_i_rfcdest  TYPE RFCDEST .

ld_c_first_call = '20210129'.
ld_it_seltype = '20210129'.
ld_it_hienode = '20210129'.
ld_it_hienodename = '20210129'.
ld_it_range = '20210129'.
ld_i_packagesize = '20210129'.
ld_i_keydate = '20210129'.
ld_it_sfc = '20210129'.
ld_it_sfk = '20210129'.
ld_i_infoprov = '20210129'.
ld_i_rfcdest = '20210129'.

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