11-23-2007 12:21 PM
Hi all,
I have two times in TIMS and I would like to get the time difference between those two times in QUAN.
e.g.
time TYPE CATSHOURS , ''CATSHOURS type quan
end_time type CATSENDUZ , ''CATSENDUZ type tims
start_time TYPE CATSENDUZ .
start_time = '080000' .
end_time = '120000' .
Now I would like to get the difference between the end_time and start_time, which is 4 hours, and store it in the time.
Does anyone have a good suggestion on how to do this?
Thanks in advance for all help!
BR,
Armin
11-23-2007 10:07 PM
11-23-2007 11:02 PM
Hi,
Please check these FM.
SCSM_TIME_DIFF_GET
CCU_TIMESTAMP_DIFFERENCE.
SD_DATETIME_DIFFERENCE
But you will need to enter the time in as YYYYMMDDHHMMSS.
Regards,
Ferry Lianto