‎2006 Aug 01 3:02 AM
Hi Friends,
In one of our ALV report the 'save layout' button is missing in the report output screen.i have used the OO concept for creating the ALV output and not the function module.I have attached the code below used for creating the ALV grid.
CREATE OBJECT alv_grid
EXPORTING i_parent = g_container_2.
CALL METHOD alv_grid->set_table_for_first_display
exporting
i_structure_name = 'PA0002'
is_layout =
CHANGING
it_outtab = gt_outtab
it_fieldcatalog = wa_fieldcat.
But i'm not able to trace why the 'save layout' button is missing in the output.Can anyone of you help me in sorting out this problem.
Thanks and Regards,
Vadivel.
‎2006 Aug 01 3:19 AM
‎2006 Aug 01 3:19 AM
‎2006 Aug 01 3:34 AM
Pass <u><i><b>A to I_SAVE</b></i></u> parameter. That will give the options to the user to save the layout outs.
I_SAVE = SPACE
Layouts cannot be saved.
I_SAVE = 'U'
Only user-defined layouts can be saved.
I_SAVE = 'X'
Only global layouts can be saved.
I_SAVE = 'A'
Both user-defined and global layouts can be saved.
Regards,
Ravi
Note : Please mark all the helpful answers
Message was edited by: Ravikumar Allampallam
‎2006 Aug 01 4:54 AM
Hai,
There is a struture of type DISVARIANT, pass the name of your program in its parameter. In the method
CALL METHOD C_ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_VARIANT = <disvariant stru>
I_SAVE = 'X' - to Save layout
I_DEFAULT = 'X' - to open default saved layout.
You can also specify the default setting to be loaded ie) the variant name can also be specified in the disvariant structure.
‎2016 Mar 31 1:07 PM