Sei sulla pagina 1di 4

Create Search Help; 1) Using design layer Go to transaction SPRO Customer relationship manager->Ui Framework-> Ui Framework Definition->Design Layer>Define

Design Object Create design object:

Create design , This field will have search help assigned to it in structure of BOL Object.

Now come to component and assign it to the attribute. Once it is assigned you will get the search help in this field:

2) By Implementing P-getter and V-getter methods: Write as the below code:


method GET_P_BD_ID. CASE iv_property. WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype. IF iv_display_mode EQ abap_true. rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link. ELSE. rv_value = cl_bsp_dlc_view_descriptor=>field_type_input. ENDIF. WHEN if_bsp_wd_model_setter_getter=>fp_onclick. rv_value = 'TOADDBP'. "#EC NOTEXT ENDCASE. endmethod. method GET_V_BD_ID. DATA: lv_str_index lv_value ls_map _mapping, lt_inmap _mapping_tab, lt_outmap _mapping_tab.

TYPE string, TYPE string, TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param

lv_str_index = iv_index. CONDENSE lv_str_index NO-GAPS. CONCATENATE 'table[' lv_str_index '].BP_ID' INTO ls_map-context_attr. CONDENSE ls_map-context_attr NO-GAPS. ls_map-f4_attr = 'PARTNER'. APPEND ls_map TO lt_outmap. APPEND ls_map TO lt_inmap.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4desc r EXPORTING iv_help_id iv_help_id_kind e iv_input_mapping = lt_inmap = 'BUPAG' = if_bsp_wd_valuehelp_f4descr=>help_id_kind_nam

iv_output_mapping = lt_outmap iv_trigger_submit = abap_true. endmethod.

Run the application and you will get search help in field:

Potrebbero piacerti anche