cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you Lekha, Syed, Pankaj and Amit for your immediate replies.

I tried with these examples and could not succeeded lading in some or the other problem.

My requirement is

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

Please advise.

I am working on one of the tutorial suggested in our discussion, facing an error as below......

" The type CL_WDABAP_FLIGHT_MODEL=>get_bookings is unknown or not found."

I am investigating on this.

Thank you

Prakash

Former Member
0 Kudos

Hi,

Design a context node with all teh requried attributes,

Are you using supply function.

How is your context designed -

Regards,

Lekha.

Former Member
0 Kudos

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...

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.