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
670

Hello All,

Instead of doing a validation at selection screen. If I do the validation in start-of-selection and still want to make the message display at selection screen what should i do?

Thanks in advance

SDN FAN

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
643

Hi,

1. U are right, we can do so.

2. But we have to take care like this.

3.

START-OF-SELECTION.

IF WRONG CONDITION.

MESSAGE 'WRONG INPUT' TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.

WRITE 😕 'DATA'

4. Important point is

a)use message type I and not E

b) use leave list-processing.

regards,

amit m.

4 REPLIES 4
Read only

Former Member
0 Likes
643

u have to do like this

start-of -selection

select kunnr name1 from kna1

into corresponding fields of table i_kna1

where kunnr in s_kunnr.

if sy-subrc ne 0.

message ' no customer found for this selection'

endif.

regards

Prabhu

Read only

Former Member
0 Likes
643

suppose your selection screen parameter is s_matnr, u simply validate it like

if s_matnr ne 'the validatiopn value'.

message 'i001'.

there is no necessity of using the events .

Read only

Former Member
0 Likes
643

suppose your selection screen parameter is s_matnr, u simply validate it like

if s_matnr ne 'the validatiopn value'.

message 'i001'.

there is no necessity of using the events .

Read only

Former Member
0 Likes
644

Hi,

1. U are right, we can do so.

2. But we have to take care like this.

3.

START-OF-SELECTION.

IF WRONG CONDITION.

MESSAGE 'WRONG INPUT' TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.

WRITE 😕 'DATA'

4. Important point is

a)use message type I and not E

b) use leave list-processing.

regards,

amit m.