Dictionary Search Help - how to trigger an event after F4 help

Hi,
I been searching the web lately to find a way to trigger an event after using the F4 input help.
Here is an example of what I would like to do:
- I have a WD form with a inputfield in it.
- The input field is bound to datalement "LIFNR".
- In my context I have specified the Input Help Mode to "Dictionary Search Help"
- And the Dictionay Search Help is set to "KRED"
A user will the click on F4 to start the Search help, then pick a LIFNR and the WD inputfield wil be filled.
What I want is to trigger an event when this is happening.
Does anyone have som tips or guides for me regarding this problem?
Thanks in advance! =)

Hi Mathias Hagen
Actually there is no straight way of doing this , but still you can trigger a event in F4 search help ...  below is very informative blog to trigger the F4 search help by chris
Firing a WDA event on using a Search Help - how to do it, without an NDA
regards
Chinnaiya P

Similar Messages

  • How to trigger an event after symbol animation completes?

    Hello,
    I have been trying to figure this out without success.
    On the stage I have a button and a hidden symbol. The symbol has an animation within itself.
    When I click the button, the symbol becomes visible and plays the animation. Its all good so far.
    This is what I am trying to accomplish:
    I want to be able to click the now visible symbol, the animation within itself plays in reverse and then it hides itself.
    How do I make it hide itself after the animation plays in reverse?
    ==================================================================================
    BUTTON CODE (This works for me):
    sym.$("AnimationOne").show();
    var AnimOne = sym.getSymbol("AnimationOne");
    AnimOne.play(0);
    SYMBOL CODE (This needs to hide after animation ends):
    var AnimOne = sym.getSymbol("AnimationOne");
    AnimOne.playReverse();
    sym.$("AnimationOne").hide(); // If I add this, it just hides itself without animating in reverse
    ==================================================================================
    Thank you in advance for any help/suggestions.

    simple work around:
    place a label on your symbol and turn visibility ON
    Then on compostion ready stop your symbol on that label
    var s = sym.getSymbol("shape");
    s.stop("startAni");
    On your click event play the symbol from the label.
    var s = sym.getSymbol("shape");
    s.play("startAni");
    Then on your playReverse it will go all the way to 0 where visibility is OFF.
    sample here:
    https://www.box.com/s/m6zm1lt49bl74iwpva9l

  • Eventing on dictionary search help on date field

    Hi Experts,
    In my WDABAP application I have a Date input field. I have used dictionary search help into this field to display calender searc help.
    Now on select of the date from the calender I want to trigger one event which will enable some other fields in the application.
    Can you please tell me how to implement this on select event of the date.
    Thanks
    Sonia.

    Hi,
      Since you are using an Input Field , only event possible is "On Enter" event.This event is triggered when  "enter" key is pressed by the user after selecting a value in the input field.So may be you can use this and proceed further.
    Although it may not serve you the actual requirement that you have to achieve , because input field does not have any event for "On select".
    [On Enter|http://help.sap.com/erp2005_ehp_04/helpdata/EN/14/0ce74114a1da6fe10000000a1550b0/frameset.htm] this link might help
    Cheers,
    Aditya.

  • How to trigger an event in the program

    Hi,
    I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
    In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
    So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
    Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
    And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
    Please help me. Thanks in advance,
    Best Regards,
    Paddu.

    Hello Paddu,
    have a look at tables
    - btcsev, btcsed (system events)
    - btcuev, btcued (user events)
    and use function BP_EVENT_RAISE.
    kind regards
    Walter Habich

  • Dictionary Search Help

    I am using Dictionary Search Help to search and display employee nam. Just wondering how can I exclude all withdrawn employees from the list displayed.
    Thanks

    Hi,
    You may refer this Search help exit.
    In this I have filtered the records based on Company code by writing a select query.
    I have another field in selection criteria( doctor id ).
    Code for your reference :
    DATA : lw_selopt TYPE ddshselopt,
             l_org TYPE z3af_hcp-org.
    DATA: r_doctorid TYPE RANGE OF z3af_hcp-doctor_id,
          w_doctorid LIKE LINE OF r_doctorid.
      CASE callcontrol-step.
        WHEN 'SELECT'.
          CLEAR : gt_select_list[].
          IMPORT l_bukrs TO ls_bukrs FROM MEMORY ID 'Z3AF_BUKRS'.
           SET LOCALE LANGUAGE sy-langu.
    *Convert the Search help fields
          LOOP AT shlp-selopt INTO lw_selopt.
            CASE lw_selopt-shlpfield.
              WHEN 'DOCTOR_ID'.
                w_doctorid-sign = lw_selopt-sign.
                w_doctorid-option = lw_selopt-option.
                w_doctorid-low = lw_selopt-low.
                w_doctorid-high = lw_selopt-high.
                APPEND w_doctorid TO r_doctorid.
                      ENDCASE.
          ENDLOOP.
    *-----Selecting data from HCP table based on Criteria in Range table and company code--------*
          SELECT  doctor_id
                  lname
                  fname
                  city
                  state
                  post_code
                  degree
                FROM z3af_hcp INTO TABLE gt_select_list
                   WHERE  bukrs EQ ls_bukrs
                      AND doctor_id IN r_doctorid.
    *-------FM to Map Values in table--------------------------------------------
          CALL FUNCTION 'F4UT_RESULTS_MAP'
            TABLES
              shlp_tab          = shlp_tab
              record_tab        = record_tab
              source_tab        = gt_select_list
            CHANGING
              shlp              = shlp
              callcontrol       = callcontrol
            EXCEPTIONS
              illegal_structure = 1
              OTHERS            = 2.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          callcontrol-step =  'DISP'.
          CLEAR l_lname.
        WHEN 'DISP'.
    *------Loop the table to append it to the record Structure-------------------
          LOOP AT gt_select_list INTO lw_select_list.
            APPEND lw_select_list TO record_tab.
          ENDLOOP.
      ENDCASE.
    I hope it helps you in some aspect.

  • How to trigger left_click_run event on ALV GRID

    Hiiiiiiii........
    Can any of u please tell me how to trigger left_click_run event on ALV GRID.
         There is an event LEFT_CLICK_RUN and  its a public accessed event. But the problem is , the corresponding  attribute of this event  "EVENT_LEFT_CLICK_RUN" which is needed to registered that event (We need to register our events through a method set_register_events  using table of type cntl_simple_events...) is protect accessed. So I am unable to use that attribute...Could u please tell  me is there any alternative way to register that event.......ANY POSSIBLE WAY?
    Thanks in advance,
    Rams

    I think you should use event selection_changed. Note that you shouldn't allow multiple selection for the tree at the same time, i.e. use: create object g_tree exporting \[...\] node_selection_mode = cl_gui_column_tree=&gt;node_sel_mode_single.
    For more information, see this thread: Urgently required :  cl_gui_alv_tree single_click event...

  • Problem with ALV search help Dictionary Search Help

    Hello experts
    I have a problem with ALV search help.
    I use DDIC table ZXXX with text table ZXXX_T. I created DDIC search help form table ZXXX. In my WD application, in context on COMPONENTCONTROLLER i set on attribute: 'Input help mode' as 'Dictionary Search Help' and in 'Dictionary Search Help' I pass name of new created DDIC search help.
    I create a input field from that atrribute and search help works fine (there was a value and description for value from text table). So I created ALV witch contains that attribute too.
    Next I set column for this attribute in ALV as editable but on Serch help for this collumn I have only value. I DON'T HAVE TEXT DESCRIPTION FOR VALUE.
    Please help me and tell me what I do wrong?
    Miko

    Hello,
    Thank's for your help. I create DDic Search help for all fields from my ALV. Next I changed 'TYPE' for all ALV fields in COMPONENTCONTROLLER from ZXXX-Zfield to Zfield, and I changed 'Input help mode' from 'Automatic' to 'Dictionary Search Help'. Now I see Value and Description for value in Search Help in my ALV.
    Regards
    Miko

  • How to trigger a event when WBS gets changed in Cj02

    Hello,
    I have a requirement where I need to send create an idoc and send the idoc to external system when WBS is created or changed.  Currently, I have the following setup:
       - I have created a YBUS2054 as a subtype of BUS2054 using SWO1
       - YBUS2054 has been delegated to BUS2054
       - created an CHANGED event in the YBUS2054. This event is implemented and then released
       - created a type linkage (object type=YBUS2054, event=CHANGED, receiver type null, and receiver function module = zz_create_wbs_idoc) using SWETYPV. This function is supposed to create an idoc when CHANGED event occurs. I just don't know how to trigger the event to occur.
       - all the port, define idoc type, logical system, and etc are setup
       - when I try to create an entry in "Event for Chagne Document" using SWEC with change doc object=PROJ, business object type = YBUS2054, with on change, I get "Key for change doc object PROJ and business object type YBUS2054 are incompatible".
    I tried various configurations, and I was not successfully in creating an event on CHANGED
    can you please advise what I am missing in getting the changed event to trigger?
    Thank you in advance,
    Shawn

    Hi,
    If the change doc doesnt exist, check if you can create an event using BSVW.
    Also use the event log to see if there are other sap standard events happening.
    I checked the package belonging to CJ02 to see if there is something useable, but didn't find anything: CN_PSP_OPR
    If there are no sap standard ways to get an event, you'll have to find a badi/enhancement spot and include some coding to start the event using fm SAP_WAPI_CREATE_EVENT.
    Kind regards, Rob Dielemans

  • A ALV with some editable fields which have dictionary search help

    Hi all:
           There is a requirement to implement an ALV with some editable fields which have dictionary search help, do you have any idea?
    thank you very much

    Hi - yes it can be done.
    1st in your object select the component SALV_WD_TABLE (ALV component) * do all the bindings of your component to your VIEW, Component usage interface, etc.
    When you are declaring your context node attributes if you add a TYPE Data element that has a search help bind to the data element it will be accessible in your ALV or in the Attribute there's a INPUT HELP that option that you can add the search help there but you need to have your ALV input enable
    for example:
    data: lr_input_field  Type Ref To cl_salv_wd_uie_input_field,
    lt_column Type salv_wd_t_column_ref,
    ls_colum Type salv_wd_s_column_ref,
    lv_value Type Ref To cl_salv_wd_config_table,
    l_col_name type string,
    lr_cmp_usage Type Ref To if_wd_component_usage,
    lo_interfacecontroller Type Ref To iwci_salv_wd_table.
    lr_cmp_usage = wd_this->wd_cpuse_alv( ).  *ALV is the name you enter for your component usage when declaring component SALV_WD_TABLE at the beginning.
    if lr_cmp_usage->has_active_component( ) IS INITIAL.
    lr_cmp_usage->create_component( ).
    endif.
    lo_interfacecontroller = wd_this->wd_cpifc_alv( ). *once again your ALV name
    lv_value = lo_interfacecontroller->get_model( ).
    lt_columns = lv_value->if_salv_wd_column_settings~get_columns( ).
    Loop at lt_columns into ls_column.
    l_col_name = ls_column-r_column->get_id( ).
    create object lr_input_field
    exporting
    value_fieldname = l_col_name.
    ls_column-r_column->set_cell_editor( value = lr_input_field ). *this will made all your columns input fields
    endloop.
    hope this help!
    Jason PV

  • How to trigger an event by using

    Hi all,
    I have created a jbutton and an event for the jbutton, for example,
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)Now, I would like to trigger the event by pressing a hot key, for example "F1", how can i make it? Can anyone help me? Thanks.
    Ning.

    Hi,
    I have read through the information that you provided and tried to integrate it into my coding, but I'm really not so clear about that and i don't know how to apply into my coding correctly......can anyone help me? Thanks.
    I'm creating an application using the J2SE v 1.4.2_10 SDK with NetBeans 4.1 Bundle. By the way, below is a simple testing program that including component jLabel1, jButton1 and jButton2. Both of the button are hold an event each. I would like to create a hotkey for each button, "F1" key for jButtton1, "F2" key for jButton2. If I click on the "F1" key, the jLabel1 will displays the character "ABC", if I click on the "F2" key, the jLabel1 will display the character "123". Can anyone provide the code to me? Thanks.
    * test.java
    public class test extends javax.swing.JFrame {
        /** Creates new form test */
        public test() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jLabel1 = new javax.swing.JLabel();
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("ABC");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            getContentPane().add(jButton1);
            jButton1.setBounds(90, 70, 90, 23);
            jButton2.setText("123");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            getContentPane().add(jButton2);
            jButton2.setBounds(191, 70, 80, 23);
            jLabel1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
            getContentPane().add(jLabel1);
            jLabel1.setBounds(110, 134, 150, 20);
            setBounds(20, 20, 400, 300);
        // </editor-fold>
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
            jLabel1.setText("123");
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
            jLabel1.setText("ABC");
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new test().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel jLabel1;
        // End of variables declaration
    }Ning.

  • How to trigger an event when a job is cancelled

    Hi,
    Can anyone help me out wid a transaction that will trigger an event when a job is
    cancelled....??
    My scenario is :
    When a job is cancelled (SM37) or in cancelled status  i want notify to certain ppl thru emails.
    How do i go abt doing the same??
    Its Urgent...
    Answers will be rewarded.
    regards,
    Rohan

    Hi,
    please check out the link below it might help you
    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/a8a77955bc11d194aa0000e8353423/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/97d2e8b3-0b01-0010-b787-b8ce558a51c2
    for table name and list of function please check out the links below it will help you
    http://www.erpgenie.com/sap/abap/tables_system.htm
    http://www.sap-img.com/abap/function-list.htm
    **************please reward points if the information is helpful to you**********

  • How to trigger wd event in flex

    Hi,
    I want to trigger an event in abap web dynpro (e.g. through pressing an button). This event should be handled in flex. Does anyone know how to do this?
    Thank you and best regards, Eddy

    Hi Edger,
    You can have any trigger event on your WebDynpro Abap screen and then on that event you can call swf file from your mime folder or you can even update flex application data.
    for your help you can refer following tutorial which easily explaining all necessary steps nicely as per your required scenario:
    https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDATutorial1
    If you are willing to trigger an event in flex then act in WDA that is also possible.
    Refer Bi-directional Data Binding and Eventing in following tutorial:
    https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDATutorial2
    Regards,
    Vivek

  • How to trigger ENTER event in oo ALV grid

    Hi,
    Can anybody help me out in catching the ENTER event in the oo ALV Grid. My requirement is as follows,
    I have oo ALV Grid displaying hell lot of columns, in that vendor number column is an editable field so when the user enters the vendor number the immediate next cell showing the vendor name should be populated with the corresponding name as soon as he press enter button, I have search help also for vendor field.
    Please give me some sample program which i can just do the copy+paste sort of as today is the deadline for the object.
    Regards,
    Suman

    Hi,
    This example is working. Please try this one.
    CLASS lcl_event_receiver DEFINITION.
       PUBLIC SECTION.
         CLASS-METHODS:
          handle_data_changed
          FOR EVENT data_changed OF cl_gui_alv_grid
          IMPORTING er_data_changed e_onf4 e_ucomm.
    ENDCLASS. "lcl_event_receiver DEFINITION
    *       CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
       METHOD handle_data_changed.
         DATA : modi TYPE TABLE OF lvc_s_modi  ,
               modis TYPE lvc_s_modi,
               wa LIKE LINE OF git_alv_items,
               lv_matnr TYPE matnr.
         modi = er_data_changed->mt_mod_cells .
         LOOP AT modi INTO modis WHERE fieldname = 'MATNR'.
           MOVE modis-value TO lv_matnr.
           CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
             EXPORTING
               input        = lv_matnr
             IMPORTING
               output       = lv_matnr
             EXCEPTIONS
               length_error = 1
               OTHERS       = 2.
           READ TABLE git_alv_items INTO wa INDEX modis-row_id .
           IF sy-subrc = 0.
             SELECT SINGLE maktx FROM makt
               INTO wa-maktx
              WHERE matnr = lv_matnr
                AND spras = sy-langu.
             MODIFY git_alv_items FROM wa INDEX modis-row_id.
           ENDIF.
         ENDLOOP.
         IF sy-subrc = 0.
           CALL METHOD alv_grid->refresh_table_display
             EXPORTING
               is_stable = gs_stbl.
         ENDIF.
       ENDMETHOD.                    "handle_data_changed
    ENDCLASS. "lcl_event_receiver IMPLEMENTATION
    DATA : eventreceiver TYPE REF TO lcl_event_receiver.
    SET HANDLER eventreceiver->handle_data_changed FOR alv_grid.
           CALL METHOD alv_grid->set_table_for_first_display
             EXPORTING
               i_save                        = 'A'
               is_layout                     = layo_alv
               i_bypassing_buffer            = 'X'
               i_buffer_active               = ''
             CHANGING
               it_outtab                     = git_alv_items
               it_fieldcatalog               = fcat_alv
             EXCEPTIONS
               invalid_parameter_combination = 1
               program_error                 = 2
               too_many_lines                = 3
               OTHERS                        = 4.
           CALL METHOD alv_grid->register_edit_event
             EXPORTING
               i_event_id = cl_gui_alv_grid=>mc_evt_enter.

  • How to trigger own events?

    How can you create your own events to be triggered?
    For instance, I have an InputStream that I've got through a Socket that's listening for incoming data. I want to signal/trigger an event when data comes in so that the gui (in another class) can take appropriate actions. How can you do this?

    The basic idea is this:
    public interface SockeListener
        void dataEvent(/* pass a parameter if needed.  Often an event interface is added */);
    public class MySocket
         private final List listeners = new ArrayList();
         public void addListener(SocketListener listener)
              listeners.add(listener);
         public void removeListener(SocketListener listener)
              listeners.remove(listener);
         private void triggerEvent()
               for (Iterator i = listeners.iterator(); i.hasNext();)
                    ((SocketListener) i).dataEvent();
    }Check out the PropertyChangeSupport class also.

  • Problem with Dictionary Search Help

    very good morning!!
    we have a z-search help called 'ZIH_TIPOIDENTIFICACION', and we want to select a line from the help search, and put the values  in two fields. This is easy if the two fields are in the same context, but the fields are in different contexts. Field 1 is in the context BTADMINH and field 2 is in the context BTACTIVITYH and is a field of type 'attribute value'. Only works Field 1 .  I do not fill the Field 2,  the value for 'field-context_attr ls_field ='
    our code is:
      data ls_field   type if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping.
      data: lt_input  type if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
            lt_output type if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_field-context_attr = 'EXT.ZZAFLD00003H'.
      ls_field-f4_attr      = 'ZTAXTYPE'.
      append ls_field to lt_output.
      ls_field-context_attr = 'BTACTIVITYH/Z_TIPO_IDENT_TEXT'.
      ls_field-f4_attr      = 'TEXT'.
      append ls_field to lt_output.
      create object rv_valuehelp_descriptor type cl_bsp_wd_valuehelp_f4descr
        exporting
          iv_help_id        = 'ZIH_TIPOIDENTIFICACION'
          iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping  = lt_input
          iv_output_mapping = lt_output.
    Any ideas?
    many thanks

    Hi Victor,
    You can access the BTACTIVITYH field from the BT ADMINH context node using the relationships.
          entity ?= current.
    *     Method 1
          current = entity->get_related_entity(
                   iv_relation_name = 'BTHeaderActivityExt' ).      "#EC NOTEXT
          IF current IS NOT BOUND.
            RETURN.
          ENDIF.
    Here the Current referne will have your new attribute to display in system. Use the same relation code in both set and get methods.
    So that both attributes will be part of BTAdminH context node then your above code will work correctly.
    Best Regards,
    Dharmakasi.

