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

ALV Header

Hi all,

I want title in the list display of an alv report.

i got it in the grid display but not in list display.

can anybody help me

Thank You

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 01:03 PM

    hi srikanth,

    you want to display a header in a ALV output. the req is that i have to display it in a single line.

    the line contains a standard text (typ S) and also a field value (typ A).

    example, Pay results from 01.01.2007 to 31.01.2007.

    for this i give one idea try like this

    take an varible as string and concatenate standrade text and date and print it on header.

    ********************************************************

    concatenater standred text datefielld into v_vari seperated by space

    **here (standred text datefielld) are the fields you are using*

    LISTHEAD-TYP = 'H'.

    LISTHEAD-INFO = v_vari.

    APPEND LISTHEAD.

    ********************************************************

    try like this this may be help full to you .

    reward points if help full .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 01:09 PM

    try follwong code hope it will be helpful

    DATA: WA_listheader TYPE slis_listheader.

    REFRESH p_i_listheader.

    CLEAR WA_listheader.

    WA_listheader-typ = 'H'. "Header

    WA_listheader-info = 'company name'

    APPEND WA_listheader TO p_i_listheader.

    WA_listheader-typ = 'S'.

    WA_listheader-key = 'DATE'.

    WA_listheader-info = sy-datum.

    APPEND WA_listheader TO p_i_listheader.

    WA_listheader-typ = 'S'.

    WA_listheader-key = 'PAGE NO.'.

    WA_listheader-info = sy-pagno.

    APPEND WA_listheader TO p_i_listheader.

    then just use wa_layout in import parameters of ur grid display FM

    plz reward if useful

    keep rockin

    vivek

    Edited by: vivek gaur on Jan 25, 2008 2:13 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2008 at 02:18 PM

    Hi Srikanth,

    and finally you should use

    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

    EXPORTING

    it_list_commentary = lt_header

    in the top-of-page-form.

    See the ample documentation for this function module or see the where-used-list especially for B* programs.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 02:01 PM

    Thanks to all

    anyway, i got the solution

    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.