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: 

Covert time difference in TIMS into number of hours in QUAN

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

I think you also have to take the date into account.

Rob

ferry_lianto
Active Contributor
0 Kudos

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