Application Development 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: 

getting current layout didnt work with cl_salv_tree

Former Member
0 Kudos

Hi,

ich just want to get the current layout. There is a default layout set. When running the ALV Tree I change to another layout and then by hitting enter I just run into PAI where the following lines are processed.

ls_def_layout_cur = lr_layout->get_default_layout( ).

ls_cur_layout_cur = lr_layout->get_current_layout( ).

But I only got a result for the default layout. Why is he not telling me which current layout the user is actually using. Cause when the tree is build up newly I would like to set the latest current layout as initial layout for the refresh.

But as long as I cant find out which layout is the currently used one I dont know how I could handle this problem.

Thx for your help in advance.

dinodini

4 REPLIES 4

Former Member
0 Kudos

Hi,

is no one having a hint for me????

is this a known SAP bug or something ???

Thx, dinodini

Clemenss
Active Contributor
0 Kudos

Hi dinodini,

the layout defines field catalog (or in SALV columns object), sorts and for Salv AGGREGATIONS OBJECT.

Just extract this information and apply later and/or save as layout.

Regards,

Clemens

Former Member
0 Kudos

Hi Clemens,

thx for your answer but I just managed to set my alv tree to work without having the need to read the layout data anymore.

But thx for your help anyway.

Regards

Damian

Former Member
0 Kudos

Didn't need an answer for this question anymore. Managed to get the ALV Tree to work without having the nessesary to get the current layout data. Thx anyway.

dinodini