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: 

passing values to parameters

Former Member
0 Kudos

Good morning all,

I want to assign default value to parameter which is not equal to some fixed value

for example :if i take currency field .i have to declare waerk field with default not equal to "INR" like that.

can any one help me in this .

thanks and regards,

gopal

5 REPLIES 5

Former Member
0 Kudos

Hi Gopal

As per my understanding we use DEFAULT to assign a particular fixed value to the parameter.

However if you do not want to some value like 'INR' in that parameter , you can always check the input at the selection screen before proceeding.

Something like

AT SELECTION-SCREEN.

IF pa_waers = 'INR'.

MESSAGE e000(Message class)... message can be smtg like 'Please enter a valid currency' etc.

ENDIF.

I am not sure if i have understood what you really are asking for.

Thanks

Shivika

Edited by: Shivika Bhorchi on Aug 21, 2008 8:28 AM

0 Kudos

Thanks for the reply,

As i am not using any message class ,i can not give error messages .

Is there any way to proceed.

0 Kudos

if you are not using up to now use it now.

no big deal

Former Member
0 Kudos

hi,

you mean in the parameters statement?


parameters:
           name(10) type c default 'david'.

i hope that is what confuse you.

Former Member
0 Kudos

probelm solved