Aut. cursor jump to next cell/field in Web Dynpros ALV

Hi all
How do I get the cursor in a cell to jump automatically to the next cell when the user enters the last character?
Any help is greatly appreciated.
Regards
Lars Romer

Here is the sample code for auto tabing.
You can use as per you need where ever you wanted. Reward & close the thread if its helpful.
<!-- TWO STEPS TO INSTALL AUTO TAB:
  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) {
var keyCode = (isNN) ? e.which : e.keyCode;
var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
if(input.value.length >= len && !containsElement(filter,keyCode)) {
input.value = input.value.slice(0, len);
input.form[(getIndex(input)+1) % input.form.length].focus();
function containsElement(arr, ele) {
var found = false, index = 0;
while(!found && index < arr.length)
if(arr[index] == ele)
found = true;
else
index++;
return found;
function getIndex(input) {
var index = -1, i = 0, found = false;
while (i < input.form.length && index == -1)
if (input.form<i> == input)index = i;
else i++;
return index;
return true;
//  End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
<BODY>
<center>
<form>
<table>
<tr>
<td>Phone Number : <br>
1 - (
<small><input onKeyUp="return autoTab(this, 3, event);" size="4" maxlength="3"></small>) -
<small><input onKeyUp="return autoTab(this, 3, event);" size="4" maxlength="3"></small> -
<small><input onKeyUp="return autoTab(this, 4, event);" size="5" maxlength="4"></small>
</td>
</tr>
<tr>
<td>Social Security Number : <br>
<small><input onKeyUp="return autoTab(this, 3, event);" size="4" maxlength="3"></small> -
<small><input onKeyUp="return autoTab(this, 2, event);" size="3" maxlength="2"></small> -
<small><input onKeyUp="return autoTab(this, 4, event);" size="5" maxlength="4"></small>
</td>
</tr>
</table>
</form>
</center>

Similar Messages

  • Input field in Web Dynpro ALV does not have correct focus

    Hello Friends,
    Our client's SAP system is recently upgraded with ECC 6.0 SP 18.
    After that the focus in the editable field of Web Dynpro ALV does not working properly by down arrow navigation.
    The common scenario:
    The ALV has more than one rows and one column is editable...
    when user is selecting field of first row and making some entries...
    after that pressing down arrow it is going to next row and coloring the field like focusing...
    but the 'cursor' is not blinking so user can not make entry without clicking by mouse...
    this was working Ok before upgrade...
    Could you please anyone have a look and propose a suitable solution?
    Thanks
    Krish

    Hello,
    The problem was with Javascript....which play an important role in layout of web dynpro ALV...
    which resides in MIME repository -> SAP ->PUBLIC - >BC ->NW5 ->JS ->SAPURI_Ie6....
    We wrote to SAP for giving us the fix...
    after we got a new file from SAP the problem is solved...
    also we have to clear server cache through SMICM and client cache...
    Thanks.
    K.

  • Sum hidden fields in web dynpro ALV reports

    Hi everyone
    Could anyone tell if it is possible to sum a field that is hidden in an ALV Report in Web Dynpro?
    I need to hide a row so as not to be seen by the user (like the filter option) but with the need that the value that is stated in that hidden row must still impact in the Column Total.
    Thanks!
    Fede

    Hi everyone
    Could anyone tell if it is possible to sum a field that is hidden in an ALV Report in Web Dynpro?
    I need to hide a row so as not to be seen by the user (like the filter option) but with the need that the value that is stated in that hidden row must still impact in the Column Total.
    Thanks!
    Fede

  • Adding a field in Web dynpro java in Travel Request application

    Hi All,
    How to add a field in Web dynpro java in Travel Request application or can we copy the Web dynpro java application to Web dynpro ABAP and add a field. Experts, Can you please suggest me step by step in resolving the problem.
    Thanks & Regards,
    Kumar

    Hi Kumar,
    First, in order to customise the ESS webdynpro Java iViews you need to be aware that, you are about to change the SAP standard iviews. In order to avoid this you can make a copy of the SAP standard one's and then try to customise the copied one's.
    Now, you should have NetWeaver Development Infrastructure(NWDI) installed. Once it is installed you should also install the Netweaver Developer Studio (NWDS) on your computer.
    Once you have these two installed, you should deploy the ESS Business Package onto the NWDI by creating tracks. There is a cookbook available on SAP Service Marketplace for configuring NWDI for ESS.
    Once you have all the above mentioned tools, have a look at the following blog which clearly explains about the procedure of customising ESS iviews.
    /people/vinoth.murugaiyan/blog/2007/08/24/essmss-customization-150-make-it-simple
    Also check the following Wiki, this might be useful!
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/employee%252bself%252bservice
    I hope this helps. Let me know if you have any issues.
    Dont forgett to contribute points if this is useful! All the Best.
    Regards,
    PG

  • Clear/refresh(F5) fields in web dynpro application view

    How to clear or refresh(F5) fields in web dynpro application abap while redirecting to another view? I have tried using "context_node->invalidate()" but it's not working for all the fields, some are getting initialised and some not. Is there any other method to refresh all the fields in the view all at once. Please guide.

    Hi,
    For the Context node( to which the drop down is bound) create a supply function as shown below:
    Now populate the drop down in supply function method instead of WDDOINIT method.
    Go to methods tab and write the below code in supply function method:
    DATA lo_nd_drop TYPE REF TO if_wd_context_node.
        DATA lt_drop TYPE wd_this->elements_drop.
        DATA ls_drop TYPE wd_this->element_drop.
    *Fill Drop down
        ls_drop-val = 'ABC'.
        APPEND ls_drop to lt_drop.
        ls_drop-val = 'DEF'.
        APPEND ls_drop to lt_drop.
    * bind all the elements
       node->bind_table(
         new_items            =  lt_drop
         set_initial_elements = abap_true ).
    Now once you call invalidate( ) the drop down will automatically be initialized( since the supply function will be called again) And you don't have to write the code again to populate the drop down.
    hope it's clear now.
    Regards,
    Kiran

  • How to turn off 'Return Key jumps to next cell' in Tables?

    I can't find where you turn off this feature.  I want to type two paragraphs in a cell with a space between them.  I've wasted 2 hours trying to figure this out.  Please help!

    Hey, I just wanted to let you know I've been having the same issue with the new 3.0 update for Numbers and just found a keyboard shortcut that has helped me a great deal.  I guess I'll be using this until they add an option to turn that "Return Key Moves to Next Cell" off, like the older versions had...
    Anyway, if you place the cursor where you'd like a line break and press Ctrl+O (mind you I do mean Ctrl and NOT Command here), it will insert a line break at that place.  Hope this helps!

  • Validating Input field in Web Dynpro

    Hi All,
    Could you please tell me how do I use set_attribute and get_attribute methods to get the user input from the dynpro screen?
    The user enters some data in the input field. I need to get this data and validate it.
    Please tell me how to get the user input.
    Thanks & Regards,
    Srilakshmi B

    hi,
    you can go through it,might be your problem solve.
    Example for Using Messages
    The following example shows how you can use messages created in the Message Editor. In the example, both messages with static text and messages that are dependent on user inputs – that is, messages with dynamic text – are defined.
    Description of Example
    Users can create a domain in this sample application. They can then enter a number in the next input field and press Click here to validate. If the specified number lies in the previously specified range, the user is informed of this fact in a standard message. If the number does not lie within this domain, the user sees a warning message.
    Prerequisites
    You have created a Web Dynpro application and defined view “MainView” within a Web Dynpro component.
    Procedure
    Creating the View
    Define the view as illustrated below:
    Context Creation:
    The context that provides the data is created as follows:
           1.      Create a context node, UIElem
           2.      Set the propertycardinality to 1..1 for the context node.
           3.      Create the context attributes a, b, and TypeField.
           4.      Set the Type of the context attributes to Integer.
    Data Binding
    To make the messages dynamic with regard to specification of the domain, the user inputs have to be saved. To do this, the input fields have to be bound to the context.
    sss
    Object
    Object ID
    Data Binding to Attribute
    Path Within the Context Structure
    a
    Input Field
    A
      MainView.UIElem.a
    b
    Input Field
    B
      MainView.UIElem.b
    Children_2
    Input Field
    TypeField
      MainView.UIElem.TypField
    In addition, bind the Children_3 pushbutton to action ValidateAction, which you also have to create.
    Creating Messages in the Message Pool
    The Web Dynpro tools provide a special message editor for defining messages of different types. 
    A message is defined by a specified key, message type, and message text. The message types  error,  warning, and  standard are predefined.
    Create the following messages:
    Messages Defined in the Message Editor
    Message Key
    Message Type
    Message text
    key1
    warning
    Please enter a number between the range of and !
      and are placeholders for the user input (the domain), which changes dynamically.
    key2
    standard
    The value entered is within the valid range.
    Implementation
    Because the messages are only displayed when the user Chooses Click here to validate, the messages must be implemented in the method onActionValidateAction:
    Implementierung der Methode onActionValidateAction()
    //@@begin imports
    import com.sap.tc.webdynpro.progmodel.controller.MessageManager;
    import com.sap.test.errorhandlingtest1.wdp.IMessageErrorhandlingTest1;
    import com.sap.test.errorhandlingtest1.wdp.IPrivateMainView;
    //@@end
    public void onActionValidateAction(
                           com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
        //@@begin
       int i = wdContext.currentUIElemElement().getTypField();
       int a = wdContext.currentUIElemElement().getA();
       int b = wdContext.currentUIElemElement().getB();
       MessageManager msgMgr =
             (MessageManager)wdThis.wdGetAPI().getComponent().getMessageManager();
       if (a < i && i < b)
             msgMgr.reportMessage(IMessageErrorhandlingTest1.KEY2, null, true);
       else
             Object[] arg ={new Integer(a), new Integer(b)};
             msgMgr.reportMessage(IMessageErrorhandlingTest1.KEY1, arg, true);
        //@@end
    The following tasks have been implemented in this method:
           1.      Read user inputs:
    int I = wdContext.currentUIElemElement().getTypField();
    int a = wdContext.currentUIElemElement().getA();
    int b = wdContext.currentUIElemElement().getB();
    1.       Read messages from the Message Manager:
    MessageManager msgMgr =
                 (MessageManager) wdThis.wdGetAPI().getComponent().getMessageManager();
    2.       Does the input lie within the defined domain?
    if (a < i && I < b)
    3.       Call the  standard message when the input lies within the domain:
    MsgMgr.reportMessage(IMessageErrorhandlingTest1.KEY2, null);
    Method reportMessage can be used to read the messages from the Message Manager. In this way you define the key and the objects that you want to change dynamically in the messages. Because no dynamic text was defined in your standard messages, you define null as a parameter.
    4.       Call the  warning messages when the input does not lie within the domain:
    Object[] arg ={new Integer(a), new Integer(b)};
    MsgMgr.reportMessage(IMessageErrorhandlingTest1.KEY1, arg);
    Because the warning messages ( Please enter a number between the range of  and !) contain text that depends on the user input, you also have to define the parameters for the domain in an object array. In the messages, the first object is then called from the array with (and the second with , and so on).
    Result
    After you have built and deployed your application, you can call it by choosing Run.
    If the user enters a number that lies within the defined domain, a standard message is displayed:
    If the user enters a number that does not lie within the defined domain, a warning message is displayed:

  • Srm 7.0 - Hide field in web dynpro using configurations

    Hello to all,
    I'm trying to hide some fields on PO web dynpro. In this example on web dynpro /SAPSRM/WDC_DODC_PO_I_BD I start the component configuration /SAPSRM/WDCC_DODC_PO_I_BD, I search for the fields I want to hide and put the visibility attribute to Invisible and I mark final check box.
    The fields don't dessapear from the web dynpro. Am I missing something?
    Best regards,
    Nacho

    Thanks for your reply.
    I have here two situations:
    SPRO. If I add the field on Configure Field Control at Header Level/Item Level it disapears but not all fields appear on this transaction. For example, I can't do that to tolerance group (TOL_GP)
    Webdynpro. Using Component Configuration of the dynpro. I guess that it is in two actions:
       - Change the value of visibility to Invisible on Web dynpro Built-In
       - Add field to context. I put for this example:
             Attributes of the Element usagesDefinition (ITEM_TOL.TOL_GP)
                     usageName ITEM_TOL.TOL_GP
                     componentName ITEM_TOL.TOL_GP
                     ConfigurationName /SAPSRM/WDCC_DODC_PO_I_BD
    The webdynpro way doesn't work, Am I missing something?
    Best regards,
    Nacho

  • Custom seach help for standard field in Web dynpro application

    Hi All,
    I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help.
    As the SRM Shopping cartcreation screen is a standard web dynpro application.
    Can anyone help me in this regard for addition of search help for a field with some custom fields in the Search help screen.
    Any inputs will be very helpful.
    Thanks in advance.
    Regards,
    Ahmed.

    Hi Ahmed,
    If it is an standard application then you will have to do ENHANCEMENT in the component. And for using customised value help you will have to declare attribute in CONTEXT and dynamically change the binding of the Value property of UI element inside post-method of WDDOMODIFY. You can create your own customised value help for newly added attribute.
    Thanks,
    Vishesh

  • How to mapped Gray out field in web dynpro for ABAP.

    Hi,
    While preparing a WD Application i m using a RFC,which has one input parameter as MODE.
    IF MODE = 'DIS' (DIS stands for Display) then all fields of layout in web dynpro should be gray out.
    and
    IF MODE = 'MOD' (MOD stands for Modification) then all fields of layout in web dynpro should be opened of entering the data.
    Can anyone help me to solved this scenario.
    Regards,
    <b>Seema</b>

    Hi Seema
    I had the same issue a while ago.  I ended up with an assistance class with  set/get read only methods.  I then used the following type code to set the read only property in the WDDOMODIFYVIEW:
    DATA: lr_start_date TYPE REF TO cl_wd_input_field,
            lr_end_date TYPE REF TO cl_wd_input_field,
            lr_pernr TYPE REF TO cl_wd_input_field,
            lv_read_only TYPE abap_bool.
    lr_start_date ?= view->get_element( 'INP_START_DATE' ).
      lr_end_date ?= view->get_element( 'INP_END_DATE' ).
      lr_pernr ?= view->get_element( 'INP_PERSON' ).
    lv_read_only = wd_assist->get_read_only( ).
      IF lv_read_only = abap_true.
        lr_end_date->set_read_only( abap_true ).
        lr_start_date->set_read_only( abap_true ).
        lr_pernr->set_read_only( abap_true ).
      ELSE.
        lr_end_date->set_read_only( abap_false ).
        lr_start_date->set_read_only( abap_false ).
        lr_pernr->set_read_only( abap_false ).
      ENDIF.
    All my business logic is within my assistance class so it makes it easier to maintain. 
    Regards
    Ian

  • Web Dynpro ALV hide field

    Hi,
    Does anyone knwo how i can hide a field in a web dynpro by the abap code?

    Hi,
    Do you want to hide a column
    DATA:
    lo_model type ref to cl_salv_wd_config_table\
    lv_id TYPE string,
    lr_column type ref to cl_salv_wd_column,
    lt_columns type SALV_WD_T_COLUMN_REF,
    ls_columns type SALV_WD_S_COLUMN_REF.
        CALL METHOD lo_model->if_salv_wd_column_settings~get_columns
          RECEIVING
           value  = lt_columns.
    loop at lt_columns into ls_columns.
         lv_id = ls_columns-id.
        lr_column = ls_columns-r_column.
    case lv_id.
    when 'COL1'.
              CALL METHOD lr_column->set_visible
                EXPORTING
                  value = cl_wd_uielement=>e_visible-none.
    when 'COL2'.
    endcase.
    endloop.
    Regards,
    Lekha.

  • Adding text field to Web Dynpro

    Hi Experts,
    I need to add new text field on Standard SAP Dynpro for standard field . In standard it has two value : "01" or "02". And I nedd to add near "Material" or "Service" depending on value of  standard field. I checked standard field in F4.
    It's info about field:
    General Information About the Application and Component
    Application: /SAPSRM/WDA_L_FPM_OIF
    Web Dynpro Component: /SAPSRM/WDC_DODC_SC_I_BD
    Window Information: IV_L_FPC_CA_DETAILS
    View Information: V_DODC_SC_I_BD
    Configuration ID: /SAPSRM/WDCC_FPM_DODC_SC_I_BD_PR
    Information on Field
    Field ID: ZZI_PRODUCT_TYPE_ATTR
    Type of UI Element: INPUT_FIELD
    UI Element Library: STANDARD
    But when I go to Component /SAPSRM/WDC_DODC_SC_I_BD I can't found this field. I think this field as dynamic field created.
    Also question: How I can call this field (for example in method modifyview) and add new field on the right side?
    Thanks in Advance.
    Evgeniy

    Hi Evgeny 
    I dint understand your question , I am able to see componet /SAPSRM/WDC_DODC_SC_I_BD and view V_DODC_SC_I_BD .
    you can create enhancement for this view and can add your field here.

  • Making some cells bolded in web dynpro table

    Hi,
    I searched but i did not find suitable solution about bolding and coloring text in some cells in web dynpro table.
    Is it possible?
    If possible is there code sample?
    Thanks.

    hi
    check this links 
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1938237850DB02101680362526771086End?blog=/pub/wlg/3548
    How to make last row in the table in Bold font

  • Two components per cell on a web dynpro table

    Hi all,
    I've been working with SAP Netweaver JAVA Stack. Now i'm trying to display two components on a cell of a table, but i can't...
    I've been looking to CellVariants, but that only allows me to display another type of component (always one) on a certain condition.
    What i want is to display on the same cell a Textview and a InputLink for all the rows.
    I've tried to add a Panel to the TableCellEditor, hoping i can next add a textview and a inputlink to the panel, but that isn't allowed.
    How can i add the components at the same time on the same cell?
    Can anybody help me?

    Please don't give up, there's hope
    Context
    + Items (node, c=0:n, s=0:n)
      + CategoryData (node, c=0:1, s= 0:1, singleton=false)
         + categoryName (string)
      + ProjectData (node, c=0:1, s=0:1, singleton=false)
         + projectName (string)
      + StandByData (node, c=0:1, s=0:1, singleton=false)
         + standByName (string)
      + TaskData (node, c=0:1, s=0:1, singleton=false)
         + taskName (string)
      + Children (recursion -> Items)
      + childrenLoaded (boolean)
      + expanded (boolean)
      + isLeaf (boolean)
      + type(string)
    The type can have the values "ProjectCategory", "TaskCategory", "StandByCategory", "Project", "Task", "StandBy". This context structure gives you the tree hierarchy and for each type of node you can store different type-specific data. The "CategoryData" represents the data for the top level which shows the categories "Products", .... The meaning of the other subnodes should be clear.
    The UI element hierarchy looks like this:
    Table (dataSource = Items)
      + TreeByNestingTableColumn
        (childrenLoaded = Items/@childrenLoaded, expanded = Items/@expanded, isLeaf = Items/@isLeaf)
        + Caption (text = Items/CategoryData/@categoryName)
      + NameColumn (selectedCellVariant = Items/@type)
         + TextView (standard cell editor, not used)
      + ProjectNameEditor (CellVariant, variantKey = "Project")
         + TextView (text = Items/ProjectData/@projectName)
      + TaskNameEditor (CellVariant, variantKey = "Task")
         + InputField (value= Items/TaskData/@taskName)
      + StandByNameEditor (CellVariant, variantKey = "StandBy")
         + InputField (value= Items/StandByData/@standByName, readOnly=true)
    To be continued...

  • Cell backgorunds in web dynpro java

    hi experts ,
    I am using web dyn pro java application and in this i need colors which are not available for the cell back ground by default,  please tell me how to get the desired colors for backgound.
    wdContext.currentContextElement().setCellBackground(WDCellBackgroundDesign.BORDER);
    Like this what could be the possible values for obtaining different colors.Please mention value and corresponding color,as shown.
       value -
    corresponding color effect
       fill1      -
      blue.
    or any other way to achieve this.
    thank you.

    Hi,
    i think we dont have that option in the webdynpro developement, once you finished the developement of your application you will integrate in potal, so after that portal have some themes, they difined the colors and layout of evry UI element there in the thems.
    so that you can get different colors for your table. if you got anything else, please let me know that also
    Cheers,
    Apparao

Maybe you are looking for

  • MacBook airport seems dead

    I have a MacBook core duo (no 2) that runs on a wifi network hosted by an airport extreme basestation(those prior to gigabit). I noticed that my macbook could not load pages anymore and connected a ethernet cable. Both my airport and ethernet claim t

  • Information in  export dump

    Hi, What information/data is stored in export/expdp dumps? Are these the ddl and dml statements to be applied while importing/impdp stored in binary form? Regards, Saikat Banerjee Edited by: Saikat Banerjee on Aug 11, 2012 7:25 AM

  • Add one field in LM51 ( while LM51) system should ask Material Scan

    HI gurus , I  am carring out WM inventory through RF device for that, 1.     I want to add one field in LM51 ( while LM51) system should ask Material Scan. 2.     In LM51 system ask SUT twice this time,       if i enter the SUT ones & save the entry

  • How do I change the image to fit the paper

    I have just bought a Deskjet 1510 all in one printer and I cannot get the image size and paper size to the same there is a 1.5cm white area at the bottom  ane on the side. Does anyone have any ideas please.

  • After 10.4.11 update, Safari will not open

    After I made the 10.4.11 update, Safari will not open. When I clic its icon in the Applications folder, just nothing happens. On the attempt to start the program from Terminal, I get the following: $ /Applications/Safari.app/Contents/MacOS/Safari dyl