cancel
Showing results for 
Search instead for 
Did you mean: 

Value Help in search criteria in CRM WEB UI

Former Member
0 Kudos

Hi All,

I am having 5 fields coming as dropdown in search criteria of Account in WEB UI.

Now when I am selecting field1, a f4 help needs to be assigned againest that field so that user can search values.

I have implemented the GET_V method of that particular field & passed the Outbound plug. But it is not working.

Now instead of the search view,I have done the same thing in Details view for a field, the f4 help is coming.

Is there any restriction for search view -

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You have to change the GET_P method as well.

Rgds,

Shobhit

Former Member
0 Kudos

Can you thorough some light in details?

former_member189678
Active Contributor
0 Kudos

Refer any standard UI Search Component eg PRD01QR, go to search View IMPL class. You will come to know that there are Methods like GET_VH_***. These are the methods which controls the value help for attributes in the Context Node.

You may choose to do the same.

Regards,

Harshit Kumar

Former Member
0 Kudos

Hi Harshit,

We have followed standrad method as you sugggested. I have written below code in the method GET_DQUERY_DEFINATIONS of IMPL class of SVYS component. It is a search component and the view is 'SVY_S/SVYSQ' :

loop at rt_result assigning <rl_result>.
    IF <rl_result>-field EQ 'CREATED_BY'.
*      concatenate 'GET_VH_' <rl_result>-field into lv_method_name.
      try.
          call method GET_VH_CREATED_BY
            CHANGING
              cs_result = <rl_result>.
        catch cx_sy_dyn_call_illegal_method.            "#EC NO_HANDLER
*     no method available, do nothing
      endtry.
    ENDIF.
  ENDLOOP.

And also create GET_VH_CRAETED_BY method in IMPL class. But no search help icon is coming. Please help.

Former Member
0 Kudos

Hello !!!

Please suggest how can I proceed further.

Former Member
0 Kudos

Hi,

If you have a standard search help for your field then you should assign it as shown below:

LOOP AT rt_result ASSIGNING <rs_result>.

CASE <rs_result>-field.

WHEN 'Your field id'.

<rs_result>-output_mapping-context_attr = 'Your Attribute name including struct.'.

<rs_result>-output_mapping-f4_attr = 'Your search Help parameter name'.

<rs_result>-help_id-help_id = 'Your search help id'.

<rs_result>-help_id-help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name.

Thanks,

Rakesh

Former Member
0 Kudos

Hi Rakesh,

the code you refer is applicable for only simple F4 help. But I want to open a BSP compoennt as F4 help.

Former Member
0 Kudos

For this requirement you need to create a component usage with your component which you want to call. Create an Outbound plug and call your component usage as a pop-up using similar code

   compprodsearch_popup = comp_controller->window_manager->create_popup(
                              iv_interface_view_name = 'MainWindow' "#EC NOTEXT
                              iv_usage_name = 'CUSearchCompetitorProd' "#EC NOTEXT
                              iv_title = lv_title ). 

Then call this outbound plug in your GET_V method

  CREATE OBJECT rv_valuehelp_descriptor
    TYPE
      cl_bsp_wd_valuehelp_navdescr
    EXPORTING
      iv_outbound_plug             = 'OP_SEARCHCOMPETITORPRODUCT'.

Refer component/view BT111H_OPPT/CompetitorProdEF CN-BTPARCOMPPRD GET_V_ID method and other OP in that view.

Rgds,

Shobhit