10-19-2007 3:47 AM
hi ,
i have a field "lv_timestamp" of type TIMESTAMP. i need to add 120 seconds to in each loop pass. so i just put ordinary addition as it is of type TIMESTAMP.
loop at itab.
lv_timestamp = lv_timestamp + 120.
endloop
it is getting add but i am getting wrong value like 75 sec,95 sec which is wrong
19.10.2007 04:37:75
19.10.2007 04:38:95
kindly help
points will be rewarded
thanks in advance
10-19-2007 3:52 AM
Hi,
Please use these FM CONV_UTIL_ADD_DATE_AND_TIME or FM ADDR_ADD_TO_TIMESTAMP to add seconds to timestamp.
Regards,
Ferry Lianto
10-19-2007 3:52 AM
Hi,
Please use these FM CONV_UTIL_ADD_DATE_AND_TIME or FM ADDR_ADD_TO_TIMESTAMP to add seconds to timestamp.
Regards,
Ferry Lianto
10-19-2007 4:00 AM
Insted of seconds add 2 min
check for FM
FUNCTION MODULES
http://www.erpgenie.com/abap/functions.htm
http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
http://www.erpgenie.com/abap/index.htm
http://www.geocities.com/victorav15/sapr3/abapfun.html
Rewards if useful...............
Minal