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

Similar Messages

  • I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. Please help, restoring setting even didn't helped.

    I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. The mobile carrier signal as well as WIFI suddenly drops zero and are then restored automatically. Sometimes i cannot conenct to WIFI even standing infront of WIFI router. Please help, restoring setting even didn't helped.

    Update: my phone's connecting to the WiFi again. I don't know what did the trick. I did nothing since reinstalling the software. It hadn't worked then, it is now. I tried connecting to my dad's phone's hotspot( he uses a Moto G), and it worked. I then tried connecting to the WiFi at a friend's house, and when I came back home, my phone was able to connect to my WiFi! Is it of any significance that my friend's router doesn't require a password? My issue has been resolved( for now; I hope I'm not counting my chickens before they've hatched). For anyone facing a similar issue, I suggest you try everything I did:
    1. Turn your router off for a minimum of 30 seconds, turn it back on and try connecting.
    2. Click on the WiFi network you are connected to, scroll to the bottom, tap "Renew Lease".
    3. Do a soft and hard reset.
    4. Reset network settings.
    5. Back your data up, erase all content from settings menu, restore from backup.
    6. Reinstall your software( put it in recovery mode).
    I am not sure which of the above worked for me. Make sure you try everything. If none of the above works, take it to a genius bar or an authorised service provider. Good luck! :)

  • Downloaded yosemite continuity is not working with my iPhone 6.  Both on same wifi network and iCloud account.. not sure how to set it up any help is appreciated

    downloaded yosemite continuity is not working with my iPhone 6.  Both on same wifi network and iCloud account.. not sure how to set it up any help is appreciated

    Connect your iPhone, iPad, iPod touch, and Mac using Continuity

  • HT1695 Hi. I just bought new Ipad Mini. I don't have network to connect to. Its my first owning one i don't know how to set it up. Help...

    Hi. I just bought new Ipad Mini. I don't have network to connect to. Its my first owning one i don't know how to set it up. Help...

    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Why my app store i phone 5 change to malay language? I need english language, the region was set in malaysia. Help!!

    why my app store in i phone 5 change to malay language suddently? I need english language, and the region was set in malaysia. Help!!

    Settings > iTunes & App Store > Apple ID: > View Apple ID > sign in and change Country/Region.

  • ORA-01000: maximum open cursors exceeded (please help / JDBC guru needed)

    ORA-01000: maximum open cursors exceeded
    I am getting this error when trying to execute 2,500 Sql DDL statements. I am executing the statement with:
    public boolean execute(String sql) ( like stmt.execute(sql); )
    After each execute() I close the statement ( like stmt.close() )
    I tried taking this a step further and decided to close and reopen the database connection after every 100 Sql statements processed and I still get this exception when continuing.
    ORA-01000: maximum open cursors exceeded
    Any help will be greatly appreciated. I need to figure how to close the cursors or how to finish processing all 2,500 statements. I do not have control over the init.ora file and can not increase the max cursors. I hope to figure out how to close the cursors so that no tweaking of the init.ora file is needed.
    ChrisTD

    Why dont you allocate dukes for this problem ???
    am getting this error when trying to execute 2,500 Sql DDL statements. I am executing the statement with:
    public boolean execute(String sql) ( like stmt.execute(sql); )
    After each execute() I close the statement ( like stmt.close() )
    What kind of DDL is that? are you using any cursor operations to fetch the data? What kind of query does this sql parameter contain?
    Look there is only 3 solutions for this kind of problem.
    1) shutdown the database and restart it.
    I dont think closing connection will shutdown the database as you
    told.
    2) shutdown the database access init.ora and increase the
    OPEN_CURSORS and then restart it.
    You told that you dont have access to init.ora.
    3) close every cursor that you open.(Probably you are not closing the cursor once you fetch the data).

  • Anyone know setting primary key deferred help in the bulk loading

    Hi,
    Anyone know by setting primary key deferred help in the bulk loading in term of performance..cos i do not want to disable the index, cos when user query the existing records in the table, it will affect the search query.
    Thank You...

    In the Oracle 8.0 documentation when deferred constraints were introduced Oracle stated that defering testing the PK constraint until commit time was more efficient than testing each constraint at the time of insert.
    I have never tested this assertion.
    In order to create a deferred PK constraint the index used to support the PK must be created as non-unique.
    HTH -- Mark D Powell --

  • TS1398 my i pod touch is in recovery mode and it keeps saying i cant restore because my internet setting are incorrect please help.

    my i pod touch is in recovery mode and it keeps saying i cant restore because my internet setting are incorrect please help.

    Try disabling the computer's antivirus and firewall during the download and  restore. If still problem come back with the exact wording of the error message.

  • My wifi-connection stops by taking some distance from my router, let's say 4 meters (12feet) reseting network setting etc, doesn't help

    my wifi-connection stops by taking some distance from my router, let's say 4 meters (12feet) reseting network setting, etc, doesn't help!
    any suggestions?
    jonathan

    neuwerld wrote:
    Ohh thanks guys!
    It worked as a charm, and thanks Brisbin33 for the autostart.sh tip.
    So the thing that caused my whole system not to work as it should was that I forgot to put a "&" after conky?
    haha that´s kinda anoying I have been sitting and looking through like a milllion files looking for the answer
    But again, really thanks!
    /Neuwerld
    that little "&" sends the conky process to the background freeing up the current process (your autostart.sh script) to finish doing what it's doing so you can move on to running openbox itself.  with this in mind, it should be obvious why keeping conky in the foreground would cause problems.
    also, replacing it with (sleep 1 && conky) & means... wait a second, when that's done successfully (&&) run conky, and put all of that () to the background.  that way openbox comes up immediatly and only a second later you've got your panel and monitor.
    all this after .xinitrc and before openbox

  • My talk talk email account was set up by a helpful apple employee to only send mail using an iname account (it worked perfectly well before this). How do I undo this?

    my talktalk email account was set up by a helpful apple employee at one of their shops to only send mail via an iname account.
    It had worked perfectly well before.
    I have tried but been unable to undo this. Help!

    From the Mail menu bar, select
    Window ▹ Connection Doctor
    Look for the unwanted SMTP (outgoing mail) account in the window that opens. Double-click it. Another window will open, showing a list of all the outgoing mail accounts. The unwanted one will be selected. Click the minus-sign button to delete it, then click OK.
    If there's more than one unwanted account, repeat.

  • Set cursor in Control String component

    Hello:
    I would like to set cursor in "Control String" automatically when I open my VI. If I open my VI, cursor should be seen automatically in the text field of "Control String". The user hasn`t set cursor by mouse into this field. Has anybody an idea how can I do?
    Thanks!

    Create a property node for the control on your block diagram and set the Key Focus property value to TRUE.
    http://zone.ni.com/reference/en-XX/help/371361H-01​/lvprop/ctrl_key_focus/
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • 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

  • Set cursor alv grid (not using objects)

    I got a question on ALV GRID (not using objects), please let me know if you have pointers. Thanks.
    Output has 2 screens both has different contents. The output is generated using internal table1 and 2 and using FM  'REUSE_ALV_GRID_DISPLAY_LVC'  (both screen use same FM).
    First screen has multiple pages of output (say 10 pages). User scrolled page 5 and line 10 of first screen and then double clicked it takes to screen #2. After completion of screen #2, the back arrow should get back to page 5 and line 10 of screen #1. Currently the back arrow gets to screen#1 page 1 and line 1. How to remember the cursor position in alv grid and instruct the cursor to go there?
    Appreciate the input.
    Note: I tried "set cursor line n" with "Scroll" command but no luck. http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba47e35c111d1829f0000e829fbfe/content.htm

    Thanks for the inputs.
    FYI, I got it implemented using method  CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->set_current_cell_via_id
    The method is called by 'REUSE_ALV_GRID_DISPLAY_LVC' form 'PF_STATUS_SET' when the ALV grid output is presented each time.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          i_bypassing_buffer       = 'X'
          i_callback_program       = gc_repid
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout_lvc            = lwa_layout
          it_fieldcat_lvc          = git_fc_lvc
          i_default                = ' '
        TABLES
          t_outtab                 = git_data
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      FORM alv_event_pf_status_set USING rt_extab                
                                 TYPE slis_t_extab.
      DATA lo_ref1 TYPE REF TO cl_gui_alv_grid.
    *Get the reference to class "lo_ref1" for the ALV report
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = lo_ref1.
    *set the focus of cursor in ALV
      CALL METHOD lo_ref1->set_current_cell_via_id
        EXPORTING
          is_row_no = gv_row. "row number where you want to focus the cursor
      ENDFORM.

  • How to set cursor in perticular field Table Maintence generator?

    Hi
    All
    I have created a table with 2 fields  Start_date and End_date. Now my requirement is i have to validate the both date field as Start_Date must be LESS than or EQUAL to End_Date. In table maintenance maintenance generator i have created a event VALIDATE_DATE in event 21. Its validating perfectly. The issue is after the ERROR message the Cursor is going to the key field. I want to set the cursor at End_Date field.
    I used
    data:ly_pos type i.
    IF NOT start_date LE end_date.
        SET CURSOR FIELD 'TABLE_NAME-END_DATE' LINE sy-linno OFFSET lv_pos.
        MESSAGE exxx(MsgClass).
    ENDIF.
    Its working for the FIRST time i am entering the new data. Next time the cursor going to the KEY field.  I have been asked not to write code in SE80. Anyhow i have to set the cursor in table maintenance maintenance generator event.
    Can anybody help?

    Hi Sourav,
    Please follow the below method:
    Go to Maintainance Screen (where you want the cursor setting). Goto Status - > Remember the screen name -> Double click on Program name.. Open Object list and expant Screen Tree -> double click on the same screen Number -> Go to its first tab attributs -> Change Mode -> Do F4 on Cursor Position field -> Choose the field where you want the cursor.
    But this way will always set the cursor at the HardCoded Field Name.
    Thanks,
    Preyansh

Maybe you are looking for

  • Questions about forms users once the form is completed

    I am on a Macintosh platform, OX 10.5 (Leopard), using Adobe Acrobat Professional that came with CS3 (version 8 I believe - I am not in front of that computer at the moment). I have creted a few forms in LifeCycle, but now my boss wants this to be co

  • Why won't my iPhone 5S show up in iTunes?

    I know there are a lot of posts about this; basically, I am running Windows 8.1 on my laptop and I have downloaded the newest iTunes software. When I plug my iPhone 5S (ios 8.0.2) into my laptop, Windows recognises it, but iTunes will not. I have tri

  • InDesign does not package fonts used in placed .AI files

    When we package a project for our print vendor, placed .AI files containing fonts do not get collected. I know those fonts are embedded in the .AI file when printing from InDesign, but sometimes our prep vendors need to make last minute edits to thes

  • Are  DBMS_AQ.REGISTER callbacks functional on Oracle XE?

    I'm trying to get callbacks for oracle streams to work on ORACLE XE. I'd like to be able to perform a demo of using JMS to fire a pl/sql procedure. There are a million other ways of doing this, I'm sure. The idea is to enqueue a message and have the

  • Occi::Number compilation problem in Linux

    Hi, I got following error when I complile my application which uses OCCI (Oracle C++ Call Interface) shiped with Oracle 9.2. I added the compiler flag -Dlint . When I dont add the compiler flag I dont get following error. My machine is running RedHat