2012 Nov 14 7:15 AM
Hi I have used FM 'RS_TREE_CONSTRUCT' and 'RS_TREE_DISPLAY' for my report.
My requirement is to show an exclamation mark in red as an indicator when a particular condition is not met.
how can I achieve this? please help.
2012 Nov 14 7:36 AM
Hi,
You can just add icon to the name of the node:
lv_enry-name = ''@1B@ Node with error'. " ICON_MESSAGE_ERROR
Hi I have used FM 'RS_TREE_CONSTRUCT' and 'RS_TREE_DISPLAY' for my report.
My requirement is to show an exclamation mark in red as an indicator when a particular condition is not met.
how can I achieve this? please help.
2012 Nov 14 7:36 AM
Hi,
You can just add icon to the name of the node:
lv_enry-name = ''@1B@ Node with error'. " ICON_MESSAGE_ERROR
2012 Nov 14 10:14 AM
Thanks Alexander.
I tried appending the icon to the name but it isn't working.
2012 Nov 14 10:25 AM
Hm, I also tried. Can you try to change NODETAB-NAME in report BCTREEPT in debug mode? I changed it to '@1B@ROOTNODE'.
Here is the result:
2012 Nov 14 10:47 AM
many thanks alexander. It gives the output.My requirement was like :
Customer no. Customer name
1 Alex
! 2 Emma
So when there is an exception the indicator must be displayed.
So, I concatenated the icon along with the value and passed the same in the node-text.
It's working!!!.
2012 Nov 14 11:03 AM
You also can use
NODES-TEXT2 = 'ICON_MESSAGE_ERROR'.
NODES-KIND2 = 'I'.
like in BCTREEPT.
2012 Nov 15 5:15 AM
Hi,
Can you help me with one more issue.
I see that there is provision of displaying only 10 columns using FM 'RS_TREE*' as in structure snodetext, there are only 10 fields.(e.g. text , text1, .........text9).
I have more than 10 columns to dispaly.
'
2012 Nov 15 10:47 AM
2012 Nov 15 12:24 PM
Yes I did some research,though I am not that strong in OOPS. I believe that we can't display the column headings of every node in a tree. For my requirement, he node structures are different from each other.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |