BS: FS Holiday API Service / Method:GetElapsedBusinessTime - Time Unit Argument Problem
Last updated on MARCH 02, 2017
Applies to:Siebel Field Service - Version 188.8.131.52 SIA  to 184.108.40.206  [Release V8]
Information in this document applies to any platform.
220.127.116.11 SIA 
STATEMENT OF ISSUE:
When using Business Service FS Holiday API Service and method GetElapsedBusinessTime it always send a result in "Hours" even when entering "Seconds" in Time Unit argument.
You can simulate this by creating a service schedule and capture the ROW_ID. Behaviour is the same on versions 18.104.22.168 and 22.214.171.124.
1. Create a service schedule and capture the ROW_ID
2. Enter in the business service simulator as input arguments:
Start Time = 07/17/2013 09:40:01
End Time = 07/17/2013 09:41:30
Schedule Time Zone = (GMT+01:00) Brussels, Copenhagen, Madrid, Paris
Time Unit = Seconds
Calender Id = ROW ID of the service calender you created.
(make sure you're calendar is open on the day in cause (07/17/2013 = Wednesday)).
3. The result is now 0.01 which is a result in hours and with a fault margin.
If the Time Unit = Seconds then the result should be in seconds and not in hours.
The GetElapsedBusinessTime method should either allow Minutes and Seconds as Time Unit values or at least it should return the elapsed time with the corresponding precision down to a second.
Technically the problem is with the GetElapsedBusinessTime function, which is used at customer's site to calculate the time needed by individual people to work on service request activities. The maximum precession of the function is 1/100 of an hour (36 seconds), which is not enough for the usage at customer's site.
The GetElapsedBusinessTime method not allowing Minutes and Seconds as Time Unit values and no option to return the elapsed time with the corresponding precision down to a second.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms