Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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:
replied

Hi,

Use this

select single * INTO corresponding fields of table itab2 from mara

where matnr = itab1-matnr.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question