2007 Aug 27 9:56 AM
hallow
do i can read with great or less?
READ TABLE intab into wa_intab WITH KEY key > wa_intab_2-aa
or something eq that can help me
Regards
i reward
2007 Aug 27 9:59 AM
Hi!
With READ TABLE you can't perform a condition like this.
Use LOOP instead of it.
LOOP AT itab INTO wa WHERE itab-field <= '123'.
EXIT. "to read only the first record
ENDLOOP.
Regards
Tamá
hallow
do i can read with great or less?
READ TABLE intab into wa_intab WITH KEY key > wa_intab_2-aa
or something eq that can help me
Regards
i reward
2007 Aug 27 9:59 AM
Hi,
Read statement with greater or lesser is not allowed.
WHY? think think ..
you are reading a lint into work area , that means you can get only one line when you read from an internal table..
If you put greater than od less than, there may be so many values for that condition,
so READ doesnot allow GT or LT / GE, LE , NE.. etc.
Instaed you can use
<b>LOOP at ITAB into WA where field > 'value'.</b>rewards if useful,
regardsa,
nazeer
2007 Aug 27 9:59 AM
Hi!
With READ TABLE you can't perform a condition like this.
Use LOOP instead of it.
LOOP AT itab INTO wa WHERE itab-field <= '123'.
EXIT. "to read only the first record
ENDLOOP.
Regards
Tamá
2007 Aug 27 10:05 AM
Hi.. antonio..
Not possible with READ TABLE to use the other operators except = (EQ).
In that case you have to use LOOP.. ENDLOOP.
LOOP AT ITAB WHERE MENGE > 100.
ENDLOOP.
<b>reward if Helpful.</b>