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

passing values to parameters

Former Member
0 Likes
914

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

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
Read only

Former Member
0 Likes
799

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

Read only

0 Likes
799

Thanks for the reply,

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

Is there any way to proceed.

Read only

0 Likes
799

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

no big deal

Read only

Former Member
0 Likes
799

hi,

you mean in the parameters statement?


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

i hope that is what confuse you.

Read only

Former Member
0 Likes
799

probelm solved