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: 

Set Layout variant with CL_SALV_HIERSEQ_TABLE

Former Member
0 Kudos

How can you set the layout variant (a layout variant that the individual users create) for the class CL_SALV_HIERSEQ_TABLE? I see that there is a method GetLayout() but it gets the layout and doesn't set it.

Regards,

Davis

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Check this



data: lr_layout type ref to cl_salv_layout,
      ls_key   type salv_s_layout_key.

      lr_layout = gr_hierseq->get_layout( ).
      ls_key-report = gs_test-repid.
      lr_layout->set_key( ls_key ).
      lr_layout->set_default( gs_test-default ).

please check the program documentation in the program SALV_DEMO_HIERSEQ_LAYOUT

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

Check this



data: lr_layout type ref to cl_salv_layout,
      ls_key   type salv_s_layout_key.

      lr_layout = gr_hierseq->get_layout( ).
      ls_key-report = gs_test-repid.
      lr_layout->set_key( ls_key ).
      lr_layout->set_default( gs_test-default ).

please check the program documentation in the program SALV_DEMO_HIERSEQ_LAYOUT