‎2008 May 29 4:43 AM
Hi all
My requirement is i have to read a internal table with two keys which is x ne 're' and y is not initial i have writen like this but its not working
READ TABLE INT_RBKP INTO WA_RBKP WITH KEY WA_RBKP IS NOT 'RE' WA_RBKP IS NOT INITAIL .
can any one suggest me soem better ways to do this??
Thanks and Regards
Arun Joseph
‎2008 May 29 4:48 AM
Hi Arun,
You can not use NE with READ.
For that you may require to use LOOP AT..WHERE.
Regards,
Atish
‎2008 May 29 4:51 AM
Hi Arun,
U can do this way
READ TABLE INT_RBKP INTO WA_RBKP WITH KEY <field_name> NE 'RE'.
IF NOT WA_RBKP-<field_name> IS INITAIL .
<code>.......
.................
ENDIF.Best regards,
raam
‎2008 May 29 4:54 AM
Hi Arun,
The Operator 'NE' 'GE' etc... you cann't use in the READ statement only you have to use 'EQ'.
For your requirement,
1. Read the data from the internal table.
2. validate the data using IF statement.
READ TABLE INT_RBKP INTO WA_RBKP.
IF WA_RBKP IS NOT 'RE' and WA_RBKP IS NOT INITAIL .
True
ELSE.
*False.
Endif.
Reward if it is useful.
Regards,
Boobalan S.
‎2008 Jun 02 12:29 PM