I am implementing BW role menu functionality in BSP Application. Below is my code to generate the tree view for all reports for logged in user.
LOOPAT temp_node_links1 INTO lv_node_links.
CLEAR lv_nodes.
lv_nodes-treeid = 'HRBWTree'.
IF lv_node_links-parent_id = '0000000001'.
lv_nodes-parentid = ''.
ELSE.
lv_nodes-parentid = lv_node_links-parent_id.
ENDIF.
lv_nodes-childid = lv_node_links-object_id.
lv_nodes-status = 'open'.
IF lv_node_links-node_type = 'U'.
lv_nodes-img = 'ICON_BIW_REPORT'.
CLEAR lv_nodes-status.
lv_nodes-status = 'final'.
lv_nodes-target = '_blank'.
ENDIF.
REPLACE lv_protocol WITH i_protocol INTO lv_node_links-url.
REPLACE lv_host WITH i_host INTO lv_node_links-url.
lv_nodes-link = lv_node_links-url.
lv_nodes-text = lv_node_links-text.
lv_nodes-tlevel = lv_node_links-menu_level.
APPEND lv_nodes TO mt_nodes.
CLEAR lv_node_links.
ENDLOOP.
I am getting an error while running this application. The error is
Business Server Page (BSP) errorWhat happened?Calling the BSP page was terminated due to an error. | |
| |
Error type: Your SAP Business Server Pages Team
Please help me out to solve this error. |