2010 Jan 13 3:50 AM
I have a program that uses ALV tree.
Part of the funcionality I have implemented is to Refresh the data.
As a result of the refresh I delete/rebuild the tree using DELETE_SUBTREE and a call to FRONTEND_UPDATE is also perfromed.
A further function implemented is event ITEM_DOUBLE_CLICK which returns the NODE_KEY of the item selected.
However after the Refresh and therefore the DELETE_SUBTREE, the NODE_KEY is not being refreshed and is returning a NODE_KEY result that is the record selected PLUS the total number of nodes prior to the refresh. Therefore the subsequent data reads being perfromed with NODE_KEY reference data that is beyond the index of the data I actually have.
The program has been based around the following example;
http://wiki.sdn.sap.com/wiki/display/Snippets/Refresh+ALVtree
Has there been anything missed/overlooked?
Thanks
Justin
I have a program that uses ALV tree.
Part of the funcionality I have implemented is to Refresh the data.
As a result of the refresh I delete/rebuild the tree using DELETE_SUBTREE and a call to FRONTEND_UPDATE is also perfromed.
A further function implemented is event ITEM_DOUBLE_CLICK which returns the NODE_KEY of the item selected.
However after the Refresh and therefore the DELETE_SUBTREE, the NODE_KEY is not being refreshed and is returning a NODE_KEY result that is the record selected PLUS the total number of nodes prior to the refresh. Therefore the subsequent data reads being perfromed with NODE_KEY reference data that is beyond the index of the data I actually have.
The program has been based around the following example;
http://wiki.sdn.sap.com/wiki/display/Snippets/Refresh+ALVtree
Has there been anything missed/overlooked?
Thanks
Justin
2010 Jan 14 3:45 AM
I have found the answer.
Calling method GET_OUTTAB_LINE to return the data by the NODE_KEY as returned from the event.
2010 Jan 14 3:45 AM
I have found the answer.
Calling method GET_OUTTAB_LINE to return the data by the NODE_KEY as returned from the event.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |