Спасибо Armann. Решил отказаться от этой затеи, понял, что по простму не получится.
Когда данные не многострочные, можно использовать функции ниже, но для моего случая это не подошло.
Code:
*----------------------------------------------------------------------------------------------------------------------
* displayTree...
*----------------------------------------------------------------------------------------------------------------------
form displayTree using iLocTreeDisplay like iTreeDisplay[].
data: waTreeDisplay type snodetext.
* build up the tree from the internal table node
call function 'RS_TREE_CONSTRUCT'
tables
nodetab = iTreeDisplay
exceptions
tree_failure = 1
id_not_found = 2
wrong_relationship = 3
others = 4.
* get the first index and expand the whole tree
read table iLoctreeDisplay into waTreeDisplay index 1.
call function 'RS_TREE_EXPAND'
exporting
node_id = waTreeDisplay-id
all = 'X'
exceptions
not_found = 1
others = 2.
* now display the tree
call function 'RS_TREE_LIST_DISPLAY'
exporting
callback_program = sy-cprog
callback_user_command = 'CB_USER_COMMAND'
callback_text_display = 'CB_text_DISPLAY'
callback_top_of_page = 'TOP_OF_PAGE'
exceptions
others = 1.
endform. "displayTree
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.