2012 Apr 17 11:07 PM
Hi all,
I have tried serching around but can't seem to find a solution that pertains to CL_ALV_TABLE ALVs that answers my question. I need to find out how to allow the settings>layout>saving functionality can be enabled. I have tried checking into the methods myself and have not found one that works. I have also found some suggestions that involve CL_SALV_LAYOUT method set_save_restriction, however it does not seem to enable the functionality I am looking for. The examples I have found involve this approach:
lo_layout = lo_alv->get_layout( ).
lo_layout->set_save_restriction( cl_salv_layout=>restrict_none ).
Is this the same functionality I would be enabling- the settings>layout>saving functionality from the system menu bar, or is there something else that would need to be done? The above example ends where all examples I have found end.
Thanks in advance for any help.
Zack
2012 Apr 18 8:00 AM
Hi all,
I have tried serching around but can't seem to find a solution that pertains to CL_ALV_TABLE ALVs that answers my question. I need to find out how to allow the settings>layout>saving functionality can be enabled. I have tried checking into the methods myself and have not found one that works. I have also found some suggestions that involve CL_SALV_LAYOUT method set_save_restriction, however it does not seem to enable the functionality I am looking for. The examples I have found involve this approach:
lo_layout = lo_alv->get_layout( ).
lo_layout->set_save_restriction( cl_salv_layout=>restrict_none ).
Is this the same functionality I would be enabling- the settings>layout>saving functionality from the system menu bar, or is there something else that would need to be done? The above example ends where all examples I have found end.
Thanks in advance for any help.
Zack
2012 Apr 18 8:00 AM
2012 Apr 18 2:59 PM
Thanks for your help, I had read the documentation but didn't quite get how the key actually played a role, and misread the key as another object instead of structure.
2012 Apr 19 9:21 AM
2012 Apr 27 7:04 PM
One thing that I've discovered is that some authorization objects apparently turn off the ability to store a default variant in SALV. In one situation, I found that (in addition to Raymond's list of computes and method calls) I have to do:
gr_layout->set_default( if_salv_c_bool_sap=>true ).
to allow the user to be able to set a "default" layout. Without that, the default checkbox is not available for input.
2012 Apr 30 8:38 AM
2012 May 15 2:58 PM
Hi,
If u are developing ALV by using OOPS concept,
Then plase set I_SAVE parameter of method SET_TABLE_FOR_FIRST_DISPLAY to as follow.
Determines the options available to the user for saving a layout:
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |