ABAP code. Not returning any value..Please help
Hi All,
I need some help with this code...
DESCRIBE TABLE itab1 LINES lin.
IF lin = 1.
select single * INTO table itab2 from mara
where matnr = itab1-matnr.
IF sy-subrc EQ 0.
W_matnr = itab2-matnr.
ENDIF.
ENDLOOP.
My Itab1 is having 1 record but by select single statement is returning with subrc 4 as I don't have value in header, can you please help in this code.
Thank You.
Sunitha
Tags:
AJAY TIWARI replied
Hi,
Use this
select single * INTO corresponding fields of table itab2 from mara
where matnr = itab1-matnr.