‎2008 Jul 05 6:39 AM
Hello ,
I have the time field in the selection screen which is manddatory. but it is taking as 00:00:00 both low and high time,as i have put the fields as mandatory nad if i execute it with 00:00:00 i am not getting the values updated and if i change the time i am getting the values updated, so how can i change the defalut values of time from 00:00:00 to normal. i did not set the field as 00:00:00.please help me out how to remove 00:00:00.
‎2008 Jul 05 6:48 AM
low is getting the current time
select-options: so_time for sy-uzeit default sy-uzeit.
‎2008 Jul 05 6:48 AM
Hi Soni,
When you declare a variable of type T you will get 00.00.00 .
If yuo want to change just do it in INITIALIZATION EVENT.
parameters:
w_time type t.
data:
w_space(8) type c value space.
initialization.
w_time = w_space..If you want any time to get default
parameters:
w_time type t.
initialization.
w_time = sy-uzeit.
you can also declare the variable
parameters:
w_time type sy-uzeit.
sy-uzeit gives the system current time.
Regards,
Rajitha.
‎2008 Jul 05 6:49 AM
Hi,
Try to initialise the fields in Initization event.
when we use DEFAULT we cant change the value at runtime
but can be changed when used with the above event.
Reward if helpful.
Best Wishes,
Chandralekha
Edited by: Chandralekha on Jul 5, 2008 7:53 AM
‎2008 Jul 05 7:09 AM
the values defaulted can always be changes.. provided if you dont make it a constant.