2008 Jan 15 12:13 PM
In READ TABLE stmt, can we specify multiple keys?
Like
READ TABLE itab with key matnr = '0000000023' ersda = '010108'.
Plz suggest!
2008 Jan 15 12:20 PM
Yes like
> READ TABLE t_cobk INTO cobk
> WITH KEY mandt = coep-mandt
> kokrs = coep-kokrs
> belnr = coep-belnr
> BINARY SEARCH.
Look at [Reading Lines of Tables|http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/frameset.htm]
Regards
2008 Jan 15 12:18 PM
Hi,
Yes u can specify multiple keys in READ TABLE stmt.
It will work but dont forget to check SY-SUBRC otherwise clear workarea after every record.
READ TABLE itab with key matnr = '0000000023'
ersda = '010108'
ernam = 'SAPABAP'.
IF sy-subrc EQ 0.
-
ENDIF.
Regards,
Srinivas Ch
2008 Jan 15 12:20 PM
2008 Jan 15 12:20 PM
Hi Santo,
you can read the table using multiple keys.
READ TABLE itab with key matnr = '0000000023' ersda = '010108'.
if sy-subrc eq 0.
reward points if useful..
Regards,
Goutham.
2008 Jan 24 8:55 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |