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 Report - Missing Icon

Former Member
0 Likes
615

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
524

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

Read only

0 Likes
523

Many thanks Vijay for you reply

Cheers

Andy