DATA: lv_nodekey TYPE tv_nodekey ,
le_item TYPE shi_item,
le_node TYPE treev_node,
lv_relatkey TYPE tv_nodekey,
lv_text(500) TYPE c ,
lv_relatship_ant TYPE int4,
lt_path TYPE STANDARD TABLE OF char100,
le_path TYPE char100,
lv_choise TYPE sy-tabix.
CASE fcode.
WHEN 'ZCOPY_P'.
CHECK g_tree_data->tree IS NOT INITIAL.
READ TABLE g_tree_data->nodes INTO le_node WITH KEY node_key = g_tree_data->node_key .
CHECK sy-subrc = 0.
READ TABLE g_tree_data->items INTO le_item WITH KEY node_key = g_tree_data->node_key item_name = 'TEXT'.
CHECK sy-subrc = 0.
le_path = le_item-text.
APPEND le_path TO lt_path.
lv_relatkey = le_node-relatkey.
lv_relatship_ant = le_node-relatship.
WHILE lv_relatkey IS NOT INITIAL.
READ TABLE g_tree_data->nodes INTO le_node WITH KEY node_key = lv_relatkey .
READ TABLE g_tree_data->items INTO le_item WITH KEY node_key = le_node-node_key item_name = 'TEXT' .
lv_relatkey = le_node-relatkey .
IF le_item-text IS NOT INITIAL AND lv_relatship_ant = '4'.
CONCATENATE le_item-text '->' INTO le_path.
* le_path = le_item-text.
INSERT le_path INTO lt_path INDEX 1.
ENDIF.
lv_relatship_ant = le_node-relatship..
ENDWHILE.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
endpos_col = 130
endpos_row = 10
startpos_col = 40
startpos_row = 1
titletext = 'Ruta de Configuración'
* IMPORTING
* choise = lv_choise
TABLES
valuetab = lt_path
EXCEPTIONS
break_off = 1
OTHERS = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
10 | |
7 | |
7 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 |