Search help - DDIC

Hi Folks,
My Scenario is :
I Have a table with 3 columns with associated context node (3 attributes) which referes to a Dictionary structure.
I have created a Seachhelp and associated it to the first attr' which gets back a popup with 3 columns, Now when I select any from here it should reflect back those values to the corresponding fields in to this table, i.e, 3 col's should fill with the respective data from the Popup fields.
How can I do it ?

Hi,
I meant it was the easiest way (in wda)
else you need to define the searchhelp on your structure, with the export parameters
set to your structure elements, in your node use this structure as ddic type,
then the fields should be supplied with the values
(make sure the structure definition and search help binding of the parameters is done correctly)
grtz,
Koen

Similar Messages

  • How to replace a field's search help of DDIC in FPM feeder class?

    Hi All,
    I want to replace a field's search help in DDIC structure, for an example, in structure HCMT_BSP_PA_XX_R0009, the field BANKL(Bank Keys) has a search help named 'H_BANKL', I want to replace this search help with other one such as 'H_BANKEY' in the FPM feeder class CL_HRESS_PER_DETAIL, I redefined such method:
    method if_fpm_guibb_form~get_definition.
    field-symbols: <fs_field_description> like line of et_field_description.
    call method super->if_fpm_guibb_form~get_definition
    importing
    es_message = es_message
    eo_field_catalog = eo_field_catalog
    et_field_description = et_field_description
    et_action_definition = et_action_definition
    et_special_groups = et_special_groups
    ev_additional_error_info = ev_additional_error_info.
    read table et_field_description assigning <fs_field_description> with key name = 'BANKL'.
    set search help name of field 'bank key'
    if <fs_field_description> is assigned.
    <fs_field_description>-ddic_shlp_name = 'H_BANKEY'
    endif.
    endmethod.
    I test it and found the search help window was replaced indeed, but all the value of import/export parameters in the new search help was lost, it means, the value of import paramer BANKS(Bank country) and the export parameter BANKA(bank name) were lost. Only the value of BANKL itself can be returned by the new search help window. Can you give me some suggestions about how to maintain the link( value exchange) between structure HCMT_BSP_PA_XX_R0009 and dynamically defined search help 'H_BANKEY' in FPM feeder class?
    I tried to use sap memory ID but it doesn't works well.

    This question was answered at [Webdynpro Forum|how to replace a field's search help of DDIC in FPM feeder class?;:
    That is because for the import and export of DDIC Search help values to work in WDA, not in FPM layer.Feeder Class can do nothing about it.

  • Calling DDIC search help

    Hello
    Is it possible to call a DDIC search help within a WD application without binding it to an input field. We are looking for a way to call a search help on a button pressed event.
    Regards, Mathias

    Hi Mathias,
    Using CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP is a very easy solution to this problem but, you are advised  not follow this approach of using this class & method as they may be stopped at any time by SAP.  All the classes which start with CL_WDR* are meant for internal use by SAP and are not meant for use by customers. We are supposed to use only classes which start with CL_WD*. Try go through this [thread |CALL SEARCH HELP IN WEB DYNPRO;which deals with the same same issue.
    You can try resolve this problem by creating an [Freely Programmed Value Help|https://wiki.sdn.sap.com/wiki/display/WDABAP/Freely%2bprogrammed%2binput%2bhelp] & when you press on the pushbutton you can call this search help. You can try go through this [thread |freely programed F4 help;where I have explained about how you can create an Freely Programmed value help.
    Regards,
    Uday

  • Howto limit options in search help for DDIC element LANGU (language)?

    Hi all,
    in my application I have an input field for a language parameter. Of course the standard search help (F4) opens a popup with all possible languages (registered in system). Now I want to limit these languages in the popup to only a few I want.
    Is it possible to programmatically do this in ABAP, or do I have to copy the DDIC element and create an EXIT for the search help?
    Thanks in advance for your help.
    Kind regards, Matthias

    Matthias F. Brandstetter,
    You can do search help in 2 ways.
    1.
    You can copy existing one and make changes to that and add that to the field for which u want to.
    2.
    check the search help which tables are being used.if you know the tables , u can write search help using ABAP.
    Check the procedure.
    1.F4 help for field on the screen.
       Event used.
      PROCESS ON VALUE-REQUEST.
      FIELD P0016-ZZ_CONTR_TYP module f4_for_contr_type..
    2.F4 help for field on selection-screen.
      Event used
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FIELD p_contr_type.
      g_progname  = 'MP001600'.
      g_scr_num   = '2000'.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = 'ZHRPAE_CONTRTYP'  "--> Field on F4 popup window
          dynpprog        = g_progname
          dynpnr          = g_scr_num
          dynprofield     = 'P0016-ZZ_CONTR_TYP' "--> Field on the screen
          value_org       = 'S'
        tables
          value_tab       = i_zhrpat_contrtyp1 "-->Data that is displayed on F4 help
          return_tab      = i_ret_values           "-->This contains selected record 
                                                                   properties
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else .
    " Read table i_ret_values with index 1.
        read table i_ret_values into w_ret_values index 1.
        p0016-zz_contr_typ = w_ret_values-fieldval.
    endif.
    I hope that it helps u .
    Regards,
    Venkat.O

  • 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

  • Custom search help in sap field in standard transactions.

    I have a requirement that I have to add a custom search help in XREF2 of bseg table either in fb02-f-43.
    For FB02.
    Display document.
    Select a Line Item.
    Go to Additional Data tab in menubar,a pop-up will come, where we will get the Reference1 fields .
    My requiremnt is to add a custom input help having 3 constant values.
    For F-43.
    Give account , date etc in first screen.
    Go to next screen give the amount.
    Go to more data will get the fields in left side-no pop-up will come.
    Help needed

    hi, Jkuma,
    we met the similar situation with you while developing a anpplication form for HR.
    our conclustions are:
    1. it's not feasible to put all the data into the form, it will make the form too big and slow, so it must be a online interactive form
    2. you may put a search field to let the user to input some kind of criteria and do the search on the r3 side and return the hit list on the form , but it's not so easy to develop a table control on the form using javascript to get the selected one.
    3. so we built a 'selection screen' , using webdynpro for abap,
    it will show up before the form, while can use ddic search help, to make the selection, then put all the selected entries into the adobe form for further processiong.
    how this is helpful hint for you.
    br.
    jun

  • Search Help for input field2 based on value entered in input field 1

    Hi All,
    I have a requirement where in my view, i have two fields.
    1. PO
    2. PO Item
    For PO i could get the standard search help from DDIC, but i need to provide search help for PO Item based on PO selected.
    How can i do that. Any help is highly appreciated.
    Thanks,
    Ajay

    Hi Ajay ,
    following steps cn help u :
    1 Declare the WDR_OVS Component in the used component list in your WD component .
    2  Now go to the View, in the Properties Tab click the Create Controller Usage Button.
    3 It will open a screen with Component Use Entries. There select the Component Use OVS with Interface Controller . Press Enter.
    4 Go to the Context Tab, Right Click the Context and select Create à Attribute , for PO item in ur case .
    5 In the Input Help Mode Field, Select u2018Object Value Selectoru2019 from the dropdown. Then press F4 in the Field OVS Component Usage.
    6 Declare one event handler method with Name ON_OVS in the Method tab of the view. Then Press F4 in the Column Event. 
    Select the Event OVS as shown below and Press Enter. 
    for more info and illustration , also refer :
    http://help.sap.com/saphelp_erp2005/helpdata/EN/30/d7fa41c915da6fe10000000a1550b0/content.htm
    https://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://wiki.sdn.sap.com/wiki/display/Snippets/OVSSearchHelpinWebDynproAbap
    regrds,
    amit

  • Search help for fields in custom table..

    hi,
    in my custom table i have two fields - table name and field name. when user selects table name as VBAP , for field names i need all the fields in VBAP to be displayed and for that I set the check table as DD03L and I am able to see all the fields. But i am not able to see the description of the fields rather seeing field name , other key fields of DD03L.
    How do i get to display something like
    field name - description - length (length of the field as defined in DDIC)
    If search help will help then can u pl tell me how to create one ? or any standard can be used ?
    thanks

    Yes, you need to create search help and assign it to the field 'field name'
    Please search SDN for how to create search help. There are 100's of threads with this
    By the way the texts can be found in table DD03T  for tables as well as for fields

  • How to Enhance search help for product groups. Currently no ability to add multiple lines from result list

    Hi All,
    In CRM Web UI,  there is no multi selection option for product group id f4 help for Custmer event creation or edit screen under  “Product” tab=> Product Group ID field.
    Web UI Component Details -
    UI component : TPMOE
    View : TPMOE/ProductEOL 
    Context: PRODUCT  Attribute : -PRODUCT_GRUOP
    Click on Product Group ID field then below F4 Help screen appears.
    In the product group results list, user can select only one row and Then all the product will be queried for selected product group, transferred to product list tab.
    Current technical design for Product Group F4:
    a) SE11 Data Dictionary search help “CRM_MKTPL_PGRP1”  is used and data is fetched displayed based it( Refer method GET_V_PRODUCT_GROUP of context node class CL_TPMOE_PRODUCTEOL_CN00)
    b) In UI, F4 pop up is handled by UI Framework in SAP generic manner so no multi selection is allowed.
    c) A round trip event is triggered after selection of row from results which reload view with queried product result based group selected.
    Requirement :-
    In the product group F4 results list View, user should be able to select multiple row .As SAP GUI has the option of multiple entry selection from search help window with the help of field called MULTISEL.
    System should query for products  with all selected product group, transferred to product list tab.
    Note: - The multi select options works fine for GUI, but for UI standard SAP code ignores this or never is this structure taken into consideration. Standard class to display F4 help on UI is CL_THTMLB_F4HELP.
    Can we enforce same behavior like DDIC search help in Web UI too  Or suggest how we can achieve this requirement?
    Thanks in advance
    Regards,
    Arjun

    Hello All,
    We have achieved this requirement by Custom development and approach followed as  -
    Define UI object model zprgrp & zprgrpquery and object relationship in table ZCRM_OBJTAB
    Query Strcuture : ZCRMST_PRGRP_SEARCH & Result List structure : ZCRMST_PRGRP_RESULT      
    Created Custom component : ZPRGRP with Search /Result view and with GENIL Class, search logic
    Defined custom ComponentUsage “ProductGroup1SearchHelp” for ZPRGRP in Standard Component TPMOE
    e.  Called F4 application for field product _group with help component usage created in step d.
    Regards,
    Arjun

  • Heading texts not appearing correctly in WDA search help

    Hello experts,
    I am facing a problem in WDA. I have a field(Profile Key) in my WDA application which takes the input search help automatically from the data dictionary. When I execute my application the F4 help is displayed for the field on pressing F4 but the problem is: the heading texts are not appearing properly(instead dots are dispalyed) for few of the fields in the search help's value list. Some observations:
    1. heading texts are not properly displayed for columns whose field length is 1 or 2.
    2. in DDIC, heading labels are maintained for the logon language
    3. same search help works fine in R/3, the problem is only with WDA
    How can I solve this problem? Please help with your inputs.
    Thanks,
    Yuvaraj

    The problem can be solved by applying the note no 1100420.
    Regards,
    Yuvaraj

  • 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

  • Change Search Help for Payment Terms Field

    Hi,
    I would like to change the Search Help for Payment Terms Field, in Customer Master (KNVV-ZTERM). and in Sales Document. I believe it is the same.
    Default is From Table T052 / T052U
    ZTERM  and TEXT1  Fields
    I would like to have
    From Table TVZBT
    ZTERM and VTEXT
    PayT    Own Explanation Field.
    Can we change the Search Help.

    Hi,
      The search help for the payment terms is not coming from the DDIC search help..
      It is coded in the process on value-request event...
      The function module FI_F4_ZTERM is called for this..you have to change this function module in case if you want the values from a different table..
      OR do implicit enhancement in the subroutine FORM HELP_ZTERM in the include MF02DFH0 to call your search help instead of the function module FI_F4_ZTERM ..And do the same for the sales order also..
    Thanks
    Naren

  • SAP Search help in Adobe forms

    Hi ,
    Can any one help out by mentioning the steps to capture details using webdynpro with search help and then switching on to pdf application with those details?
    Regards,
    Deepthi Lakshmi.A.

    hi, Jkuma,
    we met the similar situation with you while developing a anpplication form for HR.
    our conclustions are:
    1. it's not feasible to put all the data into the form, it will make the form too big and slow, so it must be a online interactive form
    2. you may put a search field to let the user to input some kind of criteria and do the search on the r3 side and return the hit list on the form , but it's not so easy to develop a table control on the form using javascript to get the selected one.
    3. so we built a 'selection screen' , using webdynpro for abap,
    it will show up before the form, while can use ddic search help, to make the selection, then put all the selected entries into the adobe form for further processiong.
    how this is helpful hint for you.
    br.
    jun

  • Search help in web dynpro

    Hallo dear all,
    i defined a search help in the ABAP Dictionary and want to use it in a web dynpro. The search help is based on the data base table /BIC/PSCPLPROD (selection method).
    It shall be used in a web dynpro that presents  select-options (among others) for the field /BIC/SFINCUST of the table /BIC/SCPLPROD.
    How can i realize that the selct-options field can automatically use the predefined search help?
    I must explain additionally that the mentioned select options field is alreday linked to an other search help which unfortenately is unseless in this case. So Iwant to "overwrite" this link with the link to my search help on the DDIC.
    Your answer would really minimize my project troubles. Many thanks in advance.
    Best regards Dorothea.

    why can't you have another field and have the required search help attched to it.
    if you can control this at Dictionary level then the Problems at WebDynpro side is minimum.

  • How to set column names in OVS search help of ALV EDIT

    Hi All,
    I have a OVS search help for my ALV EDIT column.This OVS will have two columns,I need to give the names(name1 , name2)  to the columns.
    I am writing the below codo in phase 0.
          ls_text-name = 'Column1'.
          ls_text-value = 'name1'.
          INSERT ls_text INTO TABLE lt_column_texts.
          ls_text-name = 'Column2'.
          ls_text-value = 'name2'.
          INSERT ls_text INTO TABLE lt_column_texts.
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title =  lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                    row_count    = 20 ).
    Below code in Phase 3.
          Assign ovs_callback_object->selection->* to <ls_selection>.
          if <ls_selection> is assigned.
            ovs_callback_object->context_element->set_attribute(
            name = `ATR1`
            value = <ls_selection>-Column1 ).
          endif.
    But,the column names are not getting set.Please provide your inputs.
    Regards,
    Salma

    hi,
    About your requirement, i don't know why you need to code in "Phase 3" of OVS.
    "Phase 3" is used for transporting your selected value to Your ALV.
    I think, the reason why you loose the result table including your customized column title, is that you loose the "Phase 2".
    Generally, in the past i used OVS as the following code simply.Just one example:
    * declare data structures for the fields to be displayed and
    * for the table columns of the selection list, if necessary
      types:
        begin of lty_stru_input,
    *   add fields for the display of your search input here
          carrid type string,
          connid type string,
        end of lty_stru_input.
      types:
        begin of lty_stru_list,
    *   add fields for the selection list here
          carrid type string,
          connid type string,
          text   type string,
        end of lty_stru_list.
      data: ls_search_input  type lty_stru_input,
            lt_select_list   type standard table of lty_stru_list,
            ls_text          type wdr_name_value,
            lt_label_texts   type wdr_name_value_list,
            lt_column_texts  type wdr_name_value_list,
      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
    *   in this phase you have the possibility to define the texts,
    *   if you do not want to use the defaults (DDIC-texts)
          ls_text-name = 'CARRID'.  "must match a field name of search
          ls_text-value = 'Search Field-Carrid'.
          insert ls_text into table lt_label_texts.
          ls_text-name = 'CONNID'.  "must match a field name of search
          ls_text-value = 'Search Field-Connid'.
          insert ls_text into table lt_label_texts.
          ls_text-name = 'CARRID'.  "must match a field in list structure
          ls_text-value = 'Result-Carrid'.
          insert ls_text into table lt_column_texts.
          ls_text-name = 'CONNID'.  "must match a field in list structure
          ls_text-value = 'Result-Connid'.
          insert ls_text into table lt_column_texts.
          ls_text-name = 'TEXT'.  "must match a field in list structure
          ls_text-value = 'Result-Text'.
          insert ls_text into table lt_column_texts.
          lv_group_header = 'Group Header'.
          lv_window_title = 'Window Title'.
          lv_table_header = 'Table Header'.
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 3
                    row_count    = 8 ).
    when if_wd_ovs=>co_phase_2.
    *   If phase 1 is implemented, use the field input for the
    *   selection of the table.
    *   If phase 1 is omitted, use values from your own context.
          if ovs_callback_object->query_parameters is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->query_parameters->*
                                  to <ls_query_params>.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_select_list FROM ZTABLE_FLIGHT
                           WHERE CARRID LIKE lw_carrid
                                 AND CONNID LIKE lw_connid
    *ovs_callback_object->set_output_table( output = lt_select_list ).*
    Hope it can help.
    Best wishes.

Maybe you are looking for

  • Query performance while migrating from 9i to 11G

    Hi, We've one production application with version 9.2.0.6 and migrating to 11g release. At present we're having a lot of queries in our 9i database which are using the cost based optimizer. Just wanted to check if we move all the cost based queries f

  • Windows 7 64 stuck (keyboard/mouse) but not when reboot my Boot camp

    Hi Guys, After spending more than 3 times 12 hours reading/searching/trying I've decided to seek for your help. My problem is pretty simple, trying to install Windows 7 64bit on MacBook Pro 15 Retins (mid 2014 model - MGXC2LL) gets stuck at language

  • Db13-check database not run

    Dear all I have install  a quality server now is working perfectly but when   use the db 13 then  when i excute the  1-check database. 2-check and update optimizer staitics not excuted please guide , will we configre any location ? thanks with best r

  • How can I figure out if my bmp has Nvidia graphics

    How can I figure out if my bmp has the Nvidia graphics ?

  • Get all directories...

    I am trying to get this code to work, but i a returning some errors that i can't get rid of. import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class Search extends JFrame {      public static void main(String[