Search help at Runtime

Hi,
I need to assign  Search help dynamically to a table column based on the input of the Previous column.Please help.
Regards,
Ismail.

Hi Ismail,
    You can attach dictionary search helps to a field at runtime using the method set_attribute_value_help( ) of the class if_wd_context_node_info. This is a recently added feature.
    If this method doesn't exist on your server please contact your system administrator to get the latest notes imported into the system.
    You can check the value entered in the first column and accordingly set the F4 help in the second column using the above method.
Regards,
Shweta
Message was edited by: Shweta R Shanbhag

Similar Messages

  • Switch Search Help during runtime

    Hi,
    Can we assign search help at runtime depending on user input? I have s drop-down box, depending on user's choice, i need to siplay different values in the search help. Can I assign search help to the screen element during runtime???
    Please help.
    Thanks,
    Sheel

    No, but you can build F4 help on the fly at runtime based off another field.
    For example, in this program, the user enters the sales order number, and then when they do F4 on the line item, they can only choose from valid line item numbers.
    report zrich_0002 .
    parameters: p_vbeln type vbak-vbeln,
                p_posnr type vbap-posnr.
    at selection-screen on value-request for p_posnr.
      data: begin of help_item occurs 0,
              posnr type vbap-posnr,
              matnr type vbap-matnr,
              arktx type vbap-arktx,
            end of help_item.
      data: dynfields type table of dynpread with header line.
      dynfields-fieldname = 'P_VBELN'.
      append dynfields.
      call function 'DYNP_VALUES_READ'
           exporting
                dyname               = sy-cprog
                dynumb               = sy-dynnr
                translate_to_upper   = 'X'
           tables
                dynpfields           = dynfields
           exceptions
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                invalid_parameter    = 7
                undefind_error       = 8
                double_conversion    = 9
                stepl_not_found      = 10
                others               = 11.
      read table dynfields with key fieldname = 'P_VBELN'.
      p_vbeln = dynfields-fieldvalue.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = p_vbeln
           importing
                output = p_vbeln.
      select posnr matnr arktx into table help_item
                     from vbap
                          where vbeln = p_vbeln.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'POSNR'
                dynprofield = 'P_POSNR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = help_item.
    Regards,
    Rich Heilman

  • Dynamically assign Search Help to the field

    Hi All,
    I have creates one search help from se11 like zshlp. i m not assign this search help to the database field. bocz i used this search help at runtime. so how can i assign this search help during execution time of my program. 
    Reward for helpful answer.
    THANKS & REGARDS,
    SAHIR

    Hi Sahir,
       Creating dynamic search help means the f4 help will come on the context bases.
    that will achieved with function module
    1. F4IF_INT_TABLE_VALUE_REQUEST  : Display internal table as search help (documented in SAP)
    *---Report with selection screen and to display the list of
    possible entries for field 'B' as per the value in field 'A'.
    REPORT ZTEST_F4HELP .
    parameters: p_vbeln type vbak-vbeln,
    p_posnr type vbap-posnr.
    at selection-screen on value-request for p_posnr.
    data: begin of help_item occurs 0,
    posnr type vbap-posnr,
    matnr type vbap-matnr,
    arktx type vbap-arktx,
    end of help_item.
    data: dynfields type table of dynpread with header line.
    dynfields-fieldname = 'P_VBELN'.
    append dynfields.
    call function 'DYNP_VALUES_READ'
    exporting
    dyname = sy-cprog
    dynumb = sy-dynnr
    translate_to_upper = 'X'
    tables
    dynpfields = dynfields
    exceptions
    invalid_abapworkarea = 1
    invalid_dynprofield = 2
    invalid_dynproname = 3
    invalid_dynpronummer = 4
    invalid_request = 5
    no_fielddescription = 6
    invalid_parameter = 7
    undefind_error = 8
    double_conversion = 9
    stepl_not_found = 10
    others = 11.
    read table dynfields with key fieldname = 'P_VBELN'.
    p_vbeln = dynfields-fieldvalue.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    importing
    output = p_vbeln.
    select posnr matnr arktx into table help_item
    from vbap
    where vbeln = p_vbeln.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'POSNR'
    dynprofield = 'P_POSNR'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    value_org = 'S'
    tables
    value_tab = help_item.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Search help paramter to be filled during runtime

    Hi Experts,
                      I have a requirement to create a search help, below is the description of my requirement....
    1. I have two search help parameters in the search help.
         Division         (1st parameter)
         Divistion text  (2nd Parameter)
    2.When the user provides the Division, then Division text parameter has to be filled automatically during the runtime. Logic needs to be handled only in the Search help exit(Function module) .
    Kindly provide your valuable suggestions regarding this requirement. Contributions will be highly appriciated. Thanks
    Regards,
    Laxman.P

    Hi
    Check this link fuller.mit.edu/tech/search_helps.ppt
    In your search help exit, in events SELECT and DISP, manipulate the values in the table SHLP with your new field.
    For example
    IF callcontrol-step = 'SELECT'.
    SHLP-INTERFACE-SHLPFIELD = 'DIVISIONTEXT'.
    APPEND SHLP-INTERFACE.
    SHLP-FIELDDESCR-FIELDNAME = 'DIVISIONTEXT'.
    SHLP-FIELDDESCR-LANGU = 'E'.
    SHLP-FIELDDESCR-POSITION = '0002'.
    SHLP-FIELDDESCR-DOMNAME = 'ZDIVISIONTEXTDOMAIN'
    .etc(all relevant fields)
    APPEND SHLP-FIELDDESCR.
    MODIFY SHLP_TAB FROM SHLP.
    ENDIF.
    Regards,
    Deepa.

  • Find collective Search Help for partner function at runtime

    Hi experts,
    I have a screen very similar to VF05. When I enter the partner function, the corresponding field for the partner function, I want a collective search help to open.
    If I enter the partner function - Employee responsible, then the search help PERM has to be called or for partner function Payer, I want the search help DEBI to be called. Can anyone let me know how can I get the related partner functions, without hardcoding for every partner function. Something similar to the VF05 report.
    Warm Regards,
    Abdullah

    Hi,
    Collective search helps:- Combination of elementary search helps. When we need to fetch data based on multiple selection criteriau2019s. More than one tables are Selection from multiple tables
    Steps for creating collective search help.
    1) Enter the search help name and click on create.
    2) Choose Collective search help radio button option as the search help type.
    3) Enter the search help parameters.
    Note that there is no selection method to be entered for a collective search help.
    4) Instead of the selection method, we enter the included search helps for the collective search help.
    5)We need to assign parameters for each of the included search helps.
    6) Complete the parameter assignment by clicking on the push button.
    7) Collective search help offers the user to obtain F4 help using any of the included search helps.
    Hope this helps u.
    thanks

  • One search help for multiple select-options in webdynpro abap

    Hi,
    I need a way to use one search help for multiple select-options fields. My scenario is :
    I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
    If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
    If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
    I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
    I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
    However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
    I think I won't be able to use this way. What do you say?
    As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
    MY TABLE (ZBYYT080) CONTENTS:
    SID     VARBL     VALUE     LANGU     VTEXT
    ADS     $WERKS     1     T     Werk 0001
    ADS     $WERKS     11     T     OZYAS  GIDA URETIM YERI
    ADS     $WERKS     5501     T     BOYA GEBZE FABRİKASI
    ADS     $WERKS     5502     T     BOYA CIGLI FABRİKASI
    AGT     $WERKS     2301     T     KAMLI DAMIZLIK
    AGT     $WERKS     9601     T     PANAR DENIZ URETIM YERI
    ADS     $VKORG     22     T     AA KİMYASALLAR
    ADS     $VKORG     8001     T     İINSAAT BOYALARI
    AGT     $VKORG     6500     T     DAMk St.Org
    AGT     $VKORG     5400     T     PANAR St.Org.
    I wish I'm clear enough..
    I will be gald if someone answers me as soon as possible...
    Thanks İn advance..
    MERAL

    Hi,
    Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
    Am I right ?
    If Yes, then in the interface IF_WD_SELECT_OPTIONS
    method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
    have importing param like I_VALUE_HELP_TYPE and  I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
    etc which may help you to link your create DDIC Search help to selection screen params.
    this is just a clue from my side. I haven't tried it myself.
    You can go to the where used list of this method and find some sample implementations which use these params.
    Hope this helps.
    Regards
    Manas Dua

  • Using Search Help with ALV and Dynamic context node

    The topic subject already describes my situation.
    I have to create, populate and remove context nodes at runtime, and bind them to an ALV, to let user display the data or modify the data. The nodes I create are always typed with a table name, but the table name is of course, dynamic.
    This is all working: what's not working is help for entries inside the ALV; since the table has foreign keys and domains with check tables or fixed values, I expected that search helps were detected and managed by the framework.
    Instead, no help search is displayed except the input help based on data-type of the one "Date" input fields.
    I think I have to work on the dynamic node creation, and not on the ALV itself, since the latter only takes the node/attributes information, but i could be wrong. I tried with both the two following codings:
      CALL METHOD lo_nd_info_root->add_new_child_node
        EXPORTING
          static_element_type          = vs_tabname
          name                         = 'SAMPLE_NODE_NAME'
    *    is_mandatory                 = abap_false
    *    is_mandatory_selection       = abap_false
         is_multiple                  = abap_true
         is_multiple_selection        = abap_false
    *    is_singleton                 = abap_false
          is_initialize_lead_selection = abap_false
          is_static                    = abap_false
        RECEIVING
          child_node_info              = lo_nd_info_data .
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
          parent_info = lo_nd_info_root
          node_name = 'SAMPLE_NODE_NAME'
          structure_name = vs_tabname
          is_multiple = abap_true ).
    The result is the same...is there any way to let the ALV know what search helps it has to use, and doesn't force me to manually build a VALUE_SET to be bound on the single attributes? There are many tables, with many fields, and maintaining this solution would be very costly.

    I have checked with method GET_ATTRIBUTE_VALUEHELP_TYPE of interface IF_WD_CONTEXT_NODE_INFO, on an attribute which i know to have a search help (Foreign key of a check table).
    The method returns 'N', that is the constant IF_WD_VALUE_HELP_HANDLER~CO_VH_TYPE_NO_HELP. So, the framework was not able to find a suitable search help.
    Using method GET_ATTRIBUTE_VALUE_HELP of the same interface, on the same attribute, returns me '111', which is constant C_VALUE_HELP_MODE-AUTOMATIC.
    Therefore, the WD framework knows it has to automatically detect a value help, but fails to find one.
    Also, this means in my opinion that the ALV and the dynamic external mapping are not the culprits: since node creation, no help is detected for any attribute but the date. Honestly, I don't have a clue on what's happening.

  • Re: Search Help for Standard field in a Standard Component

    Dear Experts
    i enhanced  a standard screen with one inputfield and mapped a context attribute(The attribute is also standard one which doesnot have search help) my requirement is to assign a search help to the context attribute so that at runtime the user can click on the search help and the value will be passed to backend for processing.
    i tried it with dynamic programmin but im getting null access error,
    Experts please guide me to set a dynamic search help to the standard context attribute.
    Regards
    Arun.K.P

    Hi Friends,
    I solved the issue this is the solution
    DATA lo_nd_location_data TYPE REF TO if_wd_context_node.
    navigate from <CONTEXT> to <ACCOUNT_DETAIL> via lead selection
    lo_nd_location_data = wd_context->path_get_node( path = `LOCATION_DATA` ).
    lo_nd_location_data = wd_context->get_child_node( name = wd_this->wdctx_location_data ).
      DATA lr_node_info TYPE REF TO if_wd_context_node_info.
      lr_node_info = lo_nd_location_data->get_node_info( ).
      CALL METHOD lr_node_info->set_attribute_value_help
        EXPORTING
          name            = `COMPANY_CODE`
          value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC
          value_help      = 'BBP_LOCATION_VALUE'.
    Best Regards
    Arun.K.P

  • Search Help displaying description but returning ID

    Hi All,
    I have a textbox in web dynpro showing description (from table "Description" ) in a textbox after user selected some value from its search help.
    The issue is, instead of description shown (which is correct), I want to process the value selected using its ID (from table "ID").
    Both tables have child-parent relation.
    Unfortunately, both "ID" and "Description" are not key. The keys for both table are GUID (another field).
    Any suggested solution ?
    TIA,
    Tony

    Hi Tony,
        In your search help try using index.
        You can use the index number to select the value.
        I have some sample code, you can use this as per your requirement.
    METHOD add_data .
      DATA : lt_urls TYPE if_main_view=>elements_drp_text.
      DATA : lr_element      TYPE REF TO if_wd_context_node.
      DATA :     url             LIKE LINE OF lt_urls.
    Supply data for the node at runtime
      REFRESH lt_urls[].
      DO 5 TIMES.
        url-key = sy-index + 1 .
        CONDENSE url-key.
        CONCATENATE `www.` url-key `.com` INTO url-url.
        INSERT url INTO TABLE lt_urls.
      ENDDO.
      lr_element = wd_context->get_child_node( 'DRP_TEXT' ).
      lr_element->bind_table( lt_urls ).
    ENDMETHOD.
    Hope this will help you.
    Cheers,
    Darshna.

  • Is it possible to make a search help with dynamic  selection table?

    Hi Experts,
    Is it possible to create search helps with dynamic seletion tables means
    i dont know the selection table names at the time of creation of search help.
    These tables will be determined at runtime.
    if yes, Please give an idea how to create and pass the table names at runtime.
    Thanks
    Yogesh Gupta

    Hi Yogesh,
    Create and fill your itab and show it with FM F4IF_INT_TABLE_VALUE_REQUEST
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'field to return from itab'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'field on your screen to be filled'
          stepl           = sy-stepl
          window_title    = 'some text'
          value_org       = 'S'
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    Darley

  • Attaching Search helps dynamically to an attribute

    Hi ,
    I have a requirement where I would like to attach search help to an attribute dynamically in WD ABAP .
    Is it possible to attach a search help with respect to some condition dynamically at runtime .
    Best Regards
    Sid

    Hi Thomas,
    My scenario is as follows:
    I have a table control with around 5 columns. The first column has a F4, based on the value selected there the F4 attached to the second column needs to change dynamically. Eg: Initially the F4 attached initially is /kyk/h_ctr and then it should get changed to /kyk/h_order.
    These columns are mapped to Component Controller attributes.
    Based on your reply yesterday I implemented the same in one of my view methods. The value does get changed but it doesn't reflect in the front-end, it still shows the initially attached F4 instead of the new one. What else do I need to do?

  • Handling the search help exporting parameters.

    Hi all,
    I am using a search help for an input field.My requirement is that on the selection of a row in the displayed result for search help two other fields needs to be populated in the UI , which actually are the exporting parametrs of the search help.I mean to say how to handle the exporting parameters of a search help so as to populate other input fields in the UI.

    This is possible with the DDic Search help.  From the online help:
    If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
    If the context node is not mapped to the structure, the data element's input help can be used if there is one.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm

  • WD ABAP - Search help using Selection-options

    Hi Experts
    i am using interface IF_WD_SELECT_OPTIONS method  ADD_SELECTION_FIELD for filling the selection parameters
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
      i_id = '/DMF/EXT_PROD_ID'
      it_result = lt_range_table
      i_read_only = read_only
    *I_HELP_REQUEST_HANDLER = lt
        i_value_help_type = 'SEARCHHELP'
        i_value_help_id   = '/DMF/PROD_SHLP' ).
    I would like to like to pass the importing parameter to '/DMF/PROD_SHLP'
    Is it possible through this interface .
    thnks in advance

    I assume this is a data dictionary based search help.  You can't pass the importing parameter directly into the field creation.  Data Dictionary Search Helps get their importing parameters from their relationship to other attributes in the same context node automatically. 
    This is from the online help:
    If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
    If the context node is not mapped to the structure, the data element's input help can be used if there is one.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm

  • SVS, EVS, and OVS, Value Help and Search Help

    what and how to use SVS, EVS, and OVS, Value Help and Search Help  in abap webdynpro...Can anyone please give example link or document...As i am able to get on ovs but unable to get rest of other

    SVS and EVS are Web Dynpro Java specific types of value help.  They do not exist in Web Dynpro ABAP.  In Web Dynpro ABAP we have Data Dictionary based Search Help, OVS, and Freely Programmed Value Help.  In WDA 7.02 we have the slight variant on DDic Search Help called Suggest Values.  It doesn't change the development model, just the runtime user experience. 
    You can read more about each of the types of WDA based value help in the online help:
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/47/9b298c66eb3376e10000000a421937/frameset.htm

  • F4 help throws runtime error CREATE_DATA_UNKNOWN_TYPE   in IC webclient

    Hi All
    I am facing runtime error while clicking on f4 help in IC webclient.
    <crmic:inputField id               = "IfAddPartnerId"
                            width            = "100%"
                            maxlength        = "12"
                            value            = "//Partner/PARTNER_ID_ADD"
                            helpId           = "CRM_VENDOR_NUMBER"
                            helpInputFields  = "IfAddPartnerId=VENDOR_NUMBER;\'<%=
                                AdminI->GET_GUID( attribute_path = '' ) %>\'=GUID;\'<%=
                                AdminI->GET_ORDERED_PROD( attribute_path = '' ) %>\'=ORDERED_PROD"
                            helpOutputFields = "IfAddPartnerId=VENDOR_NUMBER"
                            disabled         = "<%= lv_add_disabled %>"
                            tooltip          = "<%= otr(crm_ic_appl/bupaaccount) %>" />
    I can see in debugging that control is going to search help FM : CRM_VENDOR_NUMBER_SHLP_EXIT
    Search help id is  : CRM_VENDOR_NUMBER.
    Exception CREATE_DATA_UNKNOWN_TYPE  is being thrown in the SET_TABLE_VALUES method of the class : CL_CRM_IC_F4_HELP (line 18) . I feel that GV_VIEWNAME is not initialized till this point.
    Can anybody please help me to remove the error.
    Best Regards
    Bhavishya

    Hi,
    Please let me know the BBPCRM package level.
    Feel free to revert back.
    --Ragu

Maybe you are looking for