Reasons to maintain latitude and longitude (lat and long) in C4C

Hello C4C community,

Here are three reasons to maintain latitude and longitude of your customers in C4C.

At C4C you have two fields in customer address that can be very helpful when correctly maintained. Those are latitude and longitude, as you can see in image below.

I have used the SAP Galway address. I lived in Galway few years ago, great city to live 🙂

Now, where this information is useful, in another words, the reasons to maintain it.


1)  Enable check-in range in meters to check if your employee is in customer address while doing a visit.

Here are the steps of how to do that.

Go to Business Configuration->Implementation Projects and then Edit Project Scope. Mark the question below.

Do you want to validate users’ proximity to Accounts during check-in?

After that, Open Activity List. There, add to your project the activity Maintain Visit Check In Range.

Then maintain your range in meters. Here I let the default value, 800 meters.

If you check in in a distance bigger than 800 meters, you will receive a warning message saying you not at customer address.

Visit has not been checked in within xxx meters of the Account


2) Enable check-out range in meters to check if your employee does not to forgot to do an check-out while he is in customer address.

Here are the steps of how to do that.

Go to Business Configuration->Implementation Projects and then Edit Project Scope. Mark the question below.

Do you want to prompt users when they leave a visit without checking out?

After that, Open Activity List. There, add to your project the activity Maintain Visit Check Out Range.

Then maintain your range in meters. Here I let the default value, 800 meters.

If you check out in a distance bigger than 800 meters, you will receive a warning message saying you not at customer address.

It looks like you are leaving the customer location…


3)  In customer Map View you can Search Map Area.

4) You can also do a Nearby Search on your customers.

To enable 3 and 4 you just need to go to Settings->Company Settings and enable the option Enable Nearby Search and Search by Area on the Map.


5) Default lat/long from customer to your Registered Product.

If you are working with registered products and you have maintained your customer’s latitude and longitude, then that information will be copied by default to your registered product 🙂 Unless, you have activated an scope question to get your lat/long by default from your ship-to-party.

Moreover you can update the location from the action Update Location From, as in image below.

By the way, if you yo lean a bit more from registered products, check it out this post C4C Service Expert Corner: Registered Product Overview, by Anshika Goyal.


Moreover, to maintain the latitude and longitude information without need to do it manually, them you can create an ABSL code in the Customer -> Address -> Before-Save that will get the address lines and send to any API of Geo-coding, for example Google Geocoding, returning the latitude and longitude 🙂

Or if you already have many customers and does not have this information, use a MDR (Mass Data Run) to update customer information.

You can find how to do this at this post Google geocoding API for address check and normalization, by Alexey. Actually, it is easier now, since SAP has provided from standard a JSON converter!

You can go even further with lat/long information, like create a customization to create best route for your sales rep, with simple linear distance from point to point, without using any third APIs.

Or a Google Distance Matrix API in SAP Cloud Application Studio – C4C/ByD, by Rahul Sharma. Instead of address you can use directly the lat/long.

If you use your creativity, latitude and longitude can be a very useful information!


That is all folks, if you know more reasons to maintain lat/long of your customer addresses, please add a comment with it!

Best regards,

Marlos Damasceno