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

Heirarchial ALV report

Can anybody give me a sample report for doing Heirarchial ALV report ?

Thanking you in advance ..

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2004 at 05:58 AM

    Most of the sample ALV reports start with BC, you might search for BCALV

    This report would be of use to you : BCALV_TEST_HIERSEQ_LIST

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Shankara,

      BCALV_TEST_HIERSEQ_LIST is quite simple, actually. Nevertheless, I shall do my best what it does.

      For Hierarchial ALV Report,the function module used is <b>REUSE_ALV_HIERSEQ_LIST_DISPLAY</b>.

      There are two tables required. One is the header level table, and the other is the item level table. For example, EKKO and EKPO. If you have the required entries in EKKO and corresponding entries in EKPO, you need to pass the <b>name of the internal table</b> in i_tabname_header and i_tabname_item parameter and the <b>tables</b> in <b>t_outtab_header</b> and <b>t_outtab_item</b>.

      To generate the fieldcatalog, you need to pass all the fields that should be shown in the output. In the above program, this is done in <b>f01_set_fcat</b> subroutine.

      In the keyinfo, you have to mention the link between the two tables.

      If anything is not clear, do let us know.

      Regards,

      Subramanian V.

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.