Hi,
is it possible to use read statement like this
Read table mara with key matnr = p_matnr or ernam = p_ernam