SAP Function Modules

BICS_DT_GET_NODES SAP Function module - Get nodes







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

Associated Function Group: RSBOLAP_BICS_DESIGN_TIME
Released Date: Not Released
Processing type: Remote-Enabled + BasXML supported
remote enabled with basXML set


Pattern for FM BICS_DT_GET_NODES - BICS DT GET NODES





CALL FUNCTION 'BICS_DT_GET_NODES' "Get nodes
  EXPORTING
*   i_id =                      " rsbolap_object_id  Option 1: Node sid
*   i_node_name =               " rsbolap_object_name  Option 2: Node name
*   i_node_type =               " rsbolap_object_name  Option 2: Node Info Object
*   i_node_name_presentation =   " rsbolap_presentation  Option 2: Object presentation
    i_iobj_name =               " rsbolap_object_name  Object Name
    i_hiesid =                  " rsbolap_object_id  Object ID
*   i_read_mode = 'M'           " rsmd_rs_read_mode  Read mode
*   i_language = SY-LANGU       " sylangu       Language
*   i_duedate = SY-DATUM        " sy-datum      Date
*   i_infoprovider =            " rsinfoprov    InfoProvider
    i_presentations =           " rsbolap_presentation_bit_list  MengPresentations as bit list
*   i_level = 0                 " rsbolap_index  Level
    i_only_count =              " rs_bool       Only return the count?
*   i_start_index =             " int4          Start index
*   i_max_rows =                " int4          Max result rows
    i_t_node_type_presentations =   " bics_dt_t_iobj_presentations  Table of node types and their presentations
  IMPORTING
    e_count =                   " rsbolap_index  Amount of nodes
    e_t_member_presentation =   " bics_prov_rs_t_member_presenta  Presentation Information for Member Information
  TABLES
    i_t_attributes =            " bics_dt_s_attr_presentations  Design time attribute presentations
*   i_t_statistic_info =        " rssta_s_eventinput  OLAP Statistics: Mass Insert of Event Data
*   e_t_members =               " bics_prov_rs_member  Characteristic and Attribute Information
*   e_t_message =               " bics_prov_message  Message
  EXCEPTIONS
    HIERARCHY_NOT_FOUND = 1     "               Chosen hierarchy was not found
    HIERARCHY_READ_ERROR = 2    "               Error while reading the hierarchy
    .  "  BICS_DT_GET_NODES

ABAP code example for Function Module BICS_DT_GET_NODES





The ABAP code below is a full code listing to execute function module BICS_DT_GET_NODES 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_count  TYPE RSBOLAP_INDEX ,
ld_e_t_member_presentation  TYPE BICS_PROV_RS_T_MEMBER_PRESENTA ,
it_i_t_attributes  TYPE STANDARD TABLE OF BICS_DT_S_ATTR_PRESENTATIONS,"TABLES PARAM
wa_i_t_attributes  LIKE LINE OF it_i_t_attributes ,
it_i_t_statistic_info  TYPE STANDARD TABLE OF RSSTA_S_EVENTINPUT,"TABLES PARAM
wa_i_t_statistic_info  LIKE LINE OF it_i_t_statistic_info ,
it_e_t_members  TYPE STANDARD TABLE OF BICS_PROV_RS_MEMBER,"TABLES PARAM
wa_e_t_members  LIKE LINE OF it_e_t_members ,
it_e_t_message  TYPE STANDARD TABLE OF BICS_PROV_MESSAGE,"TABLES PARAM
wa_e_t_message  LIKE LINE OF it_e_t_message .

DATA(ld_i_id) = 'Check type of data required'.
DATA(ld_i_node_name) = 'Check type of data required'.
DATA(ld_i_node_type) = 'Check type of data required'.
DATA(ld_i_node_name_presentation) = 'Check type of data required'.
DATA(ld_i_iobj_name) = 'Check type of data required'.
DATA(ld_i_hiesid) = 'Check type of data required'.
DATA(ld_i_read_mode) = 'Check type of data required'.
DATA(ld_i_language) = 'Check type of data required'.
DATA(ld_i_duedate) = '20210129'.
DATA(ld_i_infoprovider) = '20210129'.
DATA(ld_i_presentations) = '20210129'.
DATA(ld_i_level) = '20210129'.
DATA(ld_i_only_count) = '20210129'.
DATA(ld_i_start_index) = '20210129'.
DATA(ld_i_max_rows) = '20210129'.
DATA(ld_i_t_node_type_presentations) = '20210129'.

"populate fields of struture and append to itab
append wa_i_t_attributes to it_i_t_attributes.

