Posted: Wed Sep 05, 2007 6:12 pm Post subject: Accessing all Parent nodes in ALV Tree
Author: Puru Govind
This code snippet will check (the checkboxes) all the parent nodes. Note to get the parent of the parent, I am calling the method recursively. Please note that, I am copying the code of my application verbatim here. Please make changes accordingly.
*Get the current node
CALL METHOD go_nodes_update->get_node
node_key = node_key
value = lo_node.
CALL METHOD lo_node->get_parent "get its parent
value = lo_parent_node.
CALL METHOD lo_parent_node->get_key "Get parents key
value = lv_parent_key.
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.