data: ls_variant type disvariant.
clear: ls_variant.
ls_variant-report = sy-repid.
call method gv_grid1->set_table_for_first_display
exporting
is_layout = gs_layout
i_bypassing_buffer = 'X'
is_variant = ls_variant
i_save = 'A'
changing
it_outtab = gt_itab[]
it_fieldcatalog = gt_fcat_lvc[].
Re: IN ALV Report 'SAVE LAYOUT' option missing
You can manage display variants by using parameters, is_variant and i_save of set_table_for_first_display. Here are options for variant handling. <structure_name> is the variant-defining structure of type DISVARIANT. The field report in this structure should contain the value of sy-repid.
<출처: http://forums.sdn.sap.com/thread.jspa?threadID=810724 >
'SAP > ABAP 개발' 카테고리의 다른 글
[Function] F4_DATE - Date Possible Entry (1) | 2010.09.18 |
---|---|
BS22 - System Status : Maintain (2) | 2010.09.18 |
자재뒤에서 몇번째 1자리 캐릭터 가져오기 (1) | 2010.08.24 |
Enable Variant 'SAVE' button while using 'REUSE_ALV_GRID_DISPLAY' (3) | 2010.08.11 |
cx_root - Division by zero (1) | 2010.07.21 |