‎2006 Aug 05 11:17 AM
Hi,
I was wondering how to put text descriptions after the node entries in an alv tree. I am using cl_gui_alv_tree_simple I want to see the descriptions after the codes similar to the SAP menu where the tcode is followed by the description of the transaction.
I have thought about concatenating the codes and the descriptions into one field but that requires me building a new internal table just for display. To avoid that, I also thought about using conversion exits for the output, that eliminates the extra table but is a bit expensive since it requires a lot of select singles.
thx.
‎2006 Aug 05 12:32 PM
‎2006 Aug 07 4:26 AM
yeah but i dont want my internal table to contain both the code and description since i want to use it later (ie, on events) and it would be a tedious job to put them together before display and taking it off/ or extracting the code on events.. thx btw.
‎2006 Aug 07 4:29 AM
I think there are two fields. In the table which you are using to build the tree, field key you can be put in the code and the field TEXT can be used to show the description. What shows up on the screen will be the TEXT.
What is the strcuture you are using to build the tree.
Regards,
Ravi
Note :Please mark all the helpful answers
‎2006 Aug 07 7:07 AM
ravi,
just so were in the same page, when you say 2 fields, do you mean 2 separate fields in the field catalog? If so this would not work because the TEXT field would appear as a separate column and i have multiple code/text fields.
And i want all text descriptions appear after the codes.
ie.
-bukrs |
--hkont |
---kunnr | dmbtr
now.. bukrs hkont and kunnr will all have text descriptions..
thx.