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

Reg: Top_Of_List Events in ALV GRID Display

Hi ,

How can i use the the the Top_of_list Event Alv grid Disply.

I have passed Events table with event name and form name to GRID FM it_events.

Form details:-

T_LISTHEADER header deatils table with data. .

FORM TOP_OF_LIST.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = T_LISTHEADER.

ENDFORM.

But still its not calling the form and also end_of list is working with same coding but top_of_list is not working can u give solution for this.

Regards,

raj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jan 15, 2009 at 07:33 AM

    is it come out when you print the ALV report?

    Regards,

    Abraham

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 07:43 AM

    Hi,

    Use TOP_OF_PAGE instead of TOP_OF_LIST

    
    FORM TOP_OF_PAGE.
    
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = T_LISTHEADER.
    
    ENDFORM.
    

    Regards

    Sandipan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 15, 2009 at 08:05 AM

    Hello Raj,

    Can you share your coding with us? May be then we will be able to give some pointers.

    BR,

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 15, 2009 at 11:00 AM

    Hi,

    Use top of page instead of using top of list.

    Use this code, its working:-

    *FOR TOP OF THE PAGE
    DATA : it_top TYPE slis_t_listheader,
           wa_top TYPE slis_listheader.
    
    *&---------------------------------------------------------------------*
    *          DISPLAY RECORDS IN ALV GRID
    *&---------------------------------------------------------------------*
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program                = sy-repid "report id
          i_callback_top_of_page            = 'TOP' "for top of page
          it_fieldcat                       = it_field "field catalog
          it_sort                           = it_sort "sort records info
       TABLES
          t_outtab                          = it_ekpo
       EXCEPTIONS
          program_error                     = 1
          OTHERS                            = 2.
    
      IF sy-subrc <> 0.
      ENDIF.
    
    *&---------------------------------------------------------------------*
    *&      Form  top
    *&---------------------------------------------------------------------*
    *       TO WRITE THE HEADER
    *----------------------------------------------------------------------*
    FORM top.
    
      REFRESH it_top.
      wa_top-typ = 'S'.
      wa_top-key = text-001. "text to be printed at top of page
      wa_top-info = sy-repid.  "text
      APPEND wa_top TO it_top.
      CLEAR wa_top.
    
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = it_top
    *   I_LOGO                   =
    *   I_END_OF_LIST_GRID       =
    *   I_ALV_FORM               =
                .
    ENDFORM.                    "top
    

    Hope this solves your problem.

    Thanks & Regards,

    Tarun Gambhir

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 11:55 AM

    Hi,

    Check out this link.

    http://www.sapdev.co.uk/reporting/alv/alvgrid_rephead.htm

    Hope it was useful.

    Regards,

    Deepthi.

    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.