06-04-2014 8:14 AM
Here is my code part as you see There are no variant save and variant change buttons ?
Can you help me ?
Thanks & Regards
CALL METHOD r_grid->set_table_for_first_display
EXPORTING
i_save = 'X'
" is_variant = gv_variant
is_layout = LVC_S_LAYOUT
CHANGING
it_outtab = GET_ITAB[]
it_fieldcatalog = SAVE_FCAT[]
it_sort = GET_SORT[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
06-04-2014 10:32 AM
Hi Burak,
While calling your method for ALV display, pass 2 exporting parameters as:
is_variant = gv_varaint.
I_SAVE = 'A'.
Regards,
Ganesh Lathi
06-04-2014 9:13 AM
Hi Burak,
For I_SAVE give 'A'. I think this will solve your issue.
Regards,
Abijith
06-04-2014 10:32 AM
Hi Burak,
While calling your method for ALV display, pass 2 exporting parameters as:
is_variant = gv_varaint.
I_SAVE = 'A'.
Regards,
Ganesh Lathi
06-04-2014 2:30 PM
You must also pass is_variant, with at least report subfield filled. You should also pass i_default = 'X';
Sample :
is_variant-report = sy-repid.
is_variant-variant = p_variant.
IF p_variant+0(1) NE '/'.
is_variant-username = sy-uname.
ENDIF.
Regards,
Raymond