Application Development and Automation 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: 
Read only

selection screen validation

Former Member
0 Likes
596

Hi ,

I am uploading some countries for bank upload, Here my requirement is i want to stop specific countries.

Selection screen:

parameters: p_file like rlgra-filename.

SELECT-OPTIONS: land FOR t005-land1.

'Thanks,

Asha

3 REPLIES 3
Read only

Former Member
0 Likes
562

You can add the validations in event 'At Selection-screen' .

Ex :

Selection screen:

parameters: p_file like rlgra-filename.

SELECT-OPTIONS: land FOR t005-land1.

At Selection-screen .

If land-low = '10' or

land-low = '10' .

else .

Message e000 (message class ) 'Enter country grouping as US or India ' .

endif .

Read only

Former Member
0 Likes
562

Hi Asha

Try this :

At Selection-Screen on S_Land.

*Select land into table i_land where land in s_land.

if sy-subrc eq 0.

loop at i_land into wa_iland.

if wa_land = 'Blocked'.

Exit.

Endif.

Endloop.

*Give the error message.

Read only

Former Member
0 Likes
562

Thanks