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

How do I work with Multiple Tables in Web DynPro - ABAP

Dear Experts,

I am new to Web DynPro - ABAP

I practiced my first exercise in extracting data from single table (SFLIGHT). Now I want to enhance my tutorials with TWO different Tables. In other words displaying data from two or more different tables using ALV.

Can some one please explain the procedure/steps involved?

Thank you for your time.

Regards

Prakash

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2009 at 01:21 PM

    Hi,

    If there are independent tables, then you can create that many ALV usages and can follow the same approach as per your

    first exercise.

    If they are dependent ones, based on teh first table entries you can fill the 2nd node andcreate an ALV usage for that and bind the table.

    If you have 3 tables, create 3 alv usages, bind the respective nodes to those ALVs and display them.

    Regards,

    Lekha.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2009 at 01:21 PM

    Hi Prakash,

    The procedure which you followed to display the data under the first table will be the same for the second or multiple also. Only change would be the action. Depending on which are you going fetch and display will matter.

    If you have a button for each table, then define an action for the button and use the same logic as you did for the first table.

    Else, if you can describe under what condition the data should be displayed, then accordingly it can be sorted out.

    But I strongly suggest, please search the SCN before posting.

    Regards,

    -Syed.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2009 at 02:49 PM

    Hi,

    Displaying data from single table or two tables is same. u have to get the data in the internal table and bind that table with the node.

    regarding creating ALV u can follow the link.

    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3439404a-0801-0010-dda5-8c14514d690d

    if u have some different requiremnt then plz explain.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2009 at 03:53 AM

    hi ,

    there is a wiki : http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-MultipleALVComponent+Usages

    which looks simialr to your requirement .

    It shud help u .

    regards,

    amit

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi prakash i got the exact requirement ...

      did u sovle it pls let me know..

      the same requirement as prakash requirement..

      TableA Col1, Col2, Col3

      TableB Col4, Col5, Col6, Col1 (is common in both Tables)

      TableB is a dependent

      My report should be in one single page as below.

      Col1, Col2, Col3, Col4, Col5, Col6....

      i got 2 ways to do it

      1: by using for all entries.

      2.by creating ztable in se11..

      is there any other ways bcz both two possibilities are hard coding...

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.