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: 

parameter input not to be modified

Former Member
0 Kudos
560

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

1 ACCEPTED SOLUTION

former_member742973
Participant
0 Kudos
229

Hello,

Try as below

LOOP AT SCREEN.

IF screen-name = 'Your parameter name here'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Thanks,

Thirumal

5 REPLIES 5

former_member742973
Participant
0 Kudos
230

Hello,

Try as below

LOOP AT SCREEN.

IF screen-name = 'Your parameter name here'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Thanks,

Thirumal

0 Kudos
229

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

Former Member
0 Kudos
229

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

Former Member
0 Kudos
229

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.

Former Member
0 Kudos
229

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.