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

Internal Tables Logical Operations

Former Member
0 Likes
628

Hi,

Please solve my problem. How to use logical operators using read table in internal tables.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
536

Hi deepika

You cannot use any other logical operators than EQ with READ statement. If you want to use others, then go for LOOP ... ENDLOOP ...

~ Ranganath

Hi,

Please solve my problem. How to use logical operators using read table in internal tables.

3 REPLIES 3
Read only

Vijay
Active Contributor
0 Likes
536

hi

use read statement like this.............

READ TABLE ITAB INTO WA_ITAB WITH KEY A = 'XYZ' B = 'UVW'.

here A , B are table fields.

regards

vijay

reward points if helpfull

Read only

Former Member
0 Likes
536

Hi Deepika,

If I am not wrong, I guess we cannot use logical operators in READ statements.

Read statement can be given as(Example)

READ TABLE pa_gt_actual_prices INTO ls_act_prices

WITH TABLE KEY kokrs = p_kokrs

perio = l_perio

objnr = ls_cssl-objnr

gjahr = p_gjahra.

Even we cannot use 'EQ' instead of '=' sign while reading the table with keys.

Regards,

Farheen.

Read only

Former Member
0 Likes
537

Hi deepika

You cannot use any other logical operators than EQ with READ statement. If you want to use others, then go for LOOP ... ENDLOOP ...

~ Ranganath