cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying Geolocation Data on BP Save

Former Member
0 Kudos

Hello,

            During BP Save from the UI, a default value for Longitude and Latitude gets saved in the GEOLOC Table against the standard address(XXDEFAULT) for each BP. The default values are obtained from a standard table(GEOT005) that maintains a defaults set of values for each country.

             I wish to change this data but was not able to find any BOL Relation from BuilHeader nor any Independent Root Object. Neither could I find any FM for the same. The fields are not available on the screen.

             Please suggest any solution for the same.

rjbhayani
Explorer
0 Kudos

How did you managed it show at BP level ( back-end ) and If that BP is getting replicated then how you have enhanced Interface ( Idoc / SOA ) .

Is there any Standard and best way to do it rather than BUPT and BAPI extension

Accepted Solutions (1)

Accepted Solutions (1)

nicolas_busson
Active Contributor

Hello,

The geocoding survival guide might help you:

Note 1402070 - Geocoding-Survival guide

If you want to deactivate geocoding, just run the report mentioned in the note (and if you want to activate it and adapt it to your needs, follow the IMG help mentioned in the note as well).

Regards,

Nicolas.

Answers (3)

Answers (3)

0 Kudos

Did anyone manage to solve this? I have the same requirement - to modify geocoding when BP is saved

0 Kudos

I was able to modify the geocode during BP creation but not when changing the BP

kumar5
Active Contributor
0 Kudos

Hi ,

I have never tried this but below are the FMs which might be helpful. They can be used to delete and update the Geolocation data.

GEO_UPDATE_GEOLOC

GEO_UPDATE_GEOOBJR

To get the geolocation data use FM 'BUA_GEOLOC_GET_GEODATA'.

Hope it helps.

Thanks

Kumar

Former Member
0 Kudos

Adding to this, I was able to find out the class that sets the Values in SPRO > SAP Netweaver -> General Settings->Set Geocoding->Register Geocoding Program in the system.

Basically I created a Z of CL_GEOCODER_SAP0 and put my code in the GEOCODE_ONE_ADDRESS method, modifying the Latitude and Longitude values.

The issue I am facing here is that the altered values are stored the first time I Save an account, but if I alter the values next time, the values are not updated.

HendrikPeters
Explorer
0 Kudos

I also created a Z of CL_GEOCODER_SAP0 and put in my code of the GEOCODE_ONE_ADDRESS method and I have the same issue, that when I change the address of an existing account, the method would not perfomed.
I also read the survival guide but I couldn't find an answer to my issue.

Could anyone please suggest a solution?

Best Regrads.