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

checking value in two internal table : how ?

Former Member
0 Likes
431

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
Read only

Former Member
0 Likes
409

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
Read only

Former Member
0 Likes
410

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

Read only

Former Member
0 Likes
409

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