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
1,229

Is there anyway to create a variant for the tree (similar to that in alv report) so as to allow the user to create and save the order in which they want to display the columns in a tree?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,125

Hi,

You can use the layout button. You can save the layouts for different users. If the ALV report is a custom report then in the selection screen also provide the layout information.

By this the ALV tree will be displayed in the order which the user has saved.

Thanks,

Tooshar Bendale

6 REPLIES 6
Read only

Former Member
0 Likes
1,126

Hi,

You can use the layout button. You can save the layouts for different users. If the ALV report is a custom report then in the selection screen also provide the layout information.

By this the ALV tree will be displayed in the order which the user has saved.

Thanks,

Tooshar Bendale

Read only

0 Likes
1,125

I am using an alv tree with split screens and the columns are initialised with a custom made fill child node form which has a predefined sequence for the columns.

However , the user can change the position of the columns at run time through a drag and drop feature.

Do you think I could still use the layout feature ?

Read only

0 Likes
1,125

Yes you can use the layout feature even in this case.

Thanks,

Tooshar Bendale

Read only

0 Likes
1,125

I am unable to do that. Its a column tree.

I want to let user to rearrange the columns when they are displayed (which is a drag and drop feature which I already implemented ) .

Then the user should be able to save that order so that next time when he looks at the report , he would not need to re-arrange the columns manually.

Thanks,

Shubhendu

Read only

0 Likes
1,125

Turns out that it was not possible for alv trees.

If you want to have a layout button, you need to go with the cl_salv_tree.

But it does not provide with any drag and drop feature as the other trees do.

So it depends on your requirements !!

Thanks

Shubhendu

Read only

0 Likes
1,125

Hi,

that's not the whole story. We use cl_gui_alv_tree, and this class offers nearly everything you need. It may be used - at least partially - similar to the cl_gui_alv_grid, using a fieldcatalog with many useful options. Layout handling is included.

Regards

Martin