2006 Aug 17 2:12 PM
How Do Everyone!
I have managed to write an ALV report. However, when
compared to a SAP similar report I notice that there
is a missing icon (SAVE layout) from the application
toolbar.
I have copied the ALV_USER_STATUS to my report.
I can see the change layout(Ctrtl+F8) and the Select
Layout(CtrlF9) but the Save layout(ctrlF10) is missing.
Any ideas anyone????
Cheers
Andy
2006 Aug 17 2:28 PM
Hi,
you missed one of these , thats the reason you are not getting that option.
data: VARIANT LIKE DISVARIANT.
variant-REPORT = sy-repid.
....
....
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
<b> is_layout = l_layout</b>
it_fieldcat = it_fieldcat
<b> I_SAVE = 'X'
IS_VARIANT = VARIANT</b>
TABLES
t_outtab = itab
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.you need all the Bold ones, if you want that save option.
Regards
vijay
Hi,
you missed one of these , thats the reason you are not getting that option.
data: VARIANT LIKE DISVARIANT.
variant-REPORT = sy-repid.
....
....
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
<b> is_layout = l_layout</b>
it_fieldcat = it_fieldcat
<b> I_SAVE = 'X'
IS_VARIANT = VARIANT</b>
TABLES
t_outtab = itab
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.you need all the Bold ones, if you want that save option.
Regards
vijay
2006 Aug 17 2:28 PM
Hi,
you missed one of these , thats the reason you are not getting that option.
data: VARIANT LIKE DISVARIANT.
variant-REPORT = sy-repid.
....
....
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
<b> is_layout = l_layout</b>
it_fieldcat = it_fieldcat
<b> I_SAVE = 'X'
IS_VARIANT = VARIANT</b>
TABLES
t_outtab = itab
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.you need all the Bold ones, if you want that save option.
Regards
vijay
2006 Aug 17 2:32 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |