Skip to Content
0
Former Member
Oct 20, 2008 at 07:11 PM

ABAP code. Not returning any value..Please help

27 Views

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