‎2006 Sep 26 6:09 AM
hello dear,
i have a parameter input field on my selection screen
NAME _____________
i want that i can type a name which should be sanjeev
only.
i want that if anybody try to
type any name other than sanjeev then it could not be possible means it shouldn't allow any body to type any name other than sanjeev in that field.
and if anyone type sanjeev then we can move to other screen otherwise not.
how it can be done.
thanks in advance
‎2006 Sep 26 6:13 AM
Hello,
Try as below
LOOP AT SCREEN.
IF screen-name = 'Your parameter name here'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks,
Thirumal
‎2006 Sep 26 6:13 AM
Hello,
Try as below
LOOP AT SCREEN.
IF screen-name = 'Your parameter name here'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks,
Thirumal
‎2006 Sep 26 6:15 AM
Hello,
Do that in the event
AT Selection-screen output.
LOOP AT SCREEN.
IF screen-name = 'Your parameter name here'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks,
Thirumal
‎2006 Sep 26 6:13 AM
Hi,
This can be achieved in AT SELECTION screen event.
Here you compare the value.
IF NAME <> 'sanjeev'.
Message eXXX 'Name can only be sanjeev'.
endif.
Here XXX is your message number.
Cheers
Chintamani
‎2006 Sep 26 6:14 AM
you can do this in selection-screen output.
at selection-screen output.
if not p_name is initial.
if p_name <> 'SANJEEV'.
*error message
endif.
endif.
‎2006 Sep 26 6:15 AM
hi sanjeev,
parameter: name type char35.
at selection-screen.
if name is not initial.
if name ne 'SANJEEV'.
message e000(zz) with 'Incorrect Name'.
endif.
endif.