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

How to add two list in one frame using REUSE_ALV_LIST_DISPLAY

Hi,

I want to display two list in single output by calling FM 'REUSE_ALV_LIST_DISPLAY' twice.

I saw one topic posted by Arunava Das as 'ALV Problem' but didn't get the steps to do that.

Here is his way of doing that "What I have done is gone for the append ALV approach wher I have added the END_OF_LIST Event for the Fisrt reprt and in the Corresponding FORM Routine I have added another made another cALL to the REUSE_ALV_LIST DISPLAY FM with the other table."

I would be grateful if someone can help me out.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 16, 2004 at 09:19 AM

    Ashish Arya

    Display both list fields in the output then make 2 layouts. And make one extra field in the selection-screen with ALV Layout. Based user selection report will be displayed as ALV output.

    Hope this will give a idea.

    Best Regards

    Suresh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      If I have understood your question correctly, then you require two ALV lists in a single output.

      Use <b>REUSE_ALV_BLOCK_APPEND</b> and <b>REUSE_ALV_BLOCK_DISPLAY</b> for this purpose.

      So if you require two lists, you need to call

      <b>REUSE_ALV_BOCK_APPEND</b> twice. And in the end calle <b>REUSE_ALV_BLOCK_DISPLAY</b>.

      Regards,

      Subramanian V.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 09:17 AM

    Hi Ashish,

    The way you have tried i.e. calling the second list in the END_OF_LIST event of first list and like wise that is the correct way of doing it.

    Using this way you can display multiple lists. In the event END_OF_LIST by using a global variable G_COUNTER. the value of which you increment for each list and based on that counter you call different lists in the END_OF_LIST event.

    case G_COUNTER.

    when 1. perform call_first_list.

    when 2. perform call_second_list.

    when 3. perform call_third_list.

    endcase.

    Hope this answers your query

    regards,

    Satyadev Dutta

    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.