‎2007 Jun 05 3:06 AM
Hi all,
I have a field which contains the time and I need to convert it in the following way.
The time Unit is HOURS and it is a quantity firld.
if i have the time value as 4.0 hours, my requirement is to display it as +000400 hours.
If I have the time as 0.25 hours then I need to make it as +000025 hours.
it is urgent.
Thanks&Regards,
Mungala.
‎2007 Jun 05 3:15 AM
data : v_time type sy-uzeit.
data : i_final(10) type c.
start-of-selection.
v_time = sy-uzeit.
concatenate '+000' v_time into i_final.
write i_final.
‎2007 Jun 05 3:13 AM
HI
Multiply the hours field by 100.
using string concatenate function add + to ur result and move it to another variable.
write the variable.
I hope this will slove ur problem.
Need ur reward points
Regards
Ravi
‎2007 Jun 05 3:15 AM
data : v_time type sy-uzeit.
data : i_final(10) type c.
start-of-selection.
v_time = sy-uzeit.
concatenate '+000' v_time into i_final.
write i_final.
‎2007 Jun 05 3:19 AM
data : time(6) type n.
time = '4.00'. "output 000400
time = '0.25' "output 000025
Reward points if useful.
Regards,
SaiRam