Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9063

Re: Search City with Pin Code or Vice versa.

$
0
0

Hi,

 

I had one similar requirement once. This is available in standard too. It was for create BP in IC agent role.

In the V-Getter, you have to code the attribute mapping.

 

Eg, if u want to retirive values based on Post code, code in v-getter of post code code similar to this

 

method GET_V_POST_CODE1.

  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.post_code1'.                "#EC NOTEXT
ls_map-f4_attr      =
'POST_CODE'.                        "#EC NOTEXT
APPEND ls_map TO: lt_inmap, lt_outmap.

ls_map-context_attr =
'struct.city1'.                     "#EC NOTEXT
ls_map-f4_attr      =
'MC_CITY'.                          "#EC NOTEXT
APPEND ls_map TO: lt_inmap.

ls_map-context_attr =
'struct.city1'.                     "#EC NOTEXT
ls_map-f4_attr      =
'CITY_NAME'.                        "#EC NOTEXT
APPEND ls_map TO: lt_outmap.

ls_map-context_attr =
'struct.region'.                    "#EC NOTEXT
ls_map-f4_attr      =
'REGION'.                           "#EC NOTEXT
APPEND ls_map TO: lt_inmap, lt_outmap.

ls_map-context_attr =
'struct.country'.                   "#EC NOTEXT
ls_map-f4_attr      =
'COUNTRY'.                          "#EC NOTEXT
APPEND ls_map TO: lt_inmap, lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id        =
'CRM_ISU_ADDR_POSTCODE'           " Cause we are determining values  based on Pin code

      iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_input_mapping  = lt_inmap
iv_output_mapping = lt_outmap.
endmethod.


Note: You will have to pass the attributes as of you Bol object.


There is one more similary a few more base on street.


-

Anish



Viewing all articles
Browse latest Browse all 9063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>