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: 

Layout for Class CL_SALV_LAYOUT

former_member188001
Active Participant
0 Kudos
224

Hello all,

Please find below the piece of code i am using.



PARAMETERS : p_vari  TYPE  slis_vari.

DATA: gr_alv         TYPE REF TO cl_salv_table,
           lr_layout     TYPE REF TO cl_salv_layout.

 *--- This code is to get the layout,save the layout and display the
*    layout
      lr_layout = gr_alv->get_layout( ).
      key-report = sy-repid.
      lr_layout->set_key( key ).
      lr_layout->set_save_restriction( cl_salv_layout=>restrict_none )
.

      DATA: init_layout TYPE slis_vari.
      init_layout = p_vari.
      lr_layout->set_initial_layout( init_layout ).

*--- display report
      gr_alv->display( ).

Now when the grid is being displayed, I am creating a layout. When I click on "Save Layout", a popup comes where we give the name for layout. If you see, there is a checkbox for "Default Setting". This checkbox is disabled in my case. I want to enable this checkbox.

Can anyone please help me out for the above problem.

Points rewarded for helpful answers.

Thanks,

Salil

5 REPLIES 5

former_member194669
Active Contributor
0 Kudos
115

Hi,

Its an authorisation issue. Please check whether you have authorisation for object.


  authority-check object 'S_ALV_LAYO'
           id 'ACTVT' field '23'.

and it have nothing related to cl_salv_layout.

0 Kudos
115

Hi a®s ,

I have checked it. There is no authorisation issue. But still the problem remains the same.

Regards,

Salil

former_member188001
Active Participant
0 Kudos
115

thanks. my question got answered.

0 Kudos
115

How did you solve it?

0 Kudos
115

Nadav,

This issue has 8 years, if you need a help about the same subject, please create a new question, oks?!

Warm regards,

Raphael Pacheco.