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

Regarding Time

Former Member
0 Likes
856

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.

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
744

low is getting the current time

select-options: so_time for sy-uzeit default sy-uzeit.

Read only

Former Member
0 Likes
744

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.

Read only

Former Member
0 Likes
744

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

Read only

0 Likes
744

the values defaulted can always be changes.. provided if you dont make it a constant.