on 04-27-2007 6:46 AM
Hi ,
I have written a statement READ TABLE outtab WITH KEY 'LV_CUST_ACCNO'.
when i done Extended Programming Check it is showing following error
The current ABAP command is obsolete
The variant " WITH KEY k" is no longer supported in the OO context. Use an
explicit key specification instead . . . .
Can anyone help me to write READ TABLE statement without using KEY .
Solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The correct statement is :
READ TABLE itab WITH TABLE KEY k1 = v1 ...kn = vn [additions].
READ TABLE itab WITH KEY k1 = v1 ...kn = vn [BINARY SEARCH]
In OO context (so within classes) the rules are more strict than in normal Abap.
regards,
Hans
Please reward all helpful answers !!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.