Application Development 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: 

ALV help - Excel sheet comes in blank

Former Member
0 Kudos
114

I need help with my ALV implementation. The ALV displays fine but when I try to view it in Excel, by clicking on the icon, I get blank pages. Does anybody have any ideas? Below is the code that I am using to display the ALV.

FORM display_alv .

  DATA: gr_alv TYPE REF TO cl_salv_table,
        gr_func TYPE REF TO cl_salv_functions,
        gr_columns TYPE REF TO cl_salv_columns_table,
        gr_column TYPE REF TO cl_salv_column_table,
        gr_error TYPE REF TO cx_salv_error.

  TRY.
      CALL METHOD cl_salv_table=>factory
        IMPORTING
          r_salv_table = gr_alv
        CHANGING
          t_table      = it_table.
    CATCH cx_salv_msg INTO gr_error.
  ENDTRY.

  gr_func = gr_alv->get_functions( ).
  gr_func->set_all( abap_true ).


  gr_alv->display( ).

ENDFORM.                    " display_alv

1 REPLY 1

former_member182371
Active Contributor
0 Kudos
59

Hi,

have a look at this forum thread:

(here you´ll find a nice example by Rich Heilman).

Best regards.