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 validation

Former Member
0 Kudos

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

Former Member
0 Kudos

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 .

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks