09-16-2008 10:44 AM
hi guru's,
in bellow is the my selection screen . in bwart field in we key in some number example ' 987'. i should get the erroer message. can any one tell me how to do this.
selection-screen begin of block 001 with frame title text-001.
parameter : pa_lgort like mseg-lgort obligatory, " storage
pa_bwart like mseg-bwart . " Movement
select-options : so_matnr for mseg-matnr, "Material
so_budat for mkpf-budat. "Posting date
thanks & best regards,
praveen.
09-16-2008 10:49 AM
Hi,
Try this.
The validations in the selection screen are done in
AT SELECTION-SCREEN.
<here u can check and give error messages>
if bwart eq '987'
<display the error message>
endif.
Sharin.
09-16-2008 10:49 AM
Hi,
Try this.
The validations in the selection screen are done in
AT SELECTION-SCREEN.
<here u can check and give error messages>
if bwart eq '987'
<display the error message>
endif.
Sharin.
09-16-2008 10:51 AM
Hi,
Write the validation In
AT SELECTION_SCREEN ON pa_bwart .
Can you please tell for what condition you want Error message.
09-16-2008 12:01 PM
hi,
write select query on T156 ( check table ) table to know whether the given value is a valid movement type or not... in
at selection-screen on pa_bwart
select single * from bwart from t156 into wa where bwart eq pa_bwart
if sy-subrc ne 0.
error message
endif.
regards
padma