Dynpro: event handling on input field in custom control?

Hello,
can I  put an input/output Field in Custom Control?
I have seen this (DD_ADD_FORM_INPUT) but i dont need a Form.
What i want to do is: Double Click Event handling on the input field in the custom control.
Thank you?

Hi Mohi,
OK, you could reduce DD_ADD_FORM_INPUT to what you really need - but the DD elements (rarely if ever used in standard SAP) do not have a double-click event. Must stick to ENTER.
An alternative is a text_edit or an editable grid_control with one line one field.
The problem is: There is no way to put any selection-screen element on a control.
I's go for the grid approach as you certainly may have some more fields of interest.
Regards,
Clemens.

Similar Messages

  • Enter-Event on an "Input Field"

    Hello Community...
    i would like to trigger an event on an Input-Field in my Form. When I enter a value and press "Enter" the value should be given via an output signal to another iView. What kind of event do I have to choose to achieve that? I chose a Custom Action, but the value was passed to the output signal when I left the field.
    Greetz, Jochen

    Hi Jochen,
    As per your requirement:
    " When I enter a value and press "Enter" the value should be given via an output signal to another iView"
    press Enter means u want to have a button in the form along with the input field. Am I correct?
    If so then why to give action in the input field.
    "I chose a Custom Action, but the value was passed to the output signal when I left the field"
    Beacuse If you will give the event in input field then when you will fill the value in the input field that action will be triggered.
    Better to give the action in the button if you want to press and then event has to be triggered.
    Go to the Button property--give system action--as submit.
    Then to pass data between the iviews you must have used signal out and signal in.
    Regards,
    Nutan

  • Test of Web Dynpro Event Handling : GeoMap business graphics

    Hy guru's, i have this problem: on Test of Web Dynpro Event Handling page i tried to open the GeoMap web dynpro on Business Graphics section but i received this error:
    The URL http://.../sap/bc/webdynpro/sap/wdr_test_events/ was not called due to an error.
    Note
    The following error text was processed in the system BI7 : Exception condition "COMMUNICATION_ERROR" raised.
    The error occurred on the application server bi7-saplab_BI7_08 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_GIS_VIEW~UPDATE of program CL_GIS_VIEW_IGS===============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LBUSINESS_GRAPHICS======CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system BI7 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server bi7-saplab_BI7_08 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server bi7-saplab_BI7_08 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 100 -u: AMARAVIGLIA -l: E -s: BI7 -i: bi7-saplab_BI7_08 -w: 0 -d: 20071119 -t: 232916 -v: RABAX_STATE -e: RAISE_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Could you help me?
    Thank's a lot
    Sincerely yours
    Andrea Maraviglia

    Hi,
    did you install the IGS (see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/37/268841a79f1609e10000000a155106/frameset.htm">documentation</a>) and check if SAP note 1108034 helps?
    Regards, Heidi

  • Dropdown list on Dynpro for a disabled input field - No PAI triggered?

    Hello experts,
    I am facing a problem with a dropdown list on a dynpro (defined as a subscreen). The drop down list should be  for a field that is not input ready (at least it should appear not being input ready).
    The user should be able to pick a value from the dropdown list and as soon the selected row changes a PAI should be processed as other fields on the main dynpro as well as the subscreen itself need to change accordingly.
    The dropdown list works fine but with the field not being set to input ready - neither the input field changes nor a PAI etc. is triggered.
    But if the property for input is set to input ready, it works fine.
    Info:
    Dropdown list is populated in POV
    A function code is assigned to the field
    What am I missing here?
    What properties must be set for the field.
    Thanks,
    Chris
    PS. If set to input - how do I prevent the single empty line in the list?

    hi
    good
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
    allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
    F4 HELP->
    AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
        PERFORM VALUES_SACHA.
    THANKS
    MRUTYUN^

  • F4 / Help Functionality for input field in custom java iView

    Hi,
    As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
    Your help is really appreciated.
    Thanks,
    Vijay

    Hi Vijay,
    the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
    https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
    Regards,
    Ulli

  • SMP 2.3 MBO approach -Mapping of input fields in custom.js

    Hi,
    Please help me.I just want do to mapping of some input fields and personlization keys through  custom.js on click of menu item.
    Thanks
    Ashish Baghel

    Check the below option:
    option 1:
    Create a new editbox in the same screen where the list is (as you did).
    Map the input data binding with key of the listview.
    Later hide the listview using the code below
    //Ios
    Use this in custombeforeshowscreen() or customBeforeWorkflowLoad()
    $('div[id="LoginScreenDiv"] #LoginScreenDivLogin').attr('style','display:none');
    This code from workflow_jQueryMobileLookAndFeel.html page.
    <div data-role="page" data-theme='a' id="LoginScreenDiv" sup_screen_title="Login" style="; background-image: url('Generated%20Workflow/SO_4/html/images/test.jpg'); background-repeat: repeat" sup_menuitems="Cancel Screen,Cancel Screen,Login,Login" sup_okaction="doCancelAction()">
          <div data-role="header" data-position="inline">
           <a href="javascript:void(0)" data-icon="arrow-l" id="LoginScreenDivCancel_Screen" name="Cancel Screen" onclick="menuItemCallbackLoginCancel_Screen();"> Cancel Screen</a>
           <h1>Login</h1>
           <a href="javascript:void(0)" id="LoginScreenDivLogin" name="Login" onclick="menuItemCallbackLoginLogin();"> Login</a>
    </div>
    option 2:
    Customize the screen with the data a HTMLView. Ex, Developing HWC app with Customized List
    In the given example the data is shown in a listview instead show it in a <p> or <h> tags.
    Midhun VP

  • Issue with input field in table control

    Hi,
    I have an issue with field acgl_item-rstgr in the table control.
    I have created a screen program with a table control.
    In the control i have added a dictionary field as acgl_item-rstgr.
    When i execute, do f4 on the input field, select a value and press enter, then it is showing me
    error as 'Entry 'val' does not exist in T053R (check entry). Its really weird to understand this. I have selected the value
    from f4 and even then it says this. Its working for all other columns, but not working only for RSTGR.
    Plz help me on this regard.
    Code is like this.
    TYPES : BEGIN OF ty_rstgr,
              rstgr TYPE RSTGR,
             END OF ty_rstgr.
    TABLES : ACGL_ITEM.
    DATA : it_rstgr TYPE TABLE OF ty_rstgr.
    DATA : wa_rstgr TYPE  ty_rstgr.
    CONTROLS : table TYPE TABLEVIEW USING SCREEN 100.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT it_rstgr INTO wa_rstgr WITH CONTROL TABLE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
      LOOP AT it_rstgr.
      ENDLOOP.
    Thanks,

    Hi Navitha,
    Its Check Table concepts for the error u stated. Please check wht the Search help ur using...Because for this field there is no search help at value table level...Use search help that hold all master data or create a custom search field in SE11 level or in program level.
    Cheers,
    Naveen

  • Dynamicaly setting SCREEN-INPUT field in TABLE CONTROL

    hai guys,
    in my table control i have REFNUM field and some other fields.
    now my task is,
    in every row,i have to enable the REFNUM field of table control for editing only if REFNUM is blank.
    else i shud disable it.(when REFNUM is filled).
    all other fields should be always disabled.
    (right now,i am just able to either totaly enable the entire REFNUM coloumn or or totaly disable it for editing,irrespective of the values it is holding.)
    shravan ramidi

    is this not possible?
    can some one confirm it..

  • Input Field in table - I need a OnClick Event

    Hello everybody,
    I have the following problem:
    I have created a table in my view which is filled at runtime. The table has 3 different rows and every row has TableSingleMarkableCells, these cells further have a input field as their celleditor.
    I now want to know which cell the user is editing. I have a AttributePointer through which I know that at the time the user presses the enter key. But I need to know whether the focus has changed. Because there is the possibility that the user switches between the differnt cells with the arrow key or the tab key. But the AttributePointer only gives me the first selected cell.
    Have anybody a suggestion to solve this problem -  it seemed to be something like definingb a OnClick event for a input field (additionaly to the default OnEnter event...)
    Best regards,
    Sebastian

    Hi,
    You can find out at which row the editing goes, by using
    onLeadSelect action of TableUIElement.
    in onLeadSelect action you can find row number using this statement
    int rownumber= wdContext.node<TableNode>().getLeadSelection();
    Regards
    LakshmiNarayana

  • Contextual event - handler called before producer bean's setter

    I am trying a simple contextual events usecase:
    Page A.jsff has an input text field whose value is directly stored in a bean variable (bean is in pageFlowScope). Contextual event is defined on value change event for this input field. A.jsff has taskflow B_btf as an embedded region.This B_btf will simply display the value entered in the A.jsff. So, when contextual event is raised, the handler sets the value in a local variable of B_btf bean. The problem is that the handler method is getting called before the setter for the attribute of the bean of A.jsff. This is resulting in the B_btf displaying the last-but-one value entered in the input field of A.jsff instead of the current/latest value. Any tips?
    Thanks,
    Amitabh

    The issue was with the (lack of) understanding of the JSF lifecycle. The value change listener is called during the Process Validation phase, whereas the managed bean (Model) values will be set in the Update Model phase which lies next-in-line after Process Validation phase. Hence, if the value change listener is to be used, then the handler code should have used the default payload and not the custom payload. For a value change event the default payLoad will be a DCBindingContainerValueChangeEvent, and one can invoke getNewValue() to get the value entered in the text field (For details watch Frank Nimphius' video here: ADF Region Interaction - Contextual Events - YouTube). For my case, I added a command button to the page, and moved the contextual event to that button.

  • Tracking ABAP web dynpro events in back end SAP

    Hi Experts ,
    I have
    Is there any way to capture the events on th ABAP web dynpro in the backend.
    The scenario is that i have some particular code which gets executed in the back end when User clicks on any button or tab in the appraisal document , which is ABAP web dynpro application.
    I want this code to be executed only when User clicks on particular TAB/BUTTON on the ABAP web dynpro.
    Are there any system tables that I can check.I am novice in ABAP Web dynpro.
    Thanks

    hi ,
    I wud like to demonstrate this with example
    suppose in ur WD  screenu  take the sales organization as input .
    and u want to do smthing like this in backend :
    u wud like to read VBELN from VBAK where VKORG is with in sales organization range entered in input field
    create a context attributeinside a context node  in Context Tab inside ur view
    first bind the VALUE property of ur Input field to a context attribute
    inside the method OnActionClick  thn u wud  use code wizard (control +f7) to read the context attribute which is binded to input field
    u press CONTROL + F7 and select the radio button read context node/attribute
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr.
    *   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   get single attribute
        lo_el_cn_node->get_attribute(
          EXPORTING
            name =  `CA_ATTR`
          IMPORTING
            value = lv_attr ).
    // I have read attribute CA_ATTR inside the node CN_NODE
    thn u wud put select query to fetch from data base using the value lv_attr
    DATA : vbeln type string .
    SELECT SINGLE vbeln FROM vbak INTO lv_vbeln
        WHERE vkorg = lv_attr .
    I hope it is clear nw
    regards,
    amit

  • F4 help for input field

    hi all
    i am developing a z report.input field is customer name (ADRC-NAME1). SAP has not given F4 help on this field.
    please tell mo how to give f4 Help for this field in report.
    regard.
    ulhas

    hi..
    do as below..
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR PR_VERSB.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
       EXPORTING
           TABNAME                   = 'MDPB'
           FIELDNAME                 = 'VERSB'
           SEARCHHELP                = 'H_T459V'
           DYNPPROG                  = 'ZPP_SHORT'
           DYNPNR                    = '1000'
           DYNPROFIELD               = 'PR_VERSB'
       EXCEPTIONS
           FIELD_NOT_FOUND           = 1
           NO_HELP_FOR_FIELD         = 2
           INCONSISTENT_HELP         = 3
           NO_VALUES_FOUND           = 4
           OTHERS                    = 5
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Rahul

  • How to save changed data from a input field to the source structure

    Hi,
    I have a small problem with the onChange event with HTML input fields.
    When changing a value of a input field or by creating a new value for a field the OnChange event is called by moving away the mouse pointer....
    get_form_field( 'field_name' ).
    But is it possible to write back the new value in the source field ls_screenstructure_field1 without using the OnInputProcessing?
    I ask because my application´s structures have a lot of fields that should be filled and changed by input fields.
    It´s not comfortable to request every new value with .. = request->get_form_field(... .
    Thanks for helping.
    Cheers,
    André

    you wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
    <htmlb:inputField id            = "test"
                                alignment     = "LEFT"
                                size          = "6"
                                required      = "TRUE"
                                doValidate    = "TRUE"
                                type          = "INTEGER"
                                 />
    <bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
      <script for="test" event=onchange type="text/javascript">
    alert(this.value);
    ValueChanged();
    </SCRIPT>
    if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
    Hope this helps.
    do let us know if you need help in how to capture this value in oninputprocessing.
    Regards
    Raja

  • Validation of values in an input field.

    Hello togther,
    I've created an input field with a value-selector, so that the user can choose a value from help-list. But he can also enter a value directly into the input field. Is there any "STANDRAD" method to check whtether the value which is in the input field is valid against the values from the value-selector?
    I've found a standard method to check whether  mandatory fields are field and the method works fine. Is there anything like this also for checking values against values from the selector?
    Thanks in advance.
    Greetings,
    Florian

    Hello Florian,
                           You can create an event CHECK_DATA  for OnEnter event of  you input field.
    Then go to the Action tab and select the action type as Validation-Independent .
    Hope this will work for the input field with OVS help .
    Regards
    Vivek

  • Disabling one input field if i enter text in second inputfield

    Hi,
    I am new to WebDynpro. My problem is very simple. I have two input fields. When i enter text in one input field i want the second input field to be disabled & Vice versa. The idea is that i want to give the user the option to enter in only 1 input field of his choice. The second input field should automatically get disabled. He can choose any input field of his choice. The second one should get disabled.
    EG: Assume that there are two input fields "Item No" & "Material". The user wants do a search using any one of these parameters, but not both. So, when he chooses to do a search based on "Item No", the "Material" input field should be greyed out(disabled). And, vice versa. The user may decide to choose any one of these fields.
    Please advise.

    This is not possible because there is no "onFocus" event on the input field.
    But you could use two radio buttons R1, R2 to enable exactly one of the input fields F1, F2 at a time.
    In the view designer, set R1.keyToSelect = "1", R2.keyToSelect = "2".
    Bind R1.selectedKey and R2.selectedKey to a common context attribute A (type string).
    If (at runtime) A contains "1", radio button R1 is selected, if A contains "2", radio button R2 is selected.
    To enable input field F1 exactly if R1 is selected:
    Create a calculated boolean attribute E1 that returns the boolean value ("1".equals(A)), bind property F1.enabled to E1. Do the same for F2.
    Armin

Maybe you are looking for

  • Refresh a materialized view partition

    Hi, We have Oracle 10.2.0.3 DB and have a fast refreshable MV. We are planning to list partition it and would like to know if a partition can be "individually" refreshed. I looked at the PL/SQL supplied packages doc (for dbms_mview) and DW guide and

  • Generating a Report from Oracle Forms

    If a want to generate a report in Oracle Reports by pressing a Button on my Oracle Forms for example for 5 text items on that form ...then how do i do it ??? plz help

  • New Keyboard Shortcuts in Word 2010 NOT SAVING

    I am unable to save new keyboard shortcuts to Word 2010.  The ones that come with the program work like CTRL B for bold, etc., but when I try to create new ones, they'll work while I'm in Word, but when I try to close it for the day, it tells me that

  • How to remove a podcast not in the US Store.

    I submitted a podcast of my fathers a number of weeks ago, but it never showed up in the directory. It says it is not availible in the US store. I believe it is to do with the use of copyrighted music. He is no longer using the copyrighted music and

  • Add Skype to Business Card Option

    Hi Mark, after talking to you at the SDN Meets Labs I thought to post a little reminder here, as I'm not sure how many people told you their ideas just walking by, and if you memorized them all So, extending the contact option in the business card to