2009 Mar 26 2:16 PM
Hello,
I am using OO ALV grid display, Save Layout option button is not appearing the Grid display.
Please advise.
Thanks,
Ravi
2009 Mar 26 2:20 PM
HI,
Pass 'A' to I_SAVE in SET_TABLE_FOR_FIRST_DISPLAY Method.
call method gr_grid_d0100->set_table_for_first_display
exporting
i_buffer_active = gs_test-buffer_active
i_bypassing_buffer = gs_test-bypassing_buffer
i_consistency_check = l_consistency_check
is_variant = ls_vari
i_save = 'A' ----> Pass this
i_default = con_true
is_layout = ls_layo
is_print = ls_prnt
it_hyperlink = lt_hype
changing
it_outtab = gt_outtab[]
it_fieldcatalog = lt_fcat.
2009 Mar 26 2:20 PM
HI,
Pass 'A' to I_SAVE in SET_TABLE_FOR_FIRST_DISPLAY Method.
call method gr_grid_d0100->set_table_for_first_display
exporting
i_buffer_active = gs_test-buffer_active
i_bypassing_buffer = gs_test-bypassing_buffer
i_consistency_check = l_consistency_check
is_variant = ls_vari
i_save = 'A' ----> Pass this
i_default = con_true
is_layout = ls_layo
is_print = ls_prnt
it_hyperlink = lt_hype
changing
it_outtab = gt_outtab[]
it_fieldcatalog = lt_fcat.
2009 Mar 26 2:24 PM
Hello Avinash Kodarapu,
I already set i_save = 'A'.
but still the layout save button is not coming....
Thanks,
Ravi
2009 Mar 26 2:30 PM
2009 Mar 26 2:45 PM
HI,
Try passing this...
ls_vari-report = sy-repid.
call method gr_grid_d0100->set_table_for_first_display
exporting
i_buffer_active = gs_test-buffer_active
i_bypassing_buffer = gs_test-bypassing_buffer
i_consistency_check = l_consistency_check
is_variant = ls_vari ----> Pass this
i_save = 'A'
i_default = con_true
is_layout = ls_layo
is_print = ls_prnt
it_hyperlink = lt_hype
changing
it_outtab = gt_outtab[]
it_fieldcatalog = lt_fcat.
2009 Mar 26 2:33 PM
in OO ALV you need to set pf-status explicitly....
copy the PF status from any standard program and edit as per your requirement or you can use your own PF-status.
2009 Mar 27 7:09 AM
2009 Mar 27 7:16 AM
Hi,
>
> Hello,
>
> I am using OO ALV grid display, Save Layout option button is not appearing the Grid display.
> Please advise.
>
> Thanks,
> Ravi
Try passing the is_layout parameter.
Hope this helps you.
Regards,
Tarun
2009 Mar 27 8:10 AM
Hi Ravi,
Try this.
Check in the toolbars you have excluded while displaying the ALV grid.
If you have excluded save layout option then it will not appear.
Hope this is helpful.
Regards,
Sharin.