Symptom
The "Out of Range Check-In"/"Out of Range Check-Out" status is showing as "Yes" for Visit ID: XYZ.
Environment
SAP Cloud for Customer
Reproducing the Issue
1. Open Account ID: ABC (ABC stands for the Account ID).
2. Go to the Addresses and check the Longitude and Latitude.
Latitude: 27,2951499
Longitude: 80,8598101
3. Go to the Visit ID: XYZ (XYZ stands for the visit ID).
4. Go to the header and check the Longitude and Latitude & Out of Range Check-In.
Check-In Latitude: 27,280731
Check-In Longitude: 80,837845
5. Observe: Out of Range Check-In = Yes.
Cause
The "Out of Range Check-In" status depends on the range set by the administrator. If the range is set to a certain distance, for example, 1 kilometre, and the check-in location is beyond this range from the account's location, then the system will show "Out of Range Check-In = Yes".
Resolution
Let assume that in this case, the administrator has set the range to 300m. To determine if the visit is out of range, we need to calculate the distance between the account location and the check-in location using the given latitude and longitude.
- The approximate conversions are:
Latitude: 1 deg = 110.574 km.
Longitude: 1 deg = 111.320*cos(latitude) km. - Using these conversions, we calculate the difference in latitude and longitude in kilometres. Then, we calculate the straight-line distance between the two points using the Pythagorean theorem.
Distance = sqrt((Difference in Latitude in km)^2 + (Difference in Longitude in km)^2) = sqrt((1.593 km)^2 + (2.439 km)^2) = 2.91 km
- In this case, the calculated distance is 2.91 km, which is greater than the set range of 300m. Therefore, the visit is out of range when the agent checks in.
Please note that the administrator can adjust the range setting as needed to accommodate for larger or smaller distances.
See Also
- Field "Out of Range Check-In" Showed as No in Visit (KBA 2696623)
- Visit Out of Range Check-In Indicator Displays 'NO' (KBA 3018416)
Keywords
Out of Range, Visit Check-In, Visit Check-Out, Latitude, Longitude, Discrepancy, Device Accuracy, Range Configuration, Distance Calculation. , KBA , LOD-CRM-ACT-VST , Visit Planning , Problem
SAP Knowledge Base Article - Public