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

relational

Former Member
0 Likes
366

can't we use as follows, it gives error.

read table ipos with key udate LE it_final-budat.

<--->

how to check for this case.

regards

Rajaram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
351

well probabaly this aint the best solution but at least a workaround.

loop at ipos where udate LE it_final-budat.

endloop.

BUT now i see where the real problem is.

if it_final is a internal table without headerline it will never work.

2 REPLIES 2
Read only

Former Member
0 Likes
352

well probabaly this aint the best solution but at least a workaround.

loop at ipos where udate LE it_final-budat.

endloop.

BUT now i see where the real problem is.

if it_final is a internal table without headerline it will never work.

Read only

Former Member
0 Likes
351

Read table is meant to return only a single rows. Whereas if you use LE condition then this condition can be satisfied by more than 1 rows. Hence special comparators like LE LT GT GE do not work with read statement and give errors.

You can use LOOP instead.

LOOP.

*at some condition

EXIT.

ENDLOOP.

Reward points if helpful