SAP Function Modules

RDBRA_READ_SREC_FOR_RHNODE SAP Function module - RDB RA: Single Records Details: Get Header + Key Figure Vals for RH Node







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

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


Pattern for FM RDBRA_READ_SREC_FOR_RHNODE - RDBRA READ SREC FOR RHNODE





CALL FUNCTION 'RDBRA_READ_SREC_FOR_RHNODE' "RDB RA: Single Records Details: Get Header + Key Figure Vals for RH Nodes
  EXPORTING
    i_keydate =                 " afw_keydate   Key Date
    i_segment_t =               " afw_segment_t  Table of Segments
    i_keyf_t =                  " rdb_read_keyf_info_t  Table of Key Figures (RF Items and Value at Risk)
    i_rh_node =                 " rdbra_rknoten  Node of Risk Hierarchy
  IMPORTING
    e_rec_header_t =            " rdb_rec_header_t  Table for Single-Record Headers
    e_keyf_values_rad0_t =      " rdbra_rec_tbp_t  Table of Key Figure Values - Category RAD0
    e_keyf_values_rav1_rak1_t =   " rdbra_intf_tvk_t  Table of Key Figure Values of Category RAV1/RAK1
  EXCEPTIONS
    INTERNAL_ERROR = 1          "               Processing Error
    .  "  RDBRA_READ_SREC_FOR_RHNODE

ABAP code example for Function Module RDBRA_READ_SREC_FOR_RHNODE





The ABAP code below is a full code listing to execute function module RDBRA_READ_SREC_FOR_RHNODE 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_rec_header_t  TYPE RDB_REC_HEADER_T ,
ld_e_keyf_values_rad0_t  TYPE RDBRA_REC_TBP_T ,
ld_e_keyf_values_rav1_rak1_t  TYPE RDBRA_INTF_TVK_T .

DATA(ld_i_keydate) = 'Check type of data required'.
DATA(ld_i_segment_t) = 'Check type of data required'.
DATA(ld_i_keyf_t) = 'Check type of data required'.
DATA(ld_i_rh_node) = 'Check type of data required'. . CALL FUNCTION 'RDBRA_READ_SREC_FOR_RHNODE' EXPORTING i_keydate = ld_i_keydate i_segment_t = ld_i_segment_t i_keyf_t = ld_i_keyf_t i_rh_node = ld_i_rh_node IMPORTING e_rec_header_t = ld_e_rec_header_t e_keyf_values_rad0_t = ld_e_keyf_values_rad0_t e_keyf_values_rav1_rak1_t = ld_e_keyf_values_rav1_rak1_t EXCEPTIONS INTERNAL_ERROR = 1 . " RDBRA_READ_SREC_FOR_RHNODE
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_e_rec_header_t  TYPE RDB_REC_HEADER_T ,
ld_i_keydate  TYPE AFW_KEYDATE ,
ld_e_keyf_values_rad0_t  TYPE RDBRA_REC_TBP_T ,
ld_i_segment_t  TYPE AFW_SEGMENT_T ,
ld_e_keyf_values_rav1_rak1_t  TYPE RDBRA_INTF_TVK_T ,
ld_i_keyf_t  TYPE RDB_READ_KEYF_INFO_T ,
ld_i_rh_node  TYPE RDBRA_RKNOTEN .

ld_i_keydate = 'Check type of data required'.
ld_i_segment_t = 'Check type of data required'.
ld_i_keyf_t = 'Check type of data required'.
ld_i_rh_node = '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 RDBRA_READ_SREC_FOR_RHNODE or its description.