You want to support the user when entering addresses by making suggestions during the input.
We show this by means of the address entry in transaction BP - Business Partner:
As you need an API key for the Google Service, you may need to create an account in the Google Cloud Platform. At present, use is free of charge up to a relatively generous quota.
We define the API key and the filename of the InputScript, that will be started when the user selects an address from the list of suggestions. Occurrences of the corresponding placeholders in the HTML template are automatically replaced with the corresponding values.
In this example, the placeholders &[apikey] and &[inputscript] are replaced with the values that we assign to the GuiXT variables apikey and inputscript.
Explanation of options:
Google Maps Platforrm - Places Autocomplete
All files for this project can be downloaded here: