TextBox Error Tab Cursor Position

Hi,
How do I position my cursor in my text box.
Sample I do a check of several text boxes and where I have a error: I like to position my cursor.
Sample code, please (C# or VB)
Thank you,
Rune

Hi Rune,
Use the following code
oForm.Items.Item("ITEM_ID").Click()
Regards,
Vítor Vieira

Similar Messages

  • How to assign values to textbox automatically when cursor position changed

    I want to get values based on the values entered in the one textbox when we change the cursor position the value to be automatically loaded in to other text box is it possible please help me .....

    You still haven't explained what a text box is.
    Repeating what you've already said in "BOLD" text doesn't make the question any clearer.
    What does the changing cursor position have to do with anything. I can use the arrow keys to move the cursor without changing the text.

  • TAB cursor position

    Hi!
    I've for example 5 TextInputs. How can I set the position of
    TAB cursor between these TextInputs after export movie? I want to
    have the TAB cursor in the 3rd TextInput.
    Thank you for answers, WISION

    wision wrote:
    > Hi!
    >
    > I've for example 5 TextInputs. How can I set the
    position of TAB cursor
    > between these TextInputs after export movie? I want to
    have the TAB cursor in
    > the 3rd TextInput.
    >
    > Thank you for answers, WISION
    >
    Selection.setFocus("TextInputs");
    and if you want specific order of these fields when TABBING
    through,
    you can use tabIndex.
    Check the help for details descriptions on the action usage.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Error with cursor position on Chart

    Hello
    I'm getting an error with a simple Chart.  I'm trying to show the chart position (using labels and a crosshair) and I'm getting an exception ONLY (it seems) when the program starts up with the cursor above the chart.  If I move the cursor off to
    the side or something I don't get the error.
    Error: PositionToValue method cannot be called prior to calculating position of all chart area elements.
    The error occurs in the MouseMove event handler.
    private void crtPlotData_MouseMove(object sender, MouseEventArgs e)
    Point mousePoint = new Point(e.X, e.Y);
    crtPlotData.ChartAreas[0].CursorX.Interval = 0;
    crtPlotData.ChartAreas[0].CursorY.Interval = 0;
    crtPlotData.ChartAreas[0].CursorX.SetCursorPixelPosition(mousePoint, true);
    crtPlotData.ChartAreas[0].CursorY.SetCursorPixelPosition(mousePoint, true);
    lblXposition.Text = "Pixel X Position: " + crtPlotData.ChartAreas[0].AxisX.PixelPositionToValue(e.X).ToString();
    lblYposition.Text = "Pixel Y Position: " + crtPlotData.ChartAreas[0].AxisY.PixelPositionToValue(e.Y).ToString();
    HitTestResult result = crtPlotData.HitTest(e.X, e.Y);
    if (result.PointIndex > -1 && result.ChartArea != null)
    lblXvalue.Text = "X-Value: " + result.Series.Points[result.PointIndex].XValue.ToString();
    lblYvalue.Text = "Y-Value: " + result.Series.Points[result.PointIndex].YValues[0].ToString();
    }...etc.
    The exception occurs at the "lblXposition.Text" statement.
    For whatever reason if the cursor is above the chart at start up I get the error but I don't know how to prevent it long enough for "calculating position of all chart area elements".
    Any help would be appreciated.
    Thanks

    Yet the event DOES work as long as the cursor is not within the chart boundaries at start up.  ???
    It happens to, but I would rely on the documentation. However, you can set a flag to true in the Paint event of the chart, and in the mouseMove handler, exit if the flag has not been set yet.
    Armin

  • Jsp Tab cursor position problem

    hi, all,
    I have my page written in JSP in which there are two tabs corresponding to two panels. Normally I can click on one tab to move on the panel that I want. But it is very strange that when I can try to click on the tab,, there is just a very small area of the tab element is available to be clicked on (my cursor will change into a "hand" while available, coz with "cursor : hand"in my css file, I can see when it is possible to click on the tab). I really don't understand why...
    Any suggestion? Is there any parameter that I have to define to make the Tab element active wholely?
    Thanks a lot!

    <div onClick="" id="p1tab0" class="tab" style="background-color:#C9E8F8; height:25px; left:0px; top:17px; z-index:2">
    The tab 1
    </div>
    Class tab is defined in a .css file as following:
    .tab {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; position:absolute; text-align: right; border: 2px; border-color:#9CCF63; border-style: outset; border-bottom-style: none; width:120px; margin:0px; cursor:hand;}
    I really can not see where the problem is......

  • Invalid Cursor Position Error

    Help!
    I am using JRun3.1 and developing a web interface to a database. In this particular screen, I am using CachedRowSet (I downloaded this and added it to jrun classpath). I am getting "Invalid cursor position" error.
    I feel there is a problem with the usebean tag.
    This is my code:
    what is wrong with this?
    <%@ page language = "java" import="java.sql.*, java.util.*, javax.sql.*, sun.jdbc.rowset.*" %>
    <%
    String indSub = request.getParameter("indSub");
    String areaname = request.getParameter("selarea");
    %>
    <jsp:useBean id="crs" class="CachedRowSet" scope="session" >
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    crs.setUrl("jdbc:odbc:asphData");
    crs.setCommand("SELECT siccode, sicdesc from siccode where sictitle = '" + indSub + "'");
    crs.execute();
    %>
    </jsp:useBean>
    <%@ include file="header2.htm" %>
    <link rel="stylesheet" href="http://localhost:8100/empData/almis.css" type="text/css">
    <br>
    <br>
    <table align="center">
    <tr><td class="moduleDesign" align="center">Employers Database</td></tr>
    </table>
    <br><br>
    <font size="+2" face="verdana sans-serif">
    <form action="employerDetail.jsp" method="post">
    <p><center><font color="Blue">Employers in the �<%= indSub %>� Industry
    <br>
    SIC Code:�<%= crs.getString("siccode") %>
    <br>State: Utah<br>
    Region: �<%=areaname %><br>
    </font></center></p>
    <p>
    <b>Description:</b>�<%= crs.getString("sicdesc") %>
    </p>
    </form>
    <jsp:include page="footer2.htm" />
    </body>
    </html>
    srajaman2

    Never mind!
    I have to issue a next() command to get to the first line of the resultset!
    srajaman2

  • Invalid Cursor Position Error on Windows XP using CachedRowSet

    Hello, I don't know if this question lies here, but I thought it would be the well suited place so please pardon me if it isn't. I am trying to access multiple pages from my database on my XP machine but I am getting an "invalid cursor position" error when trying to access the next page. I don't know how this error is coming about because it works well on a Vista machine with no errors. I don't know if it is my drivers or something that brings about the problem. I am using mysql connecter 5.1.10, JRE 1.6.0_02 and windows XP SP2
    Below is a simple code that brings the error.
    package Admin; import javax.sql.rowset.CachedRowSet; import com.sun.rowset.CachedRowSetImpl; public class test { public void table() { try { CachedRowSet crs=new CachedRowSetImpl(); crs.setUrl("jdbc:mysql://host:3306/database");         crs.setUsername("User");         crs.setPassword("password"); crs.setCommand("select * from myTable"); int[] keys = {1}; crs.setKeyColumns(keys); crs.execute(); crs.last(); if(crs.getRow()>500){ //new overLimit(); } crs.setPageSize(3); crs.execute(); while (crs.next()) { System.out.print("page one----"); System.out.println(crs.getString(1)); } while(crs.nextPage()){ System.out.println("page two---"); while (crs.next()) { System.out.println("in page two"); System.out.println(crs.getString(1)); } } } catch (Exception e) { e.printStackTrace(); } } public static void main(String []args){ new test().table(); } }

    Yes I am running the same code on both machines. The output I get on the XP machine is shown below. I modified the code I posted earlier and replaced the "page two" text with "page (then page number)" and also omitted the "in page two" text for better readability---------PAGE 0---------
    DB09140110
    DU35463010
    EX29201810
    ---------PAGE 1---------
    EX38341510
    EX40471810
    KZ280299
    ----------PAGE 2---------
    LA130299
    LC130299
    MC081009
    ----------PAGE 3---------
    RZ300502
    VA130299
    VI020209
    ----------PAGE 4---------
    YX101008
    ZE220299
    ZF231105and vista....
    ----------PAGE 0---------
    EX38341510
    EX40471810
    KZ280299
    ----------PAGE 1---------
    LA130299
    LC130299
    MC081009
    ----------PAGE 2---------
    RZ300502
    VA130299
    VI020209
    ----------PAGE 3---------
    YX101008
    ZE220299
    ZF231105

  • Mcedit: cursor position with tab after upgrade to mc 4.8.5 [SOLVED]

    Hello,
    I upgraded to mc 4.8.5-1 a few days ago. Using mcedit:
    If one (or more) TABs were used in a line the position of the cursor is two chars away (to the right) from where it should be. Simply edit the line and you see what i mean. Never had this effect in former versions.
    If the line includes no tab character the cursor position is ok.
    It seems to be a bug - can someone agree?
    Last edited by LessWire (2012-09-14 23:59:55)

    Bug solved with 4.8.6-1 incoming today - thanks!

  • Java.sql.SQLException: Invalid cursor position on saving

    Dear all
    I'm having a problem with saving components on a JSF page. The page is plit in two parts:
    1. Save report details, which are being saved correctly. Here is the code
    public String btnSaveReport_action() {
            // TODO: Process the button click action. Return value is a navigation
            // case name where null will return to the same page.
            System.out.println("Saving the report ... forsi");
            int seqNumber = SequenceNumber.getNextSequenceNo("TB_REPORTS");
            getSessionBean1().setReportFK(seqNumber);
            String reportId = "REP_" + ((String)tfReportName.getText()).replace(' ', '_').trim();
            System.out.println("ReportFK in btnSaveReport: " + getSessionBean1().getReportFK());
            //SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
            System.out.println("Start Date: " + calRepStartDate.getSelectedDate());
            //error(calRepStartDate.getValue().toString());
            //System.out.println("getvalue" + calRepStartDate.getValue());
            try {
                rk = tb_reportsDataProvider.appendRow();
                tb_reportsDataProvider.setCursorRow(rk);
                System.out.println("Setting Values ...");
                tb_reportsDataProvider.setValue("REP_PK", new Integer(seqNumber));
                tb_reportsDataProvider.setValue("REP_ID", reportId);
                tb_reportsDataProvider.setValue("REP_ACTIVE", "Y");
                tb_reportsDataProvider.setValue("REP_SESSION_FK", new Integer(getSessionBean1().getSessionId()));
                tb_reportsDataProvider.setValue("REP_NAME", (String)tfReportName.getText());
                tb_reportsDataProvider.setValue("REP_START_DATE", new java.sql.Date(calRepStartDate.getSelectedDate().getTime()));
                tb_reportsDataProvider.setValue("REP_END_DATE", new java.sql.Date(calRepEndDate.getSelectedDate().getTime()));
                System.out.println("Committing Changes ...");
                tb_reportsDataProvider.commitChanges();
                System.out.println("Refreshing Row ...");
                tb_reportsDataProvider.getCachedRowSet().refreshRow();
                getSessionBean1().getTb_reportsRowSet().refreshRow();           
    //            tb_reportsDataProvider.refresh();
    //            System.out.println("Refreshing Row ...");
    //            tb_reportsDataProvider.setCursorRow(tb_reportsDataProvider.findFirst("REP_PK",new Integer(seqNumber)));
                info("Report Data Saved Successfully!");
            } catch (SQLException sqle) {
                /* error("Cannot update report (SQLException): " +
                        reportId +
                        " : " + sqle.getMessage()); */
                log("Cannot update report (SQLException): " +
                        reportId +
                        " : " + sqle);
                info("Could not save report: " + sqle.getMessage());
                sqle.printStackTrace();
            //tfReportName.setValueBinding("sourceData", getApplication().
            //    createValueBinding("#{newReport.tb_reportsDataProvider}"));
            //tfReportName.setValueBinding("text", getApplication().createValueBinding            ("#{newReport.tb_reportsDataProvider.value['REP_NAME']}"));
            // calRepStartDate.setValueBinding("sourceData", getApplication().
            //    createValueBinding("#{newReport.tb_reportsDataProvider}"));
            //calRepStartDate.setValueBinding("selectedDate", getApplication().createValueBinding            ("#{newReport.tb_reportsDataProvider.value['REP_START_DATE']}"));
            //calRepEndDate.setValueBinding("sourceData", getApplication().
            //    createValueBinding("#{newReport.tb_reportsDataProvider}"));
            //calRepEndDate.setValueBinding("selectedDate", getApplication().createValueBinding            ("#{newReport.tb_reportsDataProvider.value['REP_END_DATE']}"));
            info("Report Name: " + tb_reportsDataProvider.getValue("REP_NAME"));
            tfReportName.validate(this.getFacesContext());
            calRepStartDate.validate(this.getFacesContext());
            calRepEndDate.validate(this.getFacesContext());
            tfReportName.setDisabled(true);
            calRepStartDate.setDisabled(true);
            calRepEndDate.setDisabled(true);
            btnNewQuery.setDisabled(false);
            btnSaveReport.setDisabled(true);
            return null;
        }The problem is that the reportFK is losing its value when I submit the page the second time! I am trying to get the value from the provider or from the rowset, but none work. Here is the code I am trying ...
    public String btnSaveQuery_action() {
            // TODO: Process the button click action. Return value is a navigation
            // case name where null will return to the same page.
            int seqNumber  = 0;
            // Save the query header details to the database  
            try {
                // Start with the query - needed for the link table
                seqNumber = SequenceNumber.getNextSequenceNo("TB_QUERY");
                String queryId = "QRY_" + ((String)tfQueryName.getText()).replace(' ', '_').trim();
                tb_queryDataProvider.setCursorRow(queryRowKey);
                tb_queryDataProvider.setValue("QRY_PK", new BigDecimal(seqNumber));
                tb_queryDataProvider.setValue("QRY_CODE", queryId);
                tb_queryDataProvider.setValue("QRY_NAME", (String)tfQueryName.getText());
                tb_queryDataProvider.setValue("QRY_ACTIVE", "Y");
                tb_queryDataProvider.setValue("QRY_SESS_FK", new BigDecimal(getSessionBean1().getSessionId()));
                System.out.println("Committing Changes ...");
                tb_queryDataProvider.commitChanges();
                System.out.println("Refreshing Row ...");
                tb_queryDataProvider.setCursorRow(tb_queryDataProvider.findFirst("QRY_PK",new Integer(seqNumber)));
                getSessionBean1().getTb_queryRowSet().refreshRow();
                info("Query Data Saved Successfully!");
            } catch (Exception ex) {
                error("Error while saving query: " + ex.getMessage());
                log("Error while saving query" + ex);
                ex.printStackTrace();
            // Now save the link
            try {
                // Start with the query - needed for the link table
                String sql = "INSERT INTO TB_LINK_REPORT_QUERY ( " +
                   "LRQ_PK, LRQ_REP_FK, LRQ_QRY_FK, " +
                   "LRQ_TYPE, LRQ_START_DATE, LRQ_END_DATE, " +
                   "LRQ_ACTIVE, LRQ_SESS_FK) " +
                   "VALUES (?,?,?,?,?,?,?,?)";
                System.out.println("Trying to do the link");
                int linkSeqNumber = SequenceNumber.getNextSequenceNo("TB_LINK_REPORT_QUERY");           
                PreparedStatement pstmt = DBConnection.getConnection().prepareStatement(sql);
                if (getSessionBean1().getReportFK() == -1 || getSessionBean1().getReportFK() == 0)
                    System.out.println("reportFK = -1 or 0!!! Trying from provider.");
                    System.out.println("Report PK is: " + getSessionBean1().getTb_reportsRowSet().getBigDecimal("REP_PK"));
                    getSessionBean1().setReportFK(((Integer)tb_reportsDataProvider.getValue("REP_PK")).intValue());
                System.out.println("Report Foreign Key: " + getSessionBean1().getReportFK());
                System.out.println("Query Foreign Key: " + seqNumber);
                pstmt.setInt(1, linkSeqNumber);
                pstmt.setInt(2, getSessionBean1().getReportFK());
                pstmt.setInt(3, seqNumber);
                pstmt.setString(4, (String)dropDownQueryType.getSelected());
                pstmt.setDate(5, new java.sql.Date(calendarQueryStartDate.getSelectedDate().getTime()));
                pstmt.setDate(6, new java.sql.Date(calendarQueryEnd.getSelectedDate().getTime()));
                pstmt.setString(7, "Y");
                pstmt.setInt(8, getSessionBean1().getSessionId());
                System.out.println("Committing Changes for Link ...");
                pstmt.executeUpdate();
                DBConnection.getConnection().commit();
                System.out.println("Refreshing Row in link ...");
                getSessionBean1().getTb_link_report_queryRowSet().setObject(
                        1, new Integer(linkSeqNumber));
                getSessionBean1().getTb_link_report_queryRowSet().setObject(
                        2, new Integer(getSessionBean1().getReportFK()));
                getSessionBean1().getTb_link_report_queryRowSet().setObject(
                        3, calendarQueryStartDate.getSelectedDate());
                getSessionBean1().getTb_link_report_queryRowSet().setObject(
                        4, calendarQueryEnd.getSelectedDate());
                tb_link_report_queryDataProvider.refresh();
                info("Link Data Saved Successfully!");
            } catch (Exception ex) {
                error("Error while saving query: " + ex.getMessage());
                log("Error while saving link: " + ex);
                ex.printStackTrace();
            return null;
        }The part saving the query with the provider is working correctly. But the part with the link is not working at all (the part with the PreparedStatement). The fact is that the PreparedStatement cannot be executed because I am getting the error at the line
    System.out.println("Report PK is: " + getSessionBean1().getTb_reportsRowSet().getBigDecimal("REP_PK"));Can anyone help please?
    Thanks and Regards
    Joseph

    guys if any of you have an idea just post it. It would be of great help for me. I can't figure out my mistake and its been 2days already and still i am stuck with my problem.
    It displays the table but there is an error "java.sql.SQLException: Invalid cursor position" so i cannot put the counter to the session.

  • Change cursor position?

    I have just completed creating 3 forms with 60+ text fields each with Acrobat X. To my dismay, I've discovered that when one types in the text field, the text appears in the middle (left justified) of the text box instead of at the top.
    How can I fix this/set the cursor position?
    Thanks!

    You need to change the text field(s) to multi-line text fields. This is found within the text field properties dialog in the options tab.
    Andrew

  • Help!!! - When Creating Customer  I get this ERROR "Provide a positive integer for minimum customer balance amount or percent when balance amount overdue type is amount or percent respectively."

    When Creating Customer  I get this ERROR "Provide a positive integer for minimum customer balance amount or percent when balance amount overdue type is amount or percent respectively."
    I tried troubleshooting when I saw the another post and created with a new customer profile class, but still getting an error, though I created another profile like below and attached this to another existing customer it worked, but when I tried creating a new customer it is still giving me the error. I am Using Oracle Applications R12.1.1
    Steps I followed in Creating a New customer Profile
    ==== Make sure the new Customer Profile class which you will create is in active state. Cross check below steps while defining a customer Profile class.. e.g. Name : DEFAULT (and it's active)
    *1) Profile Class Tab :*
    a) Balance FWD Billing : Not enabled
    b) Invoicing --> Tax Printing ( Summarize By Tax Name), Grouping Rule (DEFAULT)
    c) Set Terms as per ur requirement , do allow discount & Override terms
    d) Set Dunning as per your requirement,
    e) Filled in Collectors info as per your requirement with Credit Check enabled...
    f) Receipt --> Auto cash Rule set as 'Standard'..
    *2) Late Charge Profile* Set it as per requirement
    *3) Profile Class Amounts* e.g Say Currency set as "USD"
    a) Credit Limit : 100000
    b) Order Credit Limit : 100000
    c) Minimum Receipt Amount : 1.00
    d) Min statement amount : 1.00
    e) don't put any value in Exchange Rate type (e.g, monthly, Plan etc..)
    f) Minimum Customer Balance : Amount ------> Value: 5.00
    g) Minimum Invoice Balance : Amount ------> Value: 5.00
    h) Minimum Charge per invoice : 1, Maximum Charge per Invoice : 100 Under Interest Charge
    i) mention Type as Fixed Rate, Value : 10
    j) You can avoid setting the Penalty Charge for the time being..
    Step-2_ a) Open a customer ..*go to Bill to site details* --> Click on Profile Tab --> Under Profile Class field please include new profile class which is created by you (e.g DEFAULT) . b) Go to Profile Amounts Tab --> Click(Show) on Currency USD --> Verify the set up here as well   I could see this.
    When I tried creating an new Customer using the new profile, it's repeating the same error. Please help.

    Hi
    You get this error when profile class amounts are not set for all the currency.  Go back to your profile and ensure that the profile amounts are set for all the currencies found, whether you are using it or not.
    Regards

  • Capturing cursor position in edittext

    Hello everyone,
    Anyone who knows how to capture cursor position in edittext in SAP b1 (similar to TextBox.SelectionStart in c sharp)? Please help.

    Hi Taganya,
    I think its not possible
    Refer This......
    Link: [url] Find out Cursorposition in TextEdit
    Link: [url] How to insert text at cursor position in edit text of SAP B1 UIAPI
    Thanks
    Shafi

  • Pro*Cobol Cursor position holding

    I've gotten the error that the data is out of sequence when it goes thru (cursorx opened before this loop of do until);
    START LOOP
    EXEC SQL
    FETCH CURSORX
    INTO ...
    END-EXEC.
    COMMIT
    EXEC SQL
    SELECT ...
    INTO ...
    FROM CMASTER
    WHERE ...
    END-EXEC.
    EXEC SQL
    SELECT ...
    INTO ...
    FROM DMASTER
    WHERE ...
    END-EXEC.
    COMMIT
    EXEC SQL OPEN CURSORD END-EXEC.
    EXEC SQL
    FETCH CURSORD
    INTO ...
    END-EXEC.
    EXEC SQL
    SELECT ...
    INTO ...
    FROM EMASTER
    WHERE ...
    END-EXEC.
    EXEC SQL
    SELECT ...
    INTO ...
    FROM FMASTER
    WHERE ...
    END-EXEC.
    EXEC SQL CLOSE CURSORD END-EXEC.
    EXEC SQL OPEN CURSORE END-EXEC
    PERFORM
    EXEC SQL FETCH CURSORD INTO ... END-EXEC
    UNTIL CONTACT-SW = 'Y'
    EXEC SQL CLOSE CURSORD END-EXEC
    ETC.
    END LOOP.
    My background is Mainframe COBOL... and handling something like this would be done (IBM quoted) if I got it right as;
    Application:
    DECLARE CURSORX CURSOR WITH HOLD FOR SELECT UDF1() ...
    OPEN CURSORX
    FETCH CURSORX ...
    COMMIT
    Care to help me out... not seeing a similar function of "WITH HOLD" to keep the cursor position when it gets back to the top of the loop.

    Hi and welcome to the forum.
    You need to commit only ONCE in Oracle, at the total and complete END of your transaction.
    Never commit INSIDE a loop.
    Only commit when your transaction has completed.
    (Preferrably you let the client, the caller, commit)
    See:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:546822742166
    Can you please post the exact error message as well?
    I'm only guessing it's:
    ORA-01002: fetch out of sequence
    Cause: This error means that a fetch has been attempted from a cursor which is no longer valid. Note that a PL/SQL cursor loop implicitly does fetches, and thus may also cause this error. There are a number of possible causes for this error, including: 1) Fetching from a cursor after the last row has been retrieved and the ORA-1403 error returned. 2) If the cursor has been opened with the FOR UPDATE clause, fetching after a COMMIT has been issued will return the error. 3) Rebinding any placeholders in the SQL statement, then issuing a fetch before reexecuting the statement.
    Action: 1) Do not issue a fetch statement after the last row has been retrieved - there are no more rows to fetch. 2) Do not issue a COMMIT inside a fetch loop for a cursor that has been opened FOR UPDATE. 3) Reexecute the statement after rebinding, then attempt to fetch again.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e900.htm#sthref425

  • Cursor Position in text item - almost there

    Searching the forum I found a post relating to the same problem I am facing but still without solution. The text was :
    "Q:Does anyone know of a way to add a value from a LOV into a text editor, inserting the value at the current cursor position (ie. possibility in the middle of lines of text)."
    Mr. Duncan Mills replied the following but it didn't worked:
    "1) Set Keep Cursor position on in the text field
    2) Have the LOV return into a "working field" possibly hidden
    3) Aftre the LOV has returned a value do a Go_ITEM to the working feild and issue SELECT_ALL; COPY_REGION;
    4) GO_ITEM back to the text Field (the cursor should return to where you left it) and PASTE_REGION."
    I was trying this and I finally found solution just changing "paste_region" to "win_api_shell.sendkeys(whnd,'^V',FALSE)". It's working, but I am getting the message FRM-41008 - Undefined function key.
    How can I disable this message ? (I tried to set :system.message_level to 25 but it didn't work).

    You can trap error messages like that in a Re: Error Trapping

  • Setting the cursor position in a field in XD01 transaction

    Hi,
    I am trying to validate the field Customer type (Path : XD01 > Sales area data > Extras > Additional data) in the transaction XD01 ie: It is a mandatory entry for Customer creation.
    I tried displaying an error message which worked fine. But i want the cursor to be positioned in the Customer type field.
    Is there any possibility for this?

    Santhosh,
    I tried giving "GET CURSOR FIELD v_field LINE v_line" in the exit EXIT_SAPMF02D_001. But no values are getting captured in those variables.
    Moreover they have specified in the documentation as - "However, the variables specified during PAI processing are always initialized". Now this exit is getting called during PAI. Hence i believe that the values will be initialized! Moreover i think that getting the field & line information of the current cursor position is not going to help us!

Maybe you are looking for

  • Error message in BAPI call

    I have imported RFC Interfaces from SAP system. Each interfaces doesn't  have fault message. How to get error message in BAPI call when error occurs? I can catch an exception in BPM but I need to get error message and send it to another system.

  • Unable to read E-Book (in Jar Format) in Nokia Ash...

    Hi, I got Nokia Asha 305 Model.  Tried to read E-Book (which I got in JAR Format) but my phone is not allowing it.  Even though I am able to play games which are available in the same JAR Format.  Please advice.

  • KSB1: wrong output when data is tranfer to excel file

    Hello All, Kindly help me with my problem regarding extracting reprot in KSB1. Example: Doc no.     Cost Ctr.       Val/CoArea Cur      CoCur  Val/ObjCur     ObjCur 00001       1                     10.11                      USD      20             

  • [SOLVED] Pacman syncs repos when doing -Syu immediately after -Syyu

    Hello! I've tried to find information regarding my problem but I've not found any, so maybe you would care to help me (I hope). It's not a big deal for me really, but it is annoying. The problem is as follows: Say I'm about to upgrade my system and I

  • Why can't I scan a regular photo at 1200 x 1200 dpi into Photoshop Elements 11?

    When I try to scan a photo into Photoshop Elements 11 Organizer I get an error message saying it didn't get the file from the device.  File exceeds maximum size allowed.  It's only a regular photo at 1200 x 1200 dpi.  I need it high quality so simply