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.

Similar Messages

  • Search Help : brief description of what is it possible

    Hello,
    I need some helps about search helps with abap webdynpro. I understand with little test that automatic option and search help option have some difficulties ... Integration with DDIC and webdynpro is difficult, I understand, so my questions are...
    - I have a easy requirement : a search help that displays a code from table and the description coming from text table. What is the best way to do it ? OVS ? Specific Component ? It is possible with dropdowbykey to display the code and a text whe we select it ?
    - Other little question : Anybody knows a good cookbook for OVS implementation ?
    I would like to implement these requirements by an easy workaround.
    Thanks all for your answer and I hope this question helps other persons with the same requirement...
    Best regards

    Hi,
    If you want to have only codes in search help, then for the context attribute associate the structure field which has check table associated to it. Then the framework will bring the values from check table, automatically. You can check if the check table is associated to attrbite by checking input help mode property of context attribute.
    But if you wanto have text table values (text and values), then one option is to create the search help and associte it to the context attribute by using the property Dictionary search help.
    Another way is to have OVS if you do not want to create new search help, some documentation for OVS:
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/30/d7fa41c915da6fe10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/30/d7fa41c915da6fe10000000a1550b0/frameset.htm</a>
    An example for OVS is WDR_TEST_OVS.
    Best regards,
    Suresh

  • Restrict dictionnary Search help displayed values.

    Hi,
    my problem is that I have to display a search help. The search help already exists in the dictionnary and is defined using a Dictionnary Table.
    I need to display the same serach help but I have to filter the results using a range of values for one of the fields and I would like to know how to proceed.
    I know that user-exit exists in some search help, it's not the case here.
    The kind of solutions I'm looking for is :
    -  directly restrict the existing search hellp values
    -  found a way to display a search help from abap using an internal table ( cause it's easy in this case to do fill a internal table doing the sql request myself)
    - if the solutions above can't apply, doing my own search help in the dictionnary but in this case, I don't know to make this search help for values restriction.
    I specify that the screen use the screen painter, it may be important ?
    Thanks for your help
    best Regards,
    Morgan

    Hi,
    Search Hels exits is only for exceptions, so in our case, we won't use the search help exits, it is better create/change the Custome one and attach the same to the fiels, there you can give the Default value for the fileds, so there you can restrict the values
    or else, we have an option like, APPEND SEARCH HELPS, so by using this, we can restrict some field values, this Append Search helps, can be append to Standard Search helps also, so do Append the Standard Search help and add your field and give the Default values to restrict the user
    hope you get the answer
    Regards
    Sudheer

  • Search Help - No of entries returned

    Hello ,
    I am working on a search Help exit and noticied that  even we change the Value assigned to Parameter " Maximum no of Hits"  to 9999 system brings backonly 1st 5000 entries. Somehow SAP is controlling that. I tired to change CALLCONTROLL-MAXRECORDS TO 5000 in Debug Mode also but still get's only 5000 entries.
    anyone knows about a OSS note or something written somewhere in R/3 Library about this limitation.
    Thanks
    L

    Hi Lakhbir,
    Check the Note "Note 172687 - Collective note: search help control".
    Restrictions on the length of the hit list
    The number of the entries that the search help control
    displays on its hit list is limited to a sensible number
    of entries for a search help (5000).
    Increasing the length of the hit list causes serious
    performance and stability problems in the control
    used for displaying. If you need a hit list with more
    than 5000 entries switch to the usual search help
    frontend:
    Switching between R/3 dialog and ActiveX support
    It is possible to toggle the support of the search
    help by the search help control according to your needs.
    To do this there are three setting options:
    Search help with ActiveX - support
    Search help without ActiveX - support
    System settings
    The system settings are valid for all clients and
    are defined by the administrator. To do this, the
    administrator profile must contain the
    authorization object 'S_ADMI_FCD' and
    the ID 'S_ADMI_FCD' with the 'F4MX' FIELD.

  • Query Designer&WAD: Variable search help - Display Key/Text button

    Good day.
    Please, can you write me some solution of my problem.
    I have the character with hierarchy.
    In tab "Business Explorer" of character set display as "Text".
    When i run my query on SAP Portal and enter to search help of character, it is displays text of my ZCHARACTER(not key and text). But name of levels(0HIER_BODE) display key and text... (NODENAME and TEXT).
    When i run query in BEx Analyzer, in search help all correct. My ZCHARACTER and 0HIER_NODE displays only text.
    When i press tech button "Display Key/Text", a see marked "Text". I cannot find the same button when run search help in Query Designer, WAD(or Portal).
    How can i display only texts of 0HIER_NODE? But no [Key] Text.
    Thank you for answer.
    Regards
    Update. Can be usefull:
    View table RSDVDPA with key DPNAM='0HIER_NODE' consist field CHAPRSNT with value = '0' (Key and Text).
    When i change value of table
    UPDATE RSDDPA SET CHAPRSNT = '4'
      WHERE DPANM   EQ '0HIER_NODE'
        AND objvers EQ 'A'.
    All works correct!
    Change this value directly not correct. I think, that it is change of value of parent character. But when?

    I have created own 0HIER_NODE character - ZNODENAME.
    Only root node infoobject is 0HIER_NODE. All another - Z.
    Thanks! ^)

  • Search help - Display only 500 entries at one time from Internal Table

    Hi,
    I have an internal table with 1000000 entries. And when I use F4IF_INT_TABLE_VALUE_REQUEST function module to display the search help with internal table, it gives me dump. Can somebody help me - how to display limited values when we process search help?
    Thanks,
    Sheel

    Hi Sheel
    u have a variable callcontrol-maxrecords in search help exit to limit the number of records.. check my weblog for more help: https://wiki.sdn.sap.com/wiki/x/du0

  • JcomboBox How display names, but return ids?

    I am implemeting a combobox from a table (id, name). I want display the names, but when the user select a item, I want to get the id corresponding to the name selected
    How i make this?

    Search the forum for my "Combo Box Item" (without the spaces) example.

  • Search help displayed in webgui mode

    In SRM I have create e new service. In this services i have created the template SEARCHHELP.HTML.
    But when I click on search icon, start the webgui template. In template I use the "macro" F4HelpButton.
    Help Me!!

    Please explain your problem clearly.
    From whatever you have mentioned on this ste i cold gather following:
    1. You created a new template
    2. You want F4 help feature in that 'Z' template
    3. You wrote some macro but you are not getting the F4 help.
    Is this the correct understanding of the situation?
    If yes, please following:
    1. Have you setup a separate RFC for F4 help?
    for reasons (just know to SAP developement team only), you need to define separate RFC for pulling the F4 help from backend system
    If you have not done that, then you would not see F4 help.
    Please advise if this solves your issue.
    If this is not your issue then pplease explain in more details please
    regards
    rahul

  • Display description, but non-updatable data block

    To display my Item_Description, I've created a post-query trigger to lookup Item_Description based on Item_Num, which works fine, except if the user does not have update priveledge. By default the data block is non-updatable. If the user has update, then the block is set updatable at run-time.
    Problem is, for a non-update priveledge user, the form errors when the trigger attempts to set the description field. [Even though the field is set updatable by default.]
    What am I missing? Thanks.

    I'm confused. You say:
    "By default the data block is non-updatable."
    but then you say:
    "...the field is set updatable by default."
    If the data block is not updateable, then you can't make the item updateable.
    Assuming the default is non-updateable, and a user does not have update privilege, then the error message you are getting is correct because the trigger is trying to do an update when the item is non-updateable.
    If you need the trigger to do an update, then you need to make the item updateable. If you don't want the trigger to do an update for this user, then first check if the item is updateable (use the get_item_property), and if it is updateable, then let the trigger do the update.
    Message was edited by:
    Mark Roberts

  • Extra fields in search help window in Record working time EHP5

    Hi Experts,
    Can you please let me know how to add additional fields/select options in search help window for Record Working Time ?
    My system is EHP5 NW 7.02
    I have added the custom search help for the respective filed in table " TCATS_SHLP_ITS".
    I can see this table is having entry for only 4 selection options and 6 value fields for search help display.
    But in my custom search help programme is having 8 select options(for advance search) and 10 display fields on the search window. It's working from CAT2 transaction but when I am running through webdynpro timesheet, I can only get 4 select options and 6 value fields.
    Please let me know how to make the other fields available.
    Thanks in advance.
    Sonia

    Hi Siddharth,
    Thanks for your response. In that modify possible entries screen (Details view) I can see the search help is only having 4 select options and 6 display fields.
    So as per my understanding max 6 display fields/4 select options can only be displayed on search window.
    My requirement is to display more fields on search help OVS window.
    Can you please suggest.
    Thanks ,
    Sonia

  • Z search help cannot be returned.

    Hi all,
    I have redefined the method GET_V_TAXTYPE:
          DATA:
            ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
            lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
            lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
          ls_map-context_attr = 'STRUCT.TAXTYPE'.
          ls_map-f4_attr      = 'KEY'.
          APPEND ls_map TO: lt_inmap, lt_outmap.
          ls_map-context_attr = 'STRUCT.DESCRIPTION'.
          ls_map-f4_attr      = 'VALUE'.
          APPEND ls_map TO: lt_inmap, lt_outmap.
          CREATE OBJECT rv_valuehelp_descriptor
            TYPE
              cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id                  = 'ZCL_SEARCH_HELP_TAXTYPE'
              iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback
              iv_input_mapping            = lt_inmap
              iv_output_mapping           = lt_outmap
              iv_object_ref               = me
              iv_trigger_submit           = abap_true.
    And create a new class ZCL_SEARCH_HELP_TAXTYPE to fill my search help:
      DATA: ls_ddlb         TYPE shsvalstr.
      ls_ddlb-key = 'BR1'.
      ls_ddlb-value = 'CNPJ'.
      APPEND ls_ddlb TO ct_results_tab.
      ls_ddlb-key = 'BR3'.
      ls_ddlb-value = 'Inscrição Estadual'.
      APPEND ls_ddlb TO ct_results_tab.
      ls_ddlb-key = 'BR4'.
      ls_ddlb-value = 'Inscrição Municipal'.
      APPEND ls_ddlb TO ct_results_tab.
      MOVE 'Tipo' TO ev_key_title.
      MOVE 'Denominação' TO ev_value_title.
    But when i selected the value on search help the value cannot returned to the field, what is wrong?
    Thanks,

    Hi,
    I guess you do not have any problem with the search help. It is getting displayed properly, right?
    You just cannot populate the value selected in the search-help to your UI field. Isn't it?
    If that is the case then insert the following code in the GET_P method of your attribute:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.
          IF owner->view_in_display_mode( ) = abap_true.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_text.
          ELSE.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
          ENDIF.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'SELECTED'.
      ENDCASE.
    This will trigger the event SELECTED when you click on the value help entry.
    Then you can write code in your view cotroller method EH_ONSELECTED to set the entry to your attribute.
    Regards
    Prasenjit

  • Search help to return multiple values

    Hi all,
    I've created a search help and I'd like it to return several values to different fields, I don't want these fields to be seen on the selection screen.
    For example:
    1. User clicks on search help for FIELD1 and selects a value from the pop-up box
    2. Program populates FIELD1 depending on the user selection
    3. Program also populates FIELD2 and FIELD3 which can be used in the program at a later date.
    I can do 1 and 2 but I'm having an issue with 3.  I've tried selecting all fields in the search help as Export, but although that populates the fields in the search help test facility, it doesn't know which fields I want it to populate in my program.
    I've also tried using FM F4IF_FIELD_VALUE_REQUEST but can only get this to return one line in table RETURN_TAB.
    The screen fields are declared as:
    PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP,
                             FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                             FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.
    Any help is appreciated.
    Gill

    Thanks for your suggestion but what I failed to put in my original post was that FIELD1 is a description field and FIELD2 and FIELD3 are the actual key fields for the table which I need.
    So, I can't do your suggestion of populating them based on FIELD1, I need to know which line the user selects to populate these key fields as FIELD1 may not be unique within the table.
    Does that make sense?
    That's why I wanted the search help to return all 3 values then I can populate FIELD2 and FIELD3 from that.

  • Records not displayed in the WGBEZ field in H_T023_MEPO search help.

    Hello Friends,
    I have created the search help exit , in that based on the LREF3 , we have to fetch the materail groups.
    1.I have written the code in the exit , in the search help exit tables parameter record_tab , the data is coming correctly
    but when we run  search help, the description field is not getting displayed.
    I have shift 2-3 places left side as well but the description is not displayed correctly.
    So how can we get the description field filled.
    2. We want that the LREF3 field should come in the selection screen of the dialog box, so that user can enter the values in it.(dialog with value restriction) so i have added LREF3 field in the search help parameters but i want that
    this field should not be displayed in the results of search help . Only materail group and its description gets displayed.
    So can we achieve the same.
    Thanks to provide answers for my above two questions.

    Hi
    Please go through the related pointers ->
    The OSS note 672960 has already indicated you need to use BADI to address it.
    For Search criteria
    You can also use user-defined fields as search criteria. To do this, you have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN. The fields defined this way are displayed if you choose the 'Extended search' link.
    Re: Custom field in Create Bid Invitation..
    Re: Search Help for Purchasing Group..
    Re: urgent help request - How to add custom fields to  header BID.
    Re: New Screen with table control information in Process Bid Invitation
    Do let me know.
    Regards
    - Atul

  • How to set displayed column width for a search help

    I have created an elementary search help for a custom field with a value table behind it.
    The search help functions correctly, but when displayed the column widths are all 10 characters. The user has to adjust the column to view the descriptive text.
    Can anyone tell me how to set default column widths for the help?

    Please  open you Elementary search  help  and see the Column  width   behind the Fields of your ...there  increase the width of the fields
    "Activate it  and refresh
    reward  points if it is usefull .....
    Girish

  • Return multiple values from a search help

    Dear All,
    I have a table control on screen with fields:
    doc.no
    doc.type
    doc.ver
    doc.part
    I've coded a search help for doc. no. which returns a single value i.e. doc. no from the search help.
    But my reqmt. is that when the user selects a particular doc.no from search help, it should also return doc. type/ver/part
    and the corresponding table control field should be populated.
    I mean i require multiple values to be returned and populated in my screen.
    Thanks in anticipation

    Hi ,
    Please check this thread where i had done some coding and the OP himself has found the solution
    automatic population of search help value to another field in module pool ... if its a table control you have get the selected line by  using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE.

Maybe you are looking for

  • Photo and video

    My ipad2 can not play .mov movie file when I transfer them via memory card reader from my camera? Very disappointing that was the only reason I bought my iPad 2 to have my photo and video on my iPad. Photo is no problem but too small when you want to

  • Sync log file error message

    i have a .lml file from my previous n81. i could open it using the pc suite before after trying serveral ways. but now it prompt me an error "the opening <logml > tag is not found" i need to open up the file urgently. can anyone advise?

  • How long does lion OS take to install?

    I downloaded Lion OS two days ago and my MacBook is still showing the spinning wheel after  36 hours.  Any idea how long it takes to install Lion OS 10.7.2? Javapie3

  • Unable to "double-click"

    After having issues with Leopard and FCP, I downgraded back to Tiger but now I am unable to use my double click feature, as well as the "right click" feature on my touch pad. Therefore I am unable to open my links in new tabs or save pictures, etc. I

  • Problems printing to shared Epson AL-1100 Laser

    I have an Epson Laser shared from an OSX server running 10.4.10. When sharing a printer in this way the print dialogue at the Tiger client does not include any of the 'Printer Settings' options. To give users the advanced settings they need for featu