03-27-2008 1:04 AM
hi all,
In grid display there is is_varient parameter, what is the use of this parameter , how can we use this parameter and i saw differant function modules reg varient please help me how can we use this function modules
03-27-2008 4:02 AM
hi,
when u want to save a user-specific variant u have include
i_save and is_varaint in set_table_for_first_display
This structure is only relevant if display variants are to be saved
and/or read.
Variant information including the name of the list variant that is used
to output the list.
To allow display variants to be read within the ALV, you must specify
the acess path using fields REPORT (required field), HANDLE (optional
field) and/or LOG_GROUP (optional field).
If you also want to allow display variants to be saved, you must
additionally fill parameter I_SAVE accordingly.
for example,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_report_name
i_callback_pf_status_set = pf_status
i_callback_user_command = 'USER_COMMAND'
i_save = 'A'
it_sort = er_sort[]
is_layout = t_is_layout
is_variant = g_is_variant
it_fieldcat = gt_fieldcat[]
it_events = t_events[]
TABLES
t_outtab = i_outtab.
please reward points if useful.
regards
sandhya.