Hi friends i have doubt on set cursor.

i am using dialog programming. here in the first text field i am auto generating the number, so user should only suppose to enter the values for other repective fields only.but in execution the cursor is positioning at the first field. it should start from the second and so on.
i tried using SET CURSOR FIELD F2. but tbe result is same. please provide me guidence on this.

Hi,
In the PBO of the dialog module,write the following code :
SET CURSOR FIELD `FIELD2`.
Remember the FIELD2 is the name assigned to the textbox of the screen.
Best regards,
Prashant
PS : Please reward all helpful answers

Similar Messages

  • Hi friends i have doubt on select statement

    hi friends, i am using one ztable which contains around 60 fields. i would like to consider in to itab around 52 fields. for this i am using "select * from ztable into itab....". can u please suggest me how can i improve by selecting all the fields and without reducing performance.

    Declare as below:
    Select-options: s_matnr FOR mara-matnr.
    Data: Begin of itab.
      INCLUDE STRUCTURE mara.
    Data: End of itab.
    Clear itab.
    Refresh itab.
    Select * from mara
             into table itab
             where matnr = s_matnr.
    if sy-subrc = 0.
    SORT itab.
    endif.
    OR if you are selecting based on some internal table then use
    FO ALL ENTRIES IN itab1.
    Hope this helps you, it will also improve your performance.
    Reward points and close the thread else revert back.

  • Hi friends i have doubt on collect statement.

    i have some problem with matnr which is repeating no.of times. so i tried using collect and selected some of the fields to collect. Now i need to collect those collected elements in to internal table and need to display those fields in an ouput. for example.
    loop at sumtab.
    matnr type s886-matnr,
    avg1 type p decimals 3,
    total type p decimals 3,
    endloop.
    and now using loop  i am collecting. these fields using my itab.
    loop at itab.
    move-corresponding itab to sumtab.
    collect sumtab.
    clear sumtab.
    endloop.
    ***here itab contains no.of other fields like qty,stock etc.
    so after here i am using ALV to display the itab.
    my problem is how to make SUMTAB fields tobe moved in itab.

    Hi Kalyan,
       The collect statement works like this . (ex)
    data: begin of itab occurs 0,
          name(10) type c,
          value(4) type n,
          end of itab.
    itab-name = 'JACK'.
    itab-value = 100.
    append itab.
    itab-name = 'PAT'.
    itab-value = 200.
    append itab.
    itab-name = 'JACK'.
    itab-value = 200.
    append itab.
    sort itab.
    loop itab.
    collect itab.
    write: / itab-name, itab-value.
    endloop.
    <b>o/p:</b>
    JACK 300
    PAT  200

  • Hi friends i have doubt in dialog programming.

    i am desiging the screen using table control. which is suppose to accept unit of measure as 'car' means carton, kg, and so on. so if i enter numerics it should not accept. can anybody tell me how  can i restrict the user to enter only alphanumerics. thanks in advance.

    Hello,
    U can use the system table field ABCDE for checking if it has only alphabets.
    system field == SY-ABCDE
    Regards
    Anurag

  • Setting Cursor

    Hi ,
    i have a requirement here,actually in one of the UI Screens we have a waherhouse number and than multiple task can be entered in the boxes below ,now my requirement is when ever the user presses enter the cursor should be positioned at the first empty screen,but every time the cursor goes to the warehouse number ,i have tried using set cursor field syntax in the PBO event ,though the sy-subrc retrns 0 still the cursor is not psitioned to teh next input field .
    Appreciate your help on this.
    Cheers
    LK

    hi,
    Have you checked this demo program
    DEMO_DYNPRO_SET_CURSOR

  • The App Store want allow me to download new apps because I have not set up security questions.But I share an iTunes account with my friend. So if I set up the questions will my friend have to use and answer the same thing?

    The App Store want allow me to download new apps because I have not set up security questions.But I share an iTunes account with my friend. So if I set up the questions will my friend have to use and answer the same thing?

    They will have to be answered the first time when purchasing from a new computer or device.

  • I got an iphone 3g off a friend of mine and i have tried to set it up and it wont activate it says it cannot do this at this time and the server is down help me please

    please help me please i got an iphone 3g off a friend of mine and when i have tried to set it up it says that (your iphonecould not be activated because the activation server is temporerally unavailerble. Try connecting ypur iphone to itunes to activate it, or try again in a few muinites. if this problem persists, contact apple support at apple.com/support) but it says the same when i connect it to itunes as well someone help me please

    Hello tom,
    I understand you are having issues activating an iPhone 3G. The following article addresses the exact error message you included:
    iPhone: Troubleshooting activation issues
    http://support.apple.com/kb/TS3424
    Resolution
    - Restart the iPhone.
    - Try another means of reaching the activation server and attempt to activate.
              - Try connecting to Wi-Fi if you're unable to activate using a cellular data connection.
              - Try connecting to iTunes if you're unable to activate using Wi-Fi.
    - Restore the iPhone.
    If you receive an alert message when you attempt to activate your iPhone, try to place the iPhone in recovery mode and perform a restore.
    Thanks,
    Matt M.

  • HT1420 one of my friends borrowed my computer and set up his itunes on it. How do I deauthorize his account from my computer. I do not have any of his information.

    one of my friends borrowed my computer and set up his itunes on it. How do I deauthorize his account from my computer. I do not have any of his information.

    1. Use the Deauthorize All function.
    2. You can't.
    (73688)

  • Set-Cursor In TableControl Help Help Help

    Hello Friends
    Please HelpOut for Sure
    i had an table control which is filled by internal Table itab_emp
    i m applying condition on that internal table
    its giving error message
    i want that cursor should be placed to that position that gives errormessage
    i m sending u code
    Just tell me changes
    LOOP AT ITAB_EMP WHERE MARK = 'X' .
        IF SY-SUBRC = 0.
          ITAB_TEST[] = ITAB_EMP[].
          DELETE ADJACENT DUPLICATES FROM ITAB_TEST.
          LOOP AT ITAB_TEST.
            CLEAR SUM .
            LOOP AT ITAB_EMP WHERE PERID = ITAB_TEST-PERID.
              SUM = SUM + ITAB_EMP-OTIME.
            IF SUM > '100000'.
              MESSAGE E018.
            <b>ELSEIF ITAB_EMP-OTIME > '010000'.
              MESSAGE E017.
            SET CURSOR FIELD ITAB_EMP-OTIME .</b>        ELSE.
              MOVE-CORRESPONDING ITAB_EMP TO ITAB_OTAPP .
              ITAB_OTAPP-OBJID = 1.
              ITAB_OTAPP-INACT = 'X'.
              ITAB_OTAPP-TODTE = ZHR_PR_M_OTAPP-TODTE.
              ITAB_OTAPP-FRDTE = ZHR_PR_M_OTAPP-FRDTE.
              ITAB_OTAPP-IMMHD = ZHR_PR_M_OTAPP-IMMHD.
              ITAB_OTAPP-CRETM = SY-UZEIT.
              ITAB_OTAPP-CREON = SY-DATUM.
              ITAB_OTAPP-CREBY = SY-UNAME.
              APPEND ITAB_OTAPP.
            ENDIF.
          ENDLOOP.
    ENDLOOP.
          endif.
    endloop.
        LOOP AT ITAB_OTAPP INTO WA_ITAB_OTAPP.
          MODIFY ZHR_PR_M_OTAPP FROM WA_ITAB_OTAPP.
        ENDLOOP.
    BOLD lines are the condition checking
    if check all the lines and then if any of the line gives error it reflects now i want to place cursor on that field which is giving error
    sy-tabix will work
    BUT HOW?????
    Hope this time any of the genius gotmy problem
    With Best Regards
    Ruby

    Some of the logic is a bit confusing (would be easier to read if you used the "Code" button in the SDN message editor)... for example:
    LOOP AT ITAB_EMP WHERE MARK = 'X' .
      IF SY-SUBRC = 0.
    ... the "IF SY-SUBRC" won't be reached unless there is at least one row where "mark = 'X'.''...
    Anyhow, where is this code implemented currently?... the usual approach to validating a table control is to have a module called inside the "loop at table control" in the PAI of the screen flow... then the contents of each row on the screen will get passed into your logic a row at a time automatically and the "set cursor field" + "message e999(zz)" type code should work as it will refer to the current row being checked.
    Jonathan

  • SET CURSOR in to commando field

    Hi!
    I wont set cursor in to commando field (the truncation field eg: /nSE80).
    Is it possible?
    I have tried it with SET CURSER FIELD u2018DUMMYu2019 but I donu2019t now the technical name of this field.
    Thanks
    Hermann

    hi
    even i did one table control.
    like i create the new data.
    i type some value in the table control line which in turn is the work area.
    say after one record i press enter.
    then the ok_code will have the previous value. i.e. if ok_code for the create new is say &CRE1. then after typing the data in the record the value ok_code will be &CRE1 only.
    so for that either you have to read the record st in some other internal table and flag is set when user presses the enter.
    say if the user presses the enter many times then modify the other internal tables.
    i suggest if you work with flag and internal table concept then your Table control will not change in GRAY.
    if you have any doubt then i could share with you my code as well because my problem solved like this only.
    thanks
    ekta

  • I have messages in mail that are color-coded as if by a rule, but I have no rules set. How can I correct this?

    The only rule that I ever had in Mail was the default one that color coded messages from Apple blue. I notice that some messages are color-coded brown and I have no rules set at al (hence no rule to turn off.)  Some of the messages are related to viewing online magazine, but not all.  How can I stop this?

    Hi. Thanks for your message.
    Well, I understand what you are trying to say but I thought it was easier to categorize in Apple Mail.
    On Entourage I just click twice on a sender address, record it on Address book and give it a colour that I previously defined as "Work", "Personal", "Customers", "Suppliers", "Friends" or whatever.
    As Apple Mail don't have Address Book as part of it but an outside feature it's very annoying. Of course I am used to use a software and I don't expect now Apple Mail do everything as Entourage but... as someone said it seems Apple Mail stopped in time. The recent version seems the first one ever issued. I hate the way Mail.app handles attachments by placing big chunky previews right in my email. I prefer them to be named attachments listed somewhere else, out of the content of my email. I don't if I can change this via terminal commands? Can you tell me if that is possible?
    I don't understand why Apple Mail have lots of plugins instead of a great improvment from the backstage.
    I use Apple computers since ever and I love this machines but sometimes I don't understand this lake of improvments.
    Take a look at this link:
    http://scottworldblog.wordpress.com/2009/10/12/microsoft-entourage-vs-apple-mail /
    Of course I don't agree 100% with him but some things are true...

  • Set cursor in a specific view of transaction MM01/MM02

    Hi,
    We have to check a condition in the user-exit EXIT_SAPLMGMU_001, for transaction MM01/MM02, and if the condition fails the client wants to set the cursor in a specific field from a specific view. Is it possible? I tried to use the sentence SET CURSOR referenced to a remote program but it doesn't work.  
    Does anybody knows how to solve this problem?
    Thanks in advance
    Regards
    Maribel

    Hi
    I hope, you have read the documetation attached with this Standard Enhancement - MGA00001.
    EXIT_SAPLMGMU_001
    Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
    The customer exit is in function module MATERIAL_UPDATE_ALL. The
    function module checks the data for errors (logical relationships,
    foreign keys, fixed domain values, and so on) when the material master
    is updated.
    Use
    o New fields
    You can make checks possible for new fields of your own. These
    checks must be identical to the checks that you carry out for your
    new fields in online maintenance.
    o Existing fields
    For existing fields, you can extend and intensify the checks.
    You can also change data for descriptions and general material data
    (MARA). For example, the descriptions can be generated from attributes
    of the material.
    Limitations
    You cannot bypass existing checks.
    Interface to Application
    The respective data of the current logical transaction is contained in
    the structures, for example, in structure WMARA for MARA. Nonrelevant
    structures are transferred with their initial values.
    General material data that can be changed (CMARA) has the structure
    MARU. This MARA view contains fewer internal fields than MARA itself. If
    WMARA is filled, CMARA is also filled when accessed.
    The customer exit contains the exception APPLICATION_ERROR for your
    self-defined error situations.
    Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
    terminate the current (logical) transaction and display your message in
    the log.
    Also, I guess, have you put some code in the Includes available with the EXITS and then activated the Project in CMOD.
    <b>Reward points</b>
    Regards

  • How do I set cursor.index to anywhere in the graph array?

    I am using LV 8.5.1 and feeding an XY graph with an X-Y array of data. Only a section of the array is displayed on the graph. I have a cursor (single-plot).
    I would like to set Cursor.Index property node of the cursor associated with the plot to the maximum index value of the graphed array regardless of the XScale range. I don't seem to be able to do it. I cannot set it beyond a certain number. When I rescale the graph I have a new maximum number. Is this what should happen?
    To get around this, I am momentarily setting the XScale.ScaleFit property to 1, which then allows me to set Cursor.Index to maximum (I then immediately reduce my scale range appropriately). I am having to do this before every occurrence of setting the Cursor.Index in case the new setting exceeds the currently allowed maximum value. Just seems a bit clunky.
    Thanks for any help.

    This is no longer a problem. My data is too big to feasibly be fed into a graph so am having to chop it up and use my own index pointer.

  • How to set cursor in table control?

    I have a table control (Screen 300) to display invoice number and amount. For some checks we have around 200 invoices to be displayed.  When user enters the invoice number in invoice text box and click on OK, it should highlight the invoice number and amount row or set the cursor position.
    I have another problem.
    Screen 300 is being called from Screen 200. When the user clicks on OK in 300, 300 is getting closed. Acutally it should be displayed with Cusor position or highlighted row.
    I appreaciate your help ... Thanks

    I believe that you can use the SET CURSOR statement to do the first part of your requirement.  Something like this should work:
    SET CURSOR FIELD w_field LINE w_line.
    Here's the info from SAP help:
    Effect
    : The cursor is positioned on the screen element whose name is contained in upper case in field. The data object field must be character-type and flat. The screen layout or a table control is scrolled in the display so that the screen element on which the cursor is positioned is visible. If the specified screen element is not found, the statement is ignored.
    If the specified screen element is part of a table control or a step loop, the line of the table control or group of the step loop in which the cursor is positioned on the specified screen element must be specified using the addition LINE. For the data object line, the type i is expected. If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop.
    I hope this helps.
    - April King

  • How to set cursor in the beginning of a test in a JTextField in Java Swings

    hi
    I am new to Swing.I have to display a large text in a text field.Whenever I am displaying it is showing the tale of the text.To see the beginning of the text I have to move the cursor using keys.How can I set the cursor in the beginning of the text or how can I display the text with its beginning characters.

    You're practically there...
    You usually put all the jars in the same directory and then specify the class-path attribute in your manifest:
    Class-Path: other.jarYou can of course specify a relative path to another jar:
    Class-Path: lib/other.jarBut that's up to you how you want to package these things.
    I don't think that jars in jars are permitted.
    Hope this helps.

Maybe you are looking for

  • CRM Activity existance check

    Hello Friends, I have a requirement to find wheather the CRM activity exists. The input parameters are activity description and business partner number. Could anybody help me? Thanks, Bunny

  • Can't install Flash Player upgrade

    Can't install Flash Player upgrade on Windows 7 system. Get it downloaded and get message "an exception Runtime error has occured in script".  Message says "new instance of MS Script Editor".  Try to debug and get message "can not create application

  • SharePoint Blog Post Email receipt

    Hi, I have a SharePoint blog post with predefined categories. Now, we email enabled this post. The emails are being  received. However, when a post is received, we are unable to push it into a particular category during the receipt. Is there anyway w

  • Hidden dot files created for each picture

    It appears that Photoshop on an osx machine is also creating a ._PicturesName.jpg file for each jpg in the same folder as the jpg.  Is that a photoshop or osx thing?  is there a way to prevent all those extra files from being created? We put the fold

  • HT3951 Apple TV Purchased Movie Errs Out

    Hi apple experts! I purchased a movie  (Avengers) on apple tv and it will not play (error states content cannot be viewed & try back later which was 2 days ago). It has been charged to my acct. and I dont see a way to redownload it. Other movies I pu