cancel
Showing results for 
Search instead for 
Did you mean: 

Make Address Details Autocomplete on Base on I/p Value in Street Field, creating Contact from WebUI

imran_mohammad_2
Explorer
0 Kudos
455

Hi Experts,

Make Address Details Autocomplete on Base of Input Value in Street Field While creating Contact from WebUI

I have got the requirement of Autocomplete the Address Details while Creation of Contact from CRM WebUI. Points to Consider.

1. At Street Field on base of Input value should get the Custom Address details(i.e on Base of some Condition) and display here as below.

2.Then it should fill Address Details which we select here.As below.

3.I have Enhanced the Component, View , Context Node(STANDARDADDRES) and Attribute(STRUCT.STREET) and Redefined the GET_V_STREET method.Wrote the Below Code

DATA : ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.

ls_map-context_attr = 'STRUCT.STREET'.
ls_map-f4_attr = 'AD_STREET'.

APPEND ls_map TO : lt_inmap, lt_outmap.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZCL_BSP_WD_CUSTOM_F4_CALLBACK'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap
iv_trigger_submit = abap_true.

4. I have gone through the below link and wrote the code in StandardAddress.htm page.

https://blogs.sap.com/2013/05/24/using-places-autocomplete-for-addresses-in-crm/

5.But I cant able find where/how the Code should in View(BP_ADDR/StandardAddress) Implementation Class(ZL_BP_ADDR_STANDARDADDRES_IMPL) and link the code wrote in StandardAddress.htm page.

It would very Appreciable and Helps for Achievement of the Requirement.

Thanks & Regards,

Imran

Accepted Solutions (0)

Answers (0)