"populate fields of struture and append to itab
append wa_i_t_statistic_info to it_i_t_statistic_info.

"populate fields of struture and append to itab
append wa_e_t_members to it_e_t_members.

"populate fields of struture and append to itab
append wa_e_t_message to it_e_t_message. . CALL FUNCTION 'BICS_DT_GET_NODES' EXPORTING * i_id = ld_i_id * i_node_name = ld_i_node_name * i_node_type = ld_i_node_type * i_node_name_presentation = ld_i_node_name_presentation i_iobj_name = ld_i_iobj_name i_hiesid = ld_i_hiesid * i_read_mode = ld_i_read_mode * i_language = ld_i_language * i_duedate = ld_i_duedate * i_infoprovider = ld_i_infoprovider i_presentations = ld_i_presentations * i_level = ld_i_level i_only_count = ld_i_only_count * i_start_index = ld_i_start_index * i_max_rows = ld_i_max_rows i_t_node_type_presentations = ld_i_t_node_type_presentations IMPORTING e_count = ld_e_count e_t_member_presentation = ld_e_t_member_presentation TABLES i_t_attributes = it_i_t_attributes * i_t_statistic_info = it_i_t_statistic_info * e_t_members = it_e_t_members * e_t_message = it_e_t_message EXCEPTIONS HIERARCHY_NOT_FOUND = 1 HIERARCHY_READ_ERROR = 2 . " BICS_DT_GET_NODES
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_count  TYPE RSBOLAP_INDEX ,
ld_i_id  TYPE RSBOLAP_OBJECT_ID ,
it_i_t_attributes  TYPE STANDARD TABLE OF BICS_DT_S_ATTR_PRESENTATIONS ,
wa_i_t_attributes  LIKE LINE OF it_i_t_attributes,
ld_e_t_member_presentation  TYPE BICS_PROV_RS_T_MEMBER_PRESENTA ,
ld_i_node_name  TYPE RSBOLAP_OBJECT_NAME ,
it_i_t_statistic_info  TYPE STANDARD TABLE OF RSSTA_S_EVENTINPUT ,
wa_i_t_statistic_info  LIKE LINE OF it_i_t_statistic_info,
ld_i_node_type  TYPE RSBOLAP_OBJECT_NAME ,
it_e_t_members  TYPE STANDARD TABLE OF BICS_PROV_RS_MEMBER ,
wa_e_t_members  LIKE LINE OF it_e_t_members,
ld_i_node_name_presentation  TYPE RSBOLAP_PRESENTATION ,
it_e_t_message  TYPE STANDARD TABLE OF BICS_PROV_MESSAGE ,
wa_e_t_message  LIKE LINE OF it_e_t_message,
ld_i_iobj_name  TYPE RSBOLAP_OBJECT_NAME ,
ld_i_hiesid  TYPE RSBOLAP_OBJECT_ID ,
ld_i_read_mode  TYPE RSMD_RS_READ_MODE ,
ld_i_language  TYPE SYLANGU ,
ld_i_duedate  TYPE SY-DATUM ,
ld_i_infoprovider  TYPE RSINFOPROV ,
ld_i_presentations  TYPE RSBOLAP_PRESENTATION_BIT_LIST ,
ld_i_level  TYPE RSBOLAP_INDEX ,
ld_i_only_count  TYPE RS_BOOL ,
ld_i_start_index  TYPE INT4 ,
ld_i_max_rows  TYPE INT4 ,
ld_i_t_node_type_presentations  TYPE BICS_DT_T_IOBJ_PRESENTATIONS .

ld_i_id = '20210129'.

"populate fields of struture and append to itab
append wa_i_t_attributes to it_i_t_attributes.
ld_i_node_name = '20210129'.

"populate fields of struture and append to itab
append wa_i_t_statistic_info to it_i_t_statistic_info.
ld_i_node_type = '20210129'.

"populate fields of struture and append to itab
append wa_e_t_members to it_e_t_members.
ld_i_node_name_presentation = '20210129'.

"populate fields of struture and append to itab
append wa_e_t_message to it_e_t_message.
ld_i_iobj_name = '20210129'.
ld_i_hiesid = '20210129'.
ld_i_read_mode = '20210129'.
ld_i_language = 'Check type of data required'.
ld_i_duedate = '20210129'.
ld_i_infoprovider = '20210129'.
ld_i_presentations = '20210129'.
ld_i_level = '20210129'.
ld_i_only_count = '20210129'.
ld_i_start_index = '20210129'.
ld_i_max_rows = '20210129'.
ld_i_t_node_type_presentations = '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 BICS_DT_GET_NODES or its description.