‎2006 Oct 18 5:38 AM
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
‎2006 Oct 18 6:26 AM
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.
‎2006 Oct 18 5:40 AM
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
‎2006 Oct 18 5:47 AM
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 .
‎2006 Oct 18 5:52 AM
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 .
‎2006 Oct 18 6:26 AM
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.