‎2006 Oct 03 1:18 PM
Hi friends,
I need to validate on matnr field on selection screen. I need to check the matnr entered by the user is available in mara table or not.
Thanx in advance.
Regards,
Parvez.
‎2006 Oct 03 1:21 PM
hi,
u can do the validation in.
at selection-screen .
if field_matnr is not initial.
select single matnr from mara into tmp_fld
where matnr = field_matnr.
if sy-subrc <> 0.
show error message.
endif.
endif.
rgds
anver
pls mark hlpful answrs
‎2006 Oct 03 1:19 PM
at selection-screen on p_matnr.
select single *
from mara
where matnr = p_matnr.
if sy-subrc <> 0.
message e001 with 'error'.
endif.
‎2006 Oct 03 1:20 PM
Parvez,
Do the validation in AT SELECTION-SCREEN on P_mantr.
Like
Select single * from MARA where MATNR eq p_MATNR.
if sy-subrc <> 0.
Error message
endif.
~thomas.
‎2006 Oct 03 1:21 PM
hi,
u can do the validation in.
at selection-screen .
if field_matnr is not initial.
select single matnr from mara into tmp_fld
where matnr = field_matnr.
if sy-subrc <> 0.
show error message.
endif.
endif.
rgds
anver
pls mark hlpful answrs