2007 Oct 05 5:10 PM
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
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
2007 Oct 05 5:47 PM
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.
a®
2007 Oct 05 6:29 PM
Hi a®s ,
I have checked it. There is no authorisation issue. But still the problem remains the same.
Regards,
Salil
2007 Oct 05 8:53 PM
2016 Jun 08 1:37 PM
2016 Jun 08 1:42 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |