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

Doubt in ALV Heading

Hai friends,

Any one know how to display two heading one by one in ALV list or grid? first is it possible? The sample report is .

Format: Plant1 Plant2 Plant3

S.Loc1 S.Loc2 S.Loc1 S.Loc2 S.Loc1 S.Loc2 S.Loc3

Material X - X X X - X

Material X - X X X -

-


Total x x x x x x x

please guide me how to slove this problem, if you have any other format better than this please forword me.

Thanks,

Elamaran.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Dec 09, 2005 at 10:03 PM

    Not in the grid, but I think you can do that in the List.

    Regard,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2005 at 10:03 PM

    I too had the same problem,

    I tried it in different way,

    IN TOP_OF_PAGE one Header and in normal alv One header.

    top_of_page header adjusted to math the positions with ALV and then i excluded the layout option in alv report.

    if it is there then we will have problems like if we adjust the layout then header(top_of_age) and alv will not be properly aligned..

    check it if it helps...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2005 at 01:38 AM

    Please review SAP example : BALVHD01 using ALV List

    Message was edited by: Lanka Murthy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2005 at 01:46 AM

    hi

    check out this in grid

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    i_callback_program = w_repid

    i_callback_top_of_page = 'TOP-OF-PAGE'

    is_layout = wa_layout

    it_fieldcat = it_fieldcat_wrt_off

    TABLES

    t_outtab = it_mara

    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.

    ----


    • Form TOP-OF-PAGE *

    ----


    • ALV Report Header *

    ----


    FORM top-of-page.

    *ALV Header declarations

    DATA: t_header TYPE slis_t_listheader,

    wa_header TYPE slis_listheader,

    t_line LIKE wa_header-info,

    ld_lines TYPE i,

    ld_linesc(10) TYPE c.

    • Title

    wa_header-typ = 'S'.

    wa_header-info = 'Plant1 Plant2 Plant3'.

    APPEND wa_header TO t_header.

    CLEAR wa_header.

    wa_header-typ = 'S'.

    wa_header-info = 'S.Loc1 S.Loc2 S.Loc1 S.Loc2 S.Loc1 S.Loc2 S.Loc3'.

    APPEND wa_header TO t_header.

    CLEAR wa_header.

    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

    EXPORTING

    it_list_commentary = t_header.

    • i_logo = 'Z_LOGO'.

    ENDFORM. "top-of-page

    it had worked for me

    any clarifications u can ask

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2005 at 06:13 AM

    Hi Elam,

    If u have two lines for eg. under one plant you have diff. materials then go for function module REUSE_ALV_HIERSEQ_LIST_DISPLAY.

    for more detail refer standard program

    BCALV_TEST_HIERSEQ_LIST.

    Regards,

    Digesh Panchal

    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.