Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Tree

Former Member
0 Likes
715

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.

4 REPLIES 4
Read only

Former Member
0 Likes
602

hey Emir

You can concatenate both the values it works..

Read only

Former Member
0 Likes
602

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.

Read only

0 Likes
602

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

Read only

0 Likes
602

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.