2007 May 25 8:06 AM
Hi Abappers,
I want to use a rad statement in the BADi method but when i write:
READ TABLE ITAB WITH KEY MATNR = P_MATNR.
It gives the following syntax error.
'The variant " WITH KEY k" is no longer supported in the OO context. Use an explicit key specification instead.'
Can u please give me the correct syntax of the read stmt in OO context or some alternative.
Thanks,
Mansi.
2007 May 25 8:13 AM
in OO context you have to use internal tables with header lines
READ TABLE ITAB <b>INTO WA_ITAB</b> WITH KEY MATNR = P_MATNR.
Hi Abappers,
I want to use a rad statement in the BADi method but when i write:
READ TABLE ITAB WITH KEY MATNR = P_MATNR.
It gives the following syntax error.
'The variant " WITH KEY k" is no longer supported in the OO context. Use an explicit key specification instead.'
Can u please give me the correct syntax of the read stmt in OO context or some alternative.
Thanks,
Mansi.
2007 May 25 8:13 AM
in OO context you have to use internal tables with header lines
READ TABLE ITAB <b>INTO WA_ITAB</b> WITH KEY MATNR = P_MATNR.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |