Application Development 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: 

checking value in two internal table : how ?

Former Member
0 Kudos
100

Hi,

There are two internaltable of same strcuture with fields

f1

f2

f3

I have to check if value 'A' exists in field f1 of both the tables itab1 and itab2. If true I should get the value as 'x'. Is it possible to achieve using one command ?

Please guide me how to go about this ?

Regards,

Suresh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
78

Hi Suresh,

It is not possible in one command.

You have to read both the tables separately to know if the value is present or not there.

Regards,

Atish

2 REPLIES 2

Former Member
0 Kudos
79

Hi Suresh,

It is not possible in one command.

You have to read both the tables separately to know if the value is present or not there.

Regards,

Atish

Former Member
0 Kudos
78

Hi

There is no keyword as such..

U can do like this

Loop at itab1 .

Read table itab2 with key f1 = itab1-f1 .

Do ur reqmt here .

Endloop .

Hope it helps.

Praveen