11-18-2010 1:18 PM
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
11-19-2010 12:20 PM
Hi,
is no one having a hint for me????
is this a known SAP bug or something ???
Thx, dinodini
11-20-2010 9:04 PM
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
11-22-2010 3:39 PM
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
11-22-2010 3:41 PM
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