Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

selection screen validations

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Write the validation In

AT SELECTION_SCREEN ON pa_bwart .

Can you please tell for what condition you want Error message.

Former Member
0 Kudos

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