10-18-2007 9:58 AM
Hi all,
I have a requirement to save the layout in the ALV block list screen. But the save option is deactivated. Is it possible to activate this save option.
Thanks and Regards,
Asha
10-18-2007 10:03 AM
10-18-2007 10:26 AM
Hi Murali,
I have tried exectuing the programs in the two links which you gave. But the save layout option is inactive still in the list.
Thanks and Regards,
Asha
10-18-2007 10:12 AM
try using pattern for calling FM, this way you'll get all the options available.
10-18-2007 10:47 AM
hi!` Asha
Try this
add the Save option in the Function you call for ALV
I_SAVE = 'A'
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_SAVE = 'A'
IT_FIELDCAT = FIELDCAT[]
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = IT_FINAL1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Reward me if its Useful.
Regards,
Nagulan
11-21-2007 9:05 AM
Hi,
You have to use the parameter "IS_VARIANT" to enable save :
DATA: ls_variant TYPE disvariant.
ls_variant-report = sy-repid.
ls_variant-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_save = 'A'
it_fieldcat = lt_fieldcat
is_variant = ls_variant
TABLES
t_outtab = lt_tab
EXCEPTIONS
program_error = 1
OTHERS = 2.
Hope that will work.
Regards,
Yann