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: 

Issue with ALV layout Save in the OO ALV grid dispalay

Former Member
0 Kudos
441

Hello,

I am using OO ALV grid display, Save Layout option button is not appearing the Grid display.

Please advise.

Thanks,

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos
161

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.

8 REPLIES 8

Former Member
0 Kudos
162

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.

0 Kudos
161

Hello Avinash Kodarapu,

I already set i_save = 'A'.

but still the layout save button is not coming....

Thanks,

Ravi

0 Kudos
161

refer this program BCALV_GRID_09

0 Kudos
161

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.

former_member156446
Active Contributor
0 Kudos
161

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.

Former Member
0 Kudos
161

Hi,

Please refer this:

Hope it helps

Regards

Mansi

I355602
Product and Topic Expert
Product and Topic Expert
0 Kudos
161

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

Former Member
0 Kudos
161

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.