on 11-03-2011 3:26 PM
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 -
You have to change the GET_P method as well.
Rgds,
Shobhit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.