Position Cursor on a specific SO line in VA01 / 02

Hi,
  I have a requirement to do some validation in the User Exit, SAVE_DOC_PREPARE for VA01 / 02. If there is a Error, I want the cursor to be positioned on the specific line item which had this error. Please note the above exit gets called the user presses the 'Save' buttn, so this can happen from any screen.
Regards,
SG..

why don't you do the same thing with incompletion log procedure...system will take the user to that particular field and he can proceed with 'save' option in both VA01/02.
Reward Points if it helps,
Regards,
N

Similar Messages

  • List Output - how to position cursor back to Page 1, line 5, column 90.

    Hello,
    I have a report program that calculates and writes a Grand Total at the end of a multiple page report.
    The program can not calculate the Grand Total until the end of the program.  Pages are displayed as Subtotals are calculated. My user wants the Grand Total to also be displayed at the top of Page one.    I am able to write to any line and column position just fine using the Skip to Line command.
    But I can not find a way to return to Page 1 then write the value.  I have tried
    SCROLL LIST TO FIRST PAGE   and I have tried to reset the sy-pagno value prior to the write
    statement.   Is there a way to page back and write to a report list?
    Thanks
    MPersson

    Check this sample code:
    Here page no like 1 of totpage is inserted to top of every page. Similarly u can display total to each page.
    REPORT ZLTEST3 NO STANDARD PAGE HEADING
    LINE-COUNT 65
    LINE-SIZE 80.
    DATA: NUM_PAGES_C(10) TYPE C.
    PERFORM WRITE.
    PERFORM GET_TOTAL_PAGENO.
    TOP-OF-PAGE.
    WRITE:/(SY-LINCT) 'TEST - TEST' CENTERED.
    WRITE: / SY-DATUM, 60 SY-PAGNO,'of', '*****'.
    SKIP.
    *& Form WRITE
    text *
    --> p1 text
    <-- p2 text
    FORM WRITE.
    DO 200 TIMES.
    WRITE:/ 'TEST', SY-LINNO.
    ENDDO.
    ENDFORM. " WRITE
    *& Form GET_TOTAL_PAGENO
    text *
    --> p1 text
    <-- p2 text
    FORM GET_TOTAL_PAGENO.
    WRITE SY-PAGNO TO NUM_PAGES_C LEFT-JUSTIFIED.
    DO SY-PAGNO TIMES.
    READ LINE 2 OF PAGE SY-INDEX.
    REPLACE '*****' WITH NUM_PAGES_C INTO SY-LISEL.
    MODIFY LINE 2 OF PAGE SY-INDEX.
    ENDDO.
    ENDFORM. " GET_TOTAL_PAGENO
    Note : this method only works in foreground

  • Is there a way to put the cursor at a specific location in a RichTextBox?

    Is there a way to put the cursor at a specific location in a RichTextBox?
    The following code places the cursor at the start of a RichTextBox:
        RichTextBox RTbx
        RTbx.Focus();
        TextPointer tp = RTbx.CaretPosition;
        tp = tp.DocumentStart;
        RTbx.CaretPosition = tp;
    Not sure how to place it at a specific location other than start and end.
    The RichTextBox has contents.  At this point in the code, I do know the specific "word" in the contents, as well as the position (number of chars) where that word is located.  I just need to programmatically place the cursor at that location.
    bhs67

    Oh sorry, I see I missed something out my original reply.
    I have markup:
    <Grid>
    <RichTextBox Name="rtb">
    <FlowDocument>
    <Paragraph >This is the first paragraph</Paragraph>
    <Paragraph >TSecond paragraph is here</Paragraph>
    </FlowDocument>
    </RichTextBox>
    </Grid>
    Code - this is the window contentrendered event
    private void Window_ContentRendered(object sender, EventArgs e)
    rtb.Focus();
    // TextPointer moveTo = rtb.CaretPosition.GetNextInsertionPosition(LogicalDirection.Forward);
    TextPointer moveTo = rtb.CaretPosition.GetPositionAtOffset(9, LogicalDirection.Forward);
    if (moveTo != null)
    rtb.CaretPosition = moveTo;
    I see the cursor between the t and he of the second "the".
    Note that there are numerous other options such as the commented out line.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • How do I stop the cursor from spontaneously going to Line one space one in Notes?

    How do I stop the cursor from spontaneously going to Line one Space one in Notes?
    I am currently working on a MacBook Pro connected by Wi-Fi or Blue Tooth to my 16GB iPhone 4S; and supposedly to iCloud.  I install every upgrade on each computer till the computer can take no more.  My current MacBook Pro continues to accept upgrades.
    I have been dealing with Address Book foibles since it first came out and the problems seem to get worse rather than resolved.
    Problem #1: When a Company Name is checked to take precedence over a personal name the record/file does not surface during searches.  This has happened for years on all my Macs, including most recently my MacBook Pro and its predecessor PowerBook G4.  How do I fix this?
    Problem #2: The Printing Defaults for Address Book Files are not useful and I can find no way to change them to my own preferences once and for all.  I must reset them for every file every time I choose to print a file.  Is there some way to set the defaults to MY preferences and only occasionally reset them according to my needs?
    Problem #3:  When entering information in "Notes" the cursor randomly and spontaneously goes to line one space one as I am entering information.  How do I stop this?  Then when I cut and paste the misplaced text to where it belongs it may or may not return to once again begin at line one space one and following.
    Problem #4:  When Printing a Record/File from Address Book I would like to use the whole 8.5" x 11" page.  Instead it prints on an 8.5" x 11" page in three columns.  Is there a way to format the output?  I have not found one and the Mac 'Geniuses' do not know of any.
    Problem #5:  Subsequent to one of the upgrades in the last year or so, the search feature does not work.  (I have had this computer since May 2011).  No matter what I type in the search line I am stuck in the 'All' Directory.  To find anyone or anything I must scroll through the address book manually.  Is there a fix to this?
    Problem #6:  Sometimes, when I try to sync my MacBook Pro and my iPhone, the records simply duplicate.  How d I undo this without manually deleting the duplicates?
    Problem #7:  Does anyone know of a third party Address-Book-type App that is better than the Apple version and can easily import over 3000 contacts information?

    '''I had the same problem when I updated to firefox 4. This is how i fixed it:'''
    The problem seems to be caused by the 'New Tab Homepage' add on. So:
    # Disable or remove the 'New Tab Homepage' add on and restart firefox.
    # Download and install the firefox add on called 'NewTabURL' and restart firefox.
    # Click on the Options button for NewTabURL and uncheck 'Select location bar after loading new tab'
    # Under the 'Default URL for new tabs' heading, choose 'Home Page'
    # Click on the Save button.
    Hopefully, problem solved!

  • 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

  • Finding the position of the end of a line in a JTextPane

    I'm trying to make a JTextPane which expands horizontally if the text being typed in it reaches the right hand edge. To do this I need to know the position in the Document of the end of the current line.
    I've managed to write a method which expands the JTextPane vertically using getEndPosition() in AbstractDocument.
    There is an endLineAction in the DefaultEditorKit which moves the Caret to the end of the line but I don't want to move the Caret, just find the position of the end of the line. I did have a method before which moved the Caret to the end of the line, stored the position and moved it back but that wasn't suitable.
    I suspected the answer was to do with the View but I can't figure out how the View relates to the JTextPane or Document.
    Can anyone help?

    Well, personally I don't think its a good idea to keep changing the size of the text pane as text is being typed and I doubt the solution will be as easy as you think.
    As you type the text will automatically wrap so it will be a little late trying to change the width after the text has wrapped, which means you would need to increase the width "before" text is typed. But then you have another problem because you don't know how much to increase the width by since a single character could be typed or a string of text could be pasted into the text area (people always forget about pasting when doing stuff like this).
    Also if text is removed you would need to iterate through all the line to find the longest line and reset the width.
    Anyway the only way to know the width would be to play with the modelToView() method. If you want to find the end of the current line then you can use the Element.
    Check out my [Text Utilities|http://www.camick.com/java/blog.html?name=text-utilities] class which might give you some ideas on how to use the Element class and modelToView() method.
    which has example of using the above Class and method that might give you some ideas.

  • Cursor in a specific text box

    Hi,
    I would like to know how to automatically set the cursor in a specific textbox (in the front panel) when my window is loaded.
    I tried with the keybinding control (home for example) so if I type home key it goes there but I want this cursor in this specific textbox without typing anything.
    Thank you in advance.
    Sebastien

    Use the KeyFocus property for the control. Right-click on the control, select Create->Property Node->Key Focus. Change it to write and wire a "True" Boolean constant. Do this at the start of the program.

  • How to Set Position Cursor Option to Non key fields in Table Maintenance .

    Hi,
    I have created a Ztable and i am using table maintenance for that table. In TMG ,by default  we have position cursor option to key fields only . User wants that position cursor option for non key fields also. Please help me out of this issue .
    How to provide Position Cursor option to Non key fields.
    Thanks & Regards,
    Prasad.

    Hi Nabheet,
    I tried using TYPE S DISPLAY LIKE E and am setting vim_abort_saving as X and sy-subrc as 4. However, this is also not enabling the fields. In this case, the first 2 fields - key fields are getting enabled but not the required ones. The above snapshot is for the same.
    lv_date1 = table1-date1.
       lv_date2 = table1-date2.
       lv_diff = lv_date2 - lv_date1.
       IF lv_diff LT 0.
         CLEAR: lv_err_msg.
         lv_err_msg = text-005.
         MESSAGE lv_err_msg TYPE 'S' DISPLAY LIKE  lc_e.
         vim_abort_saving = lc_x.
         sy-subrc = 4.

  • Frm-90928 positional parameter after key on command line

    frm-90928 positional parameter after key on command line
    I have an error while i run form module. i am using database 9i with 9iDS. Plz help me to resolve this issue.

    Exactly Francois, 100% true.
    I've noticed that the Forms Builder tries to run the unsaved forms from the user's default home (root) directory, which almost always in windows environment has spaces in it, like "Documents and Settings\...".
    Tony

  • How do we apply receipts to specific invoice lines using LOCKBOX?

    Hi,
    Can we apply a receipt to a specific invoice line using LOCKBOX?
    I mean this......
    we have INV123 with three line L1, L2 and L3.
    I want to apply RCT123 to L2 of INV123.
    Is this possible with LOCKBOX?
    Ketha

    Hi,
    Can we apply a receipt to a specific invoice line using LOCKBOX?
    I mean this......
    we have INV123 with three line L1, L2 and L3.
    I want to apply RCT123 to L2 of INV123.
    Is this possible with LOCKBOX?
    Ketha

  • Positioning/Sorting in Selection list while Refrencing in VA01

    Hi!
    When using VA01 with reference, on Selection list I want to find / position cursor on all items with certain material but program positions me only on first.
    Is it somehow possible to go on next item with entered material or  is it possible to sort items by materials on selection screen?
    Regards,
    Ante

    Hello Godhuli,
    Thanks for the reply, actually that sorting option change the sorting order in the result (i.e on the grid which is displayed when query is actually executed).
    My question was when i have some selection criteria for some variables in a report and on the first screen a list of all those variables appear where i can select or write down the filter values. there i have the option to click so a new small window popsup which shows me the some possible values of that variable and i select from that (based in =,[],* etc....). I want value in that Pop Up window to be sorted on text and by default those values are sorted on "Keys"[ and even in my query properties-> Display options, i have only selected to show "text" and to sort on that in ascending order] so it seems that those options are not governing what i want to change.
    Thanks in advance for your help.
    Regards
    Akshat

  • Add new line in VA01

    hi
    I want to add a new line in va01 when a condition is requested. So for example i put 3 line and when a condition is ok i want to create so insert in vbap a new line in the order. I try with  the badi BADI_SD_SALES_ITEM and ITEM_PREPARE but it's not work . Any idea ??
    thanks

    hI,
    The badi BADI_SD_SALES_ITEM is the purpose of SAP Internal use (Check the Checkbox in Attributes Tab)so u can't implement the BADI.
    try to keep the code even in USEREXIT_SAVE_DOCUMENT/USEREXIT_CHECK_VBAP in MV45AFZB.check the theard
    Re: add a new tab in transaction ME51N
    Regards
    Kiran Sure
    Edited by: Kiran Sure(skk) on May 20, 2008 5:19 PM

  • Displaying cursor at a specific line

    Hi!
    I'm developing a text editor in AWT as a part of an assignment. Now when the text editor is rendered i want to display the cursor at the end of the last line. Did a lot of searching but couldn't find it.
    Plz help.
    Thanks
    Sutirtha

    So, did you read the API for Caret and find a method that does this?
    Sets the caret position to some position.
    db

  • Position Cursor on GRAPH either by dragging it OR entering the dsired position in the Cursor legend

    I've written a VI that allows the user to import a dataset, view it on a graph, and then use cursors to "filter" the range of data that I'm interested in, by sending the cursor.index values from the first graph to an array subset function which feeds a second graph.  The problem is that I'd like to provide the user the ability to position the cursors on the first graph both visually - by dragging - (for "course" control) AND by entering the desired values directly into the cursor legend (for fine control).  The problem is that I cannot find a way to do this, since I have to have the Lock Ring set to “Lock to Plot” in order to capture the index information. According to the documentation, the only way to be able to position the cursors via the Cursor legend is to set the Lock Ring to “Free”, which means the index values are rendered useless, since the cursor is no longer locked to the plot.  If I leave the Lock Ring in "Lock to Plot", and enter a value in the cursor legend, it does move the cursor, but not to where it should.  If I enter a value an x value of 9.0 for cursor 1, the cursor goes to 10.2638.  The next time I enter 9.0, it goes to 9.82794.  I don't understand what the issue is.  Is there a way around this?
    Attachments:
    ppv data filter 3.vi ‏366 KB

    Yes Rudi:  What I want is for the operator to place the cursors by dragging them (just eye-balling it).  The, if they see that the Y cursor (horizontal) is at 10.234, and they want to make it 10, they could simply enter that value in the cursor legend, and the cursor would be placed exactly at 10.  The only way to do this seems to be to select the “Free” option for the cursor.  However, in order to use the first graph to set the boundaries of the second graph, I have to use the Cursor Index from the first as an input to the Array Subset that feeds the second graph.  In order to use the Cursor Index, the first graph has to have its cursor Lock Rings set to “Lock to Plot”.  Am I making this any more understandable, or just rambling?

  • How to determine the position of a word in a line

    hello
    i want to know the position of a word on which caret is at present or the position of the selected word in a line displayed in the JEditorPane. for example, if this line is displayed
    Java is an Object oriented Language.
    if i select "an" then its position i get must be 3. Select Java postion must be 1 and so on.
    thanx in advance
    -Ashish

    Hi,
    you can use a StringTokenizer to break the result of getText() of JEditorPane into words and simply count them until the caret postion is passed. Add a method like this in your JEditorPane subclass:
    public int whichWord() {
    String delimiters = "\n\t "; // checking for new line, tab and space as word breaks
    StringTokenizer st = new StringTokenizer(getText(),delimiters,true);
    int pos = getCaretPosition();
    int count = 0;
    int len = 0;
    while ((len<pos)&st.hasMoreTokens())
    String s = st.nextToken();
    len += s.length();
    if (delimiters.indexOf(s)==-1) { count++; }
    return count;
    }Hope this helps - not tested, coded on the fly into this textbox.
    greetings Marsian

Maybe you are looking for

  • ABAP Mapping Programm error  Urgent

    I am getting mapping error in ABAP Mapping programm. plz help me how to solve <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Request Message Mapping   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://sc

  • GLIBC_2.0 not defined in file libc.so.6

    I am attempting to install the patch 11I.ATG.PF.H Detla 7, got errors at the end with 7 reports not compiling successfully. I went to recompile one report and got the following error message Error Message: /finora/product/10222/8.0.6/bin/rwcon60: rel

  • Integration BPC-BW: BPC Dimensions = CHAR 20

    Hi, When creating BPC dimensions, by default they are created as CHAR 20 info objects. This could give problems when loading from a BPC cube to a BW cube having info-objects with less number of characters ... - I presume this cannot be changed (but c

  • Alternate greeting is not working

                       Alternate greeting is not working on Unity connection 8.X. Only standard greeting is played even after activating alternate one. All users are affected. Please advise.

  • Why does the ipad 3 never fully sync?

    I bought an ipad3 a few months ago, and had so much problem trying to sync it returned it a few days later.  I already had the ipad 1, and wanted to upgrade.  Very disappointed (because I LOVE my ipad) I was given a new one in the shop, only to find