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: 

Read Table with key ....

Former Member
0 Kudos

Dear All,

How Can I use "<",">" and so on in Read Table with key condition?

Like below sample... when I use ">", but program can not pass....

LOOP AT it_stock.

READ TABLE it_ WITH KEY ebeln = it_stock-ebeln ebelp = it_stock-ebelp eindt > it_stock-bldat.

...

ENDLOOP.

Thank you very much!

Best regards,

VIncent

Moderator Message: This was something you could have tried on your own and found out. Next time, try first, then post after searching the web.

Edited by: kishan P on Sep 10, 2010 9:40 AM

2 REPLIES 2

martin_voros
Active Contributor
0 Kudos

Hi,

you can't. Use LOOP with EXIT instead.

Cheers

0 Kudos

Hi Vincent,

Try something like...

LOOP AT it_stock.

LOOP AT TABLE it_ WHERE ebeln = it_stock-ebeln AND ebelp = it_stock-ebelp AND eindt > it_stock-bldat.

...

ENDLOOP.

Regards, Andy