Skip to Content
author's profile photo
Former Member

how to add F4 pop-up to a zfield (appended in the structure) in the search.

Hi Friends,

I have a doubt and need your help to get it resolved.

I have a search view, and i have appended a field Product_hierarchy to it. now the field is displayed in the UI .

I have added the component usage of the product category search help in my component also.

now i tried to put the code in get_dquery_valuehelps:

WHEN 'ZZPROD_HIERARCHY'.

CALL METHOD cl_crm_uiu_bp_cust_get=>get_values_for_field

EXPORTING

iv_fieldname = ................................... ( what should i enter here)

  • IV_PARTNER =

RECEIVING

rt_value = lt_ddlb

or i should follow some other approach. right now i am getting Prod_hierarchy in UI with the DDLB showing message 'This Method is not implimented yet'

Please suggest.

Regards,

VD

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on May 02, 2011 at 11:16 AM

    Hi VD,

    Please refer to the following article:

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0646247-efe2-2b10-3b99-c1a12ef2d752

    You need to refer to the section that describes how to add a value help in advanced search.

    Regards,

    Shiromani

    Add comment
    10|10000 characters needed characters exceeded

    • Hi VD,

      help_id field is mandatory and it should be an elementary search help that already exists in the data dictionary. You need to figure out if an elementary search help that you can use already exists (tx se11). Otherwise you need to create one and pass its name in the help_id field.

      Regards,

      Shiromani

  • author's profile photo
    Former Member
    Posted on May 05, 2011 at 05:37 PM

    You need to implement get_v method.

    also implement an outbound plug

    also implement an event eg: SEL_IBASECOMPONENT. this gets called when you close the popup

    Example --

    method GET_V_IBASE_COMPONENT.

    create object rv_valuehelp_descriptor type cl_bsp_wd_valuehelp_navdescr

    exporting

    iv_outbound_plug = 'OP_FINDIBASECOMPONENT'.

    endmethod.

    method OP_FINDIBASECOMPONENT.

    data:

    lv_title type string.

    IF ibcompvaluehelp_popup IS NOT BOUND.

    lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/IBCOMP_SEARCH' ).

    ibcompvaluehelp_popup = comp_controller->window_manager->create_popup(

    iv_interface_view_name = 'MainWindow'

    iv_usage_name = 'ZWTS_IBaseVH' "the comp usage name in the component

    iv_title = lv_title ).

    ENDIF.

    ibcompvaluehelp_popup->set_on_close_event( iv_view = me iv_event_name = 'SEL_IBASECOMPONENT' ).

    ibcompvaluehelp_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).

    ibcompvaluehelp_popup->open( iv_inbound_plug = 'SEARCH_COMP_F4' ). "look at the child component to find plug.. you can assign "DEFAULT" if not sure

    endmethod.

    METHOD eh_onsel_ibasecomponent.

    lv_context_node = ibcompvaluehelp_popup->get_context_node( iv_cnode_name = 'IBCOMPONENTLIST' ). "look the child component and find the context node related to the search help result list

    lv_col_wrapper = lv_context_node->collection_wrapper.

    lv_current ?= lv_col_wrapper->get_current( ). "the selected record from the search help(child component) will be available here

    "then pass value from this entity current to your own context node(parent component)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for your reply but i have done this earlier and has solved the issue.

      But now i have another requirement,

      The field that i added in search i want the same in the OV page also and this is not the custom field it is allredy present in the system but in another business object.

      I want to add this Zfield which is present in the ONEORDER but in another business object to the different Business object of ONEORDER.

      Now should i use EEWB, and then search logic also need to implimened. or if i add another context node in my component having this field. and then display in UI.

      Please Suggest.