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

CL_ALV_LAYOUT

Former Member
0 Likes
435

Hello,

when i use the the method "set_initial_layout" with the class "cl_salv_tree" it has no effect.

In the ABAP template "SALV_DEMO_TREE_FUNCTIONS"

if you uncomment line 700 and you create the TEST variant, there is no effect.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
393

Hello Jerome

The problem is that no variant 'TEST' exists yet.

Copy the report (just for testing purposes) to a z-report and run it using full screen option.

Change the layout of the tree and save it as '/TEST' because the tree does not allow to save user-specific variant (e.g. 'TEST' without '/').

Next uncomment line 700 and change the variant to '/TEST'.

Now it works.

Regards

Uwe

Hello,

when i use the the method "set_initial_layout" with the class "cl_salv_tree" it has no effect.

In the ABAP template "SALV_DEMO_TREE_FUNCTIONS"

if you uncomment line 700 and you create the TEST variant, there is no effect.

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
394

Hello Jerome

The problem is that no variant 'TEST' exists yet.

Copy the report (just for testing purposes) to a z-report and run it using full screen option.

Change the layout of the tree and save it as '/TEST' because the tree does not allow to save user-specific variant (e.g. 'TEST' without '/').

Next uncomment line 700 and change the variant to '/TEST'.

Now it works.

Regards

Uwe

Read only

0 Likes
393

My real problem was the column size was not save in the variant because of line 336 :

lr_columns->set_optimize( abap_true ).

I comment this line and all is ok now.

I appreciate your help.

thanks you Uwe.

jerome.