Maybe you are looking for

  • Increment a Date in JSP Page

    Hi , I am giving a interface to a user where userr can select a start date and end date and on clicking submit ..i have to display all the dates between start date and end date. Now I know i can increment a date by using georgianCalander, But what i

  • Setup failover for a distributed cache

    Hello, For our production setup we will have 4 app servers one clone per each app server. so there will be 4 clones to a cluster. And we will have 2 jvms for our distributed cache - one being a failover, both of those will be in cluster. How would i

  • [svn:fx-trunk] 13089: doctor up the config files so rsls work properly for datavisualization

    Revision: 13089 Revision: 13089 Author:   [email protected] Date:     2009-12-17 16:54:43 -0800 (Thu, 17 Dec 2009) Log Message: doctor up the config files so rsls work properly for datavisualization QE notes: make sure rsls are functioning properly D

  • How to create custom MDN?

    I am trying send custom MDN for mail which has a "Disposition notification to" header. Whenever I get a mail that has "Disposition Notification To" header , I need to append something like Disposition-Notification-Options:G3Fax-report-request=require

  • Cannot download 9.1

    When I try to download Reader 9.1 the process nearly finishes but then tells me "Adobe Reader 9.1 requires Internet Explorer 6.0 or greater.  Please visit www.microsoft.com to upgrade Internet Explorer".  I now have IE 7.0, but am still getting the s