Application Development 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: 

need to add in timestamp

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

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

2 REPLIES 2

ferry_lianto
Active Contributor
0 Kudos

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

Former Member