Hi,
I am creating an interactive ALV lists.The basic list has default variant.
when I dbl click contract in basic ALV the second ALV display the details.
Both ALVs r created using REUSE_ALV_GRID_DISPLAY.
in first FM I gave like
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_interface_check = ' '
i_buffer_active = ' '
i_callback_program = g_repid
i_callback_user_command = 'DO_MESSAGE' "form
i_grid_title = l_header
is_layout = layt
it_fieldcat = tcat
i_save = 'X'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
CHECK NOT sy-subrc IS INITIAL.
Then the second ALV FM
fieldcat:
1 'VBELN' 'CHAR' 10 'CONTRACT'(089) '' '' '',
2 'BELNR' 'CHAR' 10 'DOCUMENT NUMBER'(090) 'X' '' '',
3 'BLDAT' 'DATS' 10 'DOC.DATE'(091) ' ' '' '',
8 'L_WTGBTR' 'CURR' 15 'AMOUNT'(092) ' ' 'R' 'X',
5 'KEY' 'NUMC' 15 'KEY'(093) ' ' '' '',
6 'LTEXT' 'CHAR' 28 'DESCRIPTION'(094) ' ' '' '',
7 'CTGY' 'CHAR' 4 'CTGY'(095) ' ' '' ''.
ENDIF.
gw_sort-fieldname = 'VBELN'.
gw_sort-up = 'X'.
gw_sort-spos = 1.
gw_sort-subtot = 'X'.
APPEND gw_sort TO gt_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = ' '
i_callback_program = pgm
i_callback_user_command = 'DISP_ITEM'
is_layout = gt_layout
it_fieldcat = gt_fieldcat
it_sort = gt_sort
TABLES
t_outtab = gt_covp
EXCEPTIONS
program_error = 1
OTHERS = 2.
when I pass I_SAVE = 'A' or 'U' or 'X' then the result will be displayed with
single field.the other fields r hidden.That single field is displayed with length of 111ch.but its actual size is 10.
without this its working fine.but I can't enable variants save button in second ALV.
how to enable it.
Regards,
bala