Skip to Content
Former Member
Jul 06, 2006 at 10:15 AM

Can I declare paremeters with calculated value as default?


Hi all,

I have to put as a parameter the date (the last day of month before). For example:

- today is 06.07.2006

- required value is 30.06.2006 but the user should be able to change it.

I thing the best solution is declare the parameter.

I know how to calculate the right date but when I declare a parameter with this value the field is empty.

For example - simple ABAP program:


DATA: value1(10).

value1 = '01.07.2006'.

  • it's only for test. I calculate the right date in this place

PARAMETERS par1(10) DEFAULT '01.07.2006'.

PARAMETERS par2(10) DEFAULT value1.

When I run this program the field for par1 is with value but the field for par2 is empty.

Could anybody help me? Is it possible to do or not?

Best regards,