Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

using 3 internal table how we will create join

Former Member
0 Likes
491

how we will make join by takin data from 3 internal table , plz tell me in details?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
469

Hi

Loop at the table which is having items or multiple entries

read the second table based on loop value

read the third table based on the first or second table

Modify the first table add the required fields to first field to have them in one

regards

Shiva

4 REPLIES 4
Read only

Former Member
0 Likes
470

Hi

Loop at the table which is having items or multiple entries

read the second table based on loop value

read the third table based on the first or second table

Modify the first table add the required fields to first field to have them in one

regards

Shiva

Read only

0 Likes
469

plz tell me bya an example, can we use for all entries here?

Read only

0 Likes
469

Hi,

How can you use For all entires when the data is in itab

if you want to get the related data from database table then use For all entires

Regards

Shiva

Read only

Former Member
0 Likes
469

assume that 3 itabs have a common fld1

and we r joining all3 into 4th , itab4

loop itab1.

read table itab2 with key fld1 = itab1-flad1.

read table itab3 with key fld1 = itab1-flad1.

move corresponding fields from itab1 to itab4.

move corresponding fields from itab2 to itab2.

move corresponding fields from itab3 to itab2.

append itab4

clear itab1, itab2 itab3, itab4.

endloop

now itab4 contains all the join flds

Reward if useful