Skip to Content
author's profile photo Former Member
Former Member

Object ALV. Excel inplace, Header page. Help!

Hi to all,

Create object ALV with html header, but when i try export to excel (excel inplace) on the sheet "Header" no my html header

anyone know any example for this?

My code, i can see html header in ALV, but no in excel

CALL METHOD alv1->set_table_for_first_display
    EXPORTING
      is_variant                    = ls_variant
      i_save                        = 'A'
      is_layout                     = gs_layout
*      IT_TOOLBAR_EXCLUDING          =
    CHANGING
      it_outtab                     = gt_output[]
      it_fieldcatalog               = gt_fieldcatalog
      it_sort                       = gt_sort.

* create object to receive events and link them to handler methods
  CREATE OBJECT event_receiver.
  SET HANDLER event_receiver->handle_ucom_alv FOR alv1.
  SET HANDLER event_receiver->handle_toolbar_alv FOR alv1.
  SET HANDLER event_receiver->handle_dbl_alv FOR alv1.
  SET HANDLER event_receiver->top_of_page FOR alv1.
  SET HANDLER event_receiver->print_top_of_page FOR alv1.
  SET HANDLER event_receiver->end_of_page FOR alv1.

* rebuild the toolbar
  CALL METHOD alv1->set_toolbar_interactive.

  CALL METHOD o_dyndoc_id->initialize_document
    EXPORTING
      background_color = cl_dd_area=>col_textarea.

* Processing events
  CALL METHOD alv1->list_processing_events
    EXPORTING
      i_event_name = 'TOP_OF_PAGE'
      i_dyndoc_id  = o_dyndoc_id.

  CALL METHOD alv1->set_html_header.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:51 AM

    Hi,

    refer to these examples

    BC_ALV_DEMO_HTML_D0100

    BCALV_DEMO_HTML

    BCALV_TEST_HTML_HEADER

    BCALV_TEST_FULLSCREEN_HTML

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 11:02 AM

    It's not object alv example

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.