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 leafs

Former Member
0 Likes
855

I'm extending ALV Tree, which dinamicaly build it own structure. I'm trying ti find function/property which can change view of my leaf, precise:

when we have leaf with no subleaf when this leaf is shown with special icon (looking like notepad icon),

when we have leaf with subleafs then it is shown with folder icon.

I want to change some leafs which should be loocing like leafs with folder icon, beacause in future, some data for this leafs will be read and some subleafs will appear (this reading will be performed, when user click on this leaf and will try to expand it).

For any help I reward in points

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
752

Hi Tomasz

If you are using, CL_GUI_ALV_TREE, there is an exporting parameter: IT_ITEM_LAYOUT of structure: LVC_S_LAYI.

Within this structure, a field called: T_IMAGE exists. If we pass the icon code here, the icon can be displayed.

Please check for the same.

Also please check programs of pattern: BCALVTREE

Kind Regards

Eswar

Message was edited by: Eswar Rao Boddeti

I'm extending ALV Tree, which dinamicaly build it own structure. I'm trying ti find function/property which can change view of my leaf, precise:

when we have leaf with no subleaf when this leaf is shown with special icon (looking like notepad icon),

when we have leaf with subleafs then it is shown with folder icon.

I want to change some leafs which should be loocing like leafs with folder icon, beacause in future, some data for this leafs will be read and some subleafs will appear (this reading will be performed, when user click on this leaf and will try to expand it).

For any help I reward in points

3 REPLIES 3
Read only

Former Member
0 Likes
753

Hi Tomasz

If you are using, CL_GUI_ALV_TREE, there is an exporting parameter: IT_ITEM_LAYOUT of structure: LVC_S_LAYI.

Within this structure, a field called: T_IMAGE exists. If we pass the icon code here, the icon can be displayed.

Please check for the same.

Also please check programs of pattern: BCALVTREE

Kind Regards

Eswar

Message was edited by: Eswar Rao Boddeti

Read only

0 Likes
752

It wasn't exactly what I was looking for, but it helps me to find: IS_NODE_LAYOUT property in function add_node which has property expander and n_image.

And this property I was looking for.

Read only

0 Likes
752

Oh, so you mean you were looking for EXPAND_NODE function.

Glad, atleast could help in leading you.

Kind Regards

Eswar