‎2007 Sep 10 3:47 PM
HI Friends,
I am using a code like as below
loop at itab assigning <fl_itab>.
read table inttab assigning <fl_inttab> with key matnr = <fl_itab-matnr>.
material = <fl_inttab>-matnr.
endloop.
my questio is .
i am reading inttab internal table .if (suppose) this internal table has duplicate records for a material number which value will be assigned to output field(material).will read statement will take only the first record of many duplicate record...
please help me
‎2007 Sep 10 3:49 PM
Yes it will take the first record.
you can check the sy-subrc value after the execution of the READ statement.
loop at itab assigning <fl_itab>.
read table inttab assigning <fl_inttab> with key matnr = <fl_itab-matnr>.
if sy-subrc eq 0.
material = <fl_inttab>-matnr.
endif.
endloop.
‎2007 Sep 10 3:49 PM
Yes it will take the first record.
you can check the sy-subrc value after the execution of the READ statement.
loop at itab assigning <fl_itab>.
read table inttab assigning <fl_inttab> with key matnr = <fl_itab-matnr>.
if sy-subrc eq 0.
material = <fl_inttab>-matnr.
endif.
endloop.