‎2008 Oct 21 10:50 AM
Hi,
in my report output for displaying i used FM REUSE_ALV_GRID_DISPALY and in that i passed layout save and Variant options , in my output the filter criteria also working fine.But now my problem is after filter criteria if i save the layout that filter criteria is not saving is there any sloution for this pls help me ...?
‎2008 Oct 21 10:54 AM
‎2008 Oct 21 12:13 PM
Hi,
I think you should be performing in these way:
DATA: report_id LIKE sy-repid.
DATA: i_layout TYPE slis_layout_alv.
report_id = sy-repid.
PERFORM f1000_layout_init CHANGING i_layout.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = report_id
i_structure_name = Structure name
is_layout = i_layout
i_save = 'A'
TABLES
t_outtab = i_tab
EXCEPTIONS
program_error = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
&----
*& Form F1000_Layout_Init
&----
FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
CLEAR i_layout.
i_layout-colwidth_optimize = 'X'.
ENDFORM. " F1000_Layout_Init
i think implementing in this way will help the problem.
Thanks,
Qamar
Edited by: Qamar Javed on Oct 21, 2008 4:44 PM
‎2008 Oct 22 7:57 AM