Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV layout saving problem

Former Member
0 Likes
906

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 ...?

3 REPLIES 3
Read only

Former Member
0 Likes
834

Hi,

Pass the value...


i_save = 'A'

Read only

qamar_javed
Participant
0 Likes
834

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

Read only

Former Member
0 Likes
834

g