08-21-2008 2:26 AM
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
08-21-2008 3:58 AM
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
08-21-2008 4:32 AM
Thanks for the reply,
As i am not using any message class ,i can not give error messages .
Is there any way to proceed.
08-21-2008 4:36 AM
08-21-2008 4:15 AM
hi,
you mean in the parameters statement?
parameters:
name(10) type c default 'david'.
i hope that is what confuse you.
09-23-2008 4:29 AM