10-06-2008 11:04 AM
Hi Experts,
I want to subtract 5 min from the system time.
Is there any function module.
Regards,
Chandu
10-06-2008 11:10 AM
10-06-2008 11:15 AM
Hi,
Thanks for your reply.
But my requirement is I will pass just system current time.
Based on this it will subtract 5 min from this and stored in another variable.
Regards,
Chandu
10-06-2008 11:19 AM
Hi,
When you subtract 300 from SY_UZEIT it will subtract 300 seconds from the system time ( SY_UZEIT gives system time ).
This is equivalent to subtracting 5 min.
Regards,
Pramod
10-06-2008 11:14 AM
Hi,
I think u can use SY-UZEIT.
You can declare a local variable W_UZEIT type SY_UZEIT.
and write the code
w_uzeit = sy-uzeit - 300.
Regards,
Pramod.
10-06-2008 11:17 AM
10-06-2008 11:25 AM
10-06-2008 11:27 AM
Hi Cosmos,
We are not modifying SY-UZEIT...
we are declaring a variable W_UZEIT and assigning the subtracted value.
Regards,
Pramod
10-06-2008 11:29 AM
Hi Chandu,
Use the below statment to subtract 5 minutes:
data: v_time type sy-uzeit.
v_time = sy-uzeit.
v_time = v_time - 300.
This might solve your problem.
Thanks,
Chidanand
10-06-2008 11:54 AM
"But my requirement is I will pass just system current time."
I apprehended that he want to pass current time with substracted time