Skip to Content
0
Former Member
Aug 10, 2011 at 04:51 PM

Select all records that correspond internal table and fail if one not found

62 Views

Hi,

I want to Select all records from Z_table into i_table for all entries in i_control where matnr = i_control-matnr but I wish for the sy-subrc to fail if one(or more) of the entries in i_control is not found on Z_table.

i.e.

z_table has matnr : abc, Def,

i_control has matnr: abc, Def, ghi

since 'ghi' is not found on z_table I'd like the select to fail/ return sy-subrc different from 0.