‎2008 Jul 04 8:53 AM
READ TABLE it_583 WITH KEY pernr = pernr-pernr
begda <= month_end
endda >= month_begin.
i am getting error "=.." expected after "BEGDA"
i have changed le instead of <= and also ge instead of >=
but it's not working....
any idea how to deal with it??
‎2008 Jul 04 8:56 AM
You can not use relational operator like GE LE with read query.
instead read you need to put a loop.
Regards,
Azad.
‎2008 Jul 04 8:57 AM
hi,
READ TABLE works only with =
as a workaround you can use LOOP AT ...
LOOP AT it_583 INTO ...
WHERE pernr = pernr-pernr
begda <= month_end
endda >= month_begin.
...
ENDLOOP.
you ahve to be prepared that you could have more than one result.
hope this helps
ec
‎2008 Jul 04 8:57 AM
You cannot use greater than equal to option in read table with key.
Have a look at sap help for this.
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/frameset.htm
Thanks,
Vibha
‎2008 Jul 04 8:58 AM
‎2008 Jul 04 9:09 AM
‎2008 Jul 04 9:49 AM
Hi,
When you are reading records from internal table using READ
You can use KEY or INDEX value only.
1. READ TABLE itab INDEX 1.
2. READ TABLE itab WITH TABLE KEY k1 = v1 ... kn = vn [additions].
Regards,
Rajitha.