Db VisOrder in doc lines tables the same as DI API document_lines index??

Is it safe to assume that the VisOrder column in the db would match the DI API document_lines index from a documents object?
I do a query and get the DocEntry, VisOrder
I then want to get the corresponding row using the DI API
doc.GetByKey(DocEntry);
doc.Lines.SetCurrentLine(VisOrder);
would that logic be safe?
From my testing it looks okay, but would be great if anyone can confirm this for me!
Thanks,
Daniel
Message was edited by: Daniel Archer

I have since found that this isn't the case and using VisOrder doesn't necessarily get the right line in the document objects.
You can see this if you create an order, then put multiple items into it and then use insert new row in the middle of the items.
The DocumentLines object retrieved through the document object isn't ordered in the same way as the SAP order screen...
  makes things awkward when you want to set the right line, as you have to loop through each document line checking for doc.Lines.LineNum == intLineNum ???
Daniel

Similar Messages

  • How to display 2 lines in the same column header of jTable?

    Please could you help me to display 2 character lines in the same column header of a JTable?
    And how to make a fusion between to cells?
    Thank you very much

    In Swing, most components will accept text in the html format
    http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
    You can then use <br> tags to make your header text multiline

  • Print data in two line in the same column

    Hi,
    In a tabular Report I want to print a column (eg:Description,) in two lines in the same cell.
    Since the description is too long. Is it possible in report 6i. Or any other solution for this?
    Please reply.

    Hello,
    For the Description field set the Vertical Elasticity to EXPAND. Then it will adjust automatically based on data.
    -Ammad

  • How can i check if the lines are the same ?

    private bool displayed;
    private void PostMessage()
    for (int i = 0; i < ScrollLabel._lines.Length; i++)
    for (int x = 0; x < WordsList.words.Length; x++)
    if (ScrollLabel._lines[i].Contains(WordsList.words[x]) && !displayed)
    displayed = true;
    lineToPost = ScrollLabel._lines[i];
    PostFacebookWall(LongaccessToken, lineToPost + Environment.NewLine + Environment.NewLine + "נשלח באופן אוטומטי כניסיון דרך תוכנה");
    I call this method in a timer tick event every second.
    But if the variable string lineToPost is
    identical it will not send it again. But it might be a situation that the lineToPost may
    contain the exact same word inside but the whole line is not the same so i want to send it.
    Only if the whole line is the same, then don't make the postFacebookWall
    If the whole line is not the same but the same word is the line as in other line(s), then use thePostFacebookWall method.
    I'm using a bool variable
    so it will not send the same line over and over again.
    I would like it to send the line(s) once, regardless if there is only one line or if there are more than one line.
    The problem is the way I'm using the bool now,
    it will send a line and then will never send any other line at all.
    I tried to change the method to this:
    // key: line index, value: sent line
    private Dictionary<int, string> sent = new Dictionary<int, string>();
    private void PostMessage()
    for (int i = 0; i < ScrollLabel._lines.Length; i++)
    var line = ScrollLabel._lines[i];
    if (sent.ContainsKey(i) && sent[i] == line) continue;
    sent[i] = line;
    if (WordsList.words.Any(line.Contains))
    PostFacebookWall(LongaccessToken, line + Environment.NewLine + Environment.NewLine
    + "נשלח באופן אוטומטי כניסיון דרך תוכנה");
    numberofposts += 1;
    label7.Text = numberofposts.ToString();
    But its not good it keep sending many times the same lines.
    This is the timer tick event code:
    private void timer1_Tick(object sender, EventArgs e)
    counter += 1;
    if (counter == 10)
    scrollLabel1.Reset();
    scrollLabel1.Text = " ";
    scrollLabel1.Invalidate();
    readableRss = RssReader.covertRss("http://rotter.net/rss/rotternews.xml");
    this.scrollLabel1.Text = readableRss;
    scrollLabel1.Invalidate();
    counter = 0;
    PostMessage();
    Im updating the text/lines every 10 seconds .
    And calling the PostMessage method every second.
    And when im calling the PostMessage it should it should call inside the method PostFacebookWall only when the whole line is not identical to other lines and if a word in words is exist in any line.
    The variable WorldList.words is string[] contain some words(string).
    For example if i have this line:
    "hello this is a test"
    So the word test exist in words so post this line.
    Then if i have another line :
    "hello this is a test" so in dont post this line since its the same.
    But if i have a line: "hi this is a test" the word test exist but the whole line is not the same as above so post this line.
    And of course if there is a different line with a word that exist like: "my name"
    Then post this line too.

    Hi Chocolade1972,
    C# forum:
    Discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools.
    I’m afraid that it is not the correct forum about this issue, I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Connect two internet lines on the same cisco router 3945 series

    i have two internet lines from the same provider and i have one router i want to connect the two lines in the same router
    any ideas !!!!!!!!!!!!!

    Hi,
    No problem, similar treatment. Follow 
    1. Create IP SLA/Track for both internet link
    2. Break your LAN subnet into 2 smaller subnet
    3. Create route map, Match with 1 subnet & route the traffic towards 1st internet link
    route-map General_Internet_Traffic permit 10
    match ip address 115
    set ip next-hop verify-availability 10.1.1.1 track 1
    set ip next-hop verify-availability 11.1.1.1 track 2
    4. Create route map, Match with 2 subnet & route the traffic towards 2nd internet link
    5. Configure NATing/PATing over the interface, selecting by route-map 
    ip nat inside source route-map General_Internet_Traffic interface FastEthernet0/0 overload
    - Ashok

  • From SAP to EXCEL (OLE), add new line in the same cell

    Hi all !
    All that I want to do is ... to write in the same cell different lines as i using "Alt + Enter" command.
    Excel´s macro report like this printing "Hello World" on different lines of the same cell.:
    +ActiveCell.FormulaR1C1 = "Hello" & Chr(10) & "World"+
        +With ActiveCell.Characters(Start:=1, Length:=22).Font+
            +.Name = "Arial"+
            +.FontStyle = "Normal"+
            +.Size = 10+
            +.Strikethrough = False+
            +.Superscript = False+
            +.Subscript = False+
            +.OutlineFont = False+
            +.Shadow = False+
            +.Underline = xlUnderlineStyleNone+
            +.ColorIndex = xlAutomatic+
        +End With+
        +Range("B1").Select+   
    So my problem is how to translate this to ABAP code.
    Thank you so much in advance!!

    Never mind.  I found my answer in another post:
    EXISTING CUSTOMERS- That add lines post 7/7/2011, will NOT be able to choose the $29.99 unlimited data feature

  • Query 0: Runtime error There is already a line with the same key. with para

    Dear all,
    I have a query with several variables. One of the variables is Version. When I use certain values e.g. 1,2 or 3, I can generate the query without any problem. However, when I use the other values e,g, 4, 5, or 6, the query gives me with the following error messages :
    1. Query 0: Runtime error There is already a line with the same key. with parallel processing via RFC
    2. Error while reading data; navigation is possible
    3. >> Row: 174 Inc: LRSDRPU02 Prog: SAPLRSDRP
    Error 1
    Query 0: Runtime error There is already a line with the same key. with parallel processing via RFC
    Message no. DBMAN428
    Error 2
    Error while reading data; navigation is possible
    Message no. BRAIN289
    Diagnosis
    An error occurred while reading the data. The query result is therefore empty or inconsistent and is not buffered in the OLAP cache.
    Procedure
    You can continue to navigate or return to the last navigation step.
    Error 3
    >> Row: 174 Inc: LRSDRPU02 Prog: SAPLRSDRP
    Message no. RS_EXCEPTION301
    Diagnosis
    En error has been triggered. This message specifies where in the coding the error occurred. This helps you to localize the error quickly.
    May I know what causes this error and how to troubleshoot it?
    Thank you.

    Venkat,
    You are either a genius or working for SAP.
    In any case, your solution solved my problem.
    Thanks heaps!

  • To group the lines with the same items before TO

    Hello,
    We use an external tool (linked to SAP WM) to prepare the orders.
    When I have a order with two lines with the same item (because a line free of charge) and when I generate the Transfer Orders, I have two lines and we have to go twice to the picking...
    Could you give me a solution to group the lines?
    Thx in advance

    Hi
    You have various options here depending on whether you have other middleware in place and what skills you have on-site.
    How are you transferring the information to your WMS system??  Idocs / BAPI / Files  ???
    Mark

  • Error -RFC_ERROR_SYSTEM_FAILURE- There is already a line with the same key.

    Hi,
    While executing a report in BEx am faced with the error above. It ocurs when i take a drill down on Purchase order number field ( free charact). I tried by inserting this info-object into rows but still teh same error occurs and the connection with teh server is snapped.
    The said field is also an user input field and the variable does not seem to the working as data other than the input values is fetched. There is a dump in ST22 with teh following error analysis-
    You wanted to add an entry to table
    "\FUNCTION-POOL=RRK0\FORM=EMPTY_COPY_DAT_N\DATA=<L_TSX_CSKID>[2
    you declared
    with a UNIQUE KEY. However, there was already an entry with the
    same key.
    This may have been in an INSERT or MOVE statement, or within a
    SELECT ... INTO statement.
    Plz guide
    Regards,
    Saurabh Diwakar

    Hi,
    take a look at this SAP note:
    Term ITAB_DUPLICATE_KEY; SAPLRRK0; empty_copy_dat_n_01
    SAP Note Number: [966238 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393636323338%7d]
    Regards
    Andreas

  • Invoices matched to the same line on the same PO going on Hold

    Hi,
    We have started to setup some of our suppliers to use iSupplier, to automate the process of shipping and invoicing. With some suppliers, once they create the ASBN/Invoice the goods may take up to 30 days for delivery. Invoice are being automatically imported into AP to be matched to the same open PO (same line and item). When Invoice validation runs (nightly), these Invoices are going on hold as at any point in time we may not have received the total goods for which we are invoicing, even though we may have received the total matching to the first invoice. This is intended functionality that tolerance level checks are only made at the PO Shipment level and not at the Distribution level. However, the intention of introducing iSupplier was to automate the invoicing process does anyone know if there's a way of avoiding having this invoices go on hold ?
    Thanks,
    Regina.

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

  • Multiple MM schedule lines for the same date

    Hello All Gurus,
    I am facing a problem where the MM schedule lines are divided into various quantites for the same date. For example on 02/11/2010 the total quantity is 120, it is appearing in the below form in ME38:
    02/11/2010 - 40
    02/11/2010 - 40
    02/11/2010 - 40
    Although this is not an error, but my client is not happy with this. Can someone tell me why I am getting this error? Is it because of the rounding value that we maintain in MRP 1 view of material master record? Or is there any other setting that I am missing?
    Please let me  know. I would be very much thankful to you.
    Thanks and Regards,
    Umakanth

    Hi,
    Before changing the setup, note that sometimes it is beneficial to split one demand into multiple delivery schedules. Especially if the demand is bigger than equipment type (container/truck etc.). If you want to manage inbound transportation for such delivery schedules, it is much simpler to do this when each delivery schedule is not bigger than one equipment.
    Regards,
    Dominik Modrzejewski

  • How can I change the length of multiple lines at the same time?

    This just seems like it should be a no-brainer, but obviously for me it isn't.  I'm trying to change the length of multiple lines, that are at different angles, at the same time, in CS4.  Basically, I design the face of dials used for airplane instrument gauges (like RPM, Torque, etc), and they have gradiation marks (lines) located all around, similar what a clock looks like with the hour and minute gradiation marks (lines).  Is there a way to select all the lines, that I know are the same length, and change it to a different length, that's accurate to the 1/100th of an inch?  It would just be like selecting multiple lines that have all the same stroke, then using the stroke box to change the stroke weight from .025in to .030in.
    I've used the transform box to change the 'height' of a line before, but the line has to be at 90 degrees (straight up and down), and that won't work for the lines that are at, say, a 45 degree angle.
    I hope i'm explaining this in a way that someone will understand. If not, I can sure try to clarify more, or insert the picture so you could see what i'm talking about.
    Thanks for any help you can give!

    OK, after fiddling around with everyone's ideas, I think I finally got it. I knew there had to be something with proportions between W and H, but couldn't figure out the math, until Jacob answered with:
    "If each line must be strecthed from the inner/outer end, you may select each and use the Transform palette, choosing the right Reference Point, multiplying by the proportion in W or H (1.75/1.5), and Ctrl/Cmd clicking."
    Now, I basically did everything above, (but I couldn't figure out what you were talking about with the Ctrl Clicking thing), except after figuring out the right proportion (which ends up being so small you guys would die if I told you the number; the numbers I gave earlier were just an example and much larger than what i'm really working with) I just clicked the little chain next to the W and H boxes to constrain the proportions. I then put the new number (multiplied proportion by whatever was in W) in the W box. The line lengthened perfectly toward the center of the dial, keeping the correct angle!
    And Harron-Thanks for the link to Teri's, It is going to help with some things I do, but most of the dials I design don't have equal distances between each gradiation mark, and the blueprints I work off of usually have exactly what distances that the grad. marks are supposed to be. So, after selecting one of my grad marks that is already at it's correct place, I then use the rotate tool and Alt-Clicking the very center of the dial, I can then put in exactly what distance I want the next grad. mark to be at, I hit copy (instead of OK) and there will be a new grad. mark exactly the correct distance from my original. Then if I want to have the 3rd grad. mark I just hit Ctrl-D and it will copy another mark to the next position. I don't know if you necessarily wanted to know all that, but i thought i'd explain why I like doing it that way.
    A BIG thanks to everyone! I'm really a AI newbie and am the only one at my company that knows how to use it, so I don't have anyone close to ask stupid questions to. So I appreciate all your help!

  • Is there any way to combine 2 seperate lines on the same account into a family plan?

    My wife and I have our phones on the same account, but the Verizon Wireless salespeople signed her up as 4 separate lines instead of a family plan. I admit she was an easy mark for the salesperson, because she went in to get two smartphones and walked out with 3 smartphones and a home voip device. I was at work and wasn't expecting her to be taken advantage of in such a way, or I would have had her wait to join when we both had the time to do it together. Now we have a smartphone collecting dust in a drawer, and a home phone that only rings when telemarketers call.
    Long story short, we are going to have to cancel two of the lines that we don't use, probably pay etf's, and all that fun stuff. If we are to keep Verizon, we will need to switch our lines from being separate services to a family plan or it just won't be worth keeping this carrier. 2gigs of data just simply isn't enough for us both, considering the family plans for 2 people that are comparably priced have 10gigs.
    Has anyone here run into a similar situation? Any help you can give in fixing this would be greatly appreciated.

    How are you on the same account if they are separate lines?
    Were any of these lines on the Edge payment option?

  • Why do I have constant static on one tv and now the land line has the same thing

    I have had static on one tv for I forget how long. The tv is on  the highest volume possible and some stations you can hear and others have a constant buzzing sound. Now the land line has a constant static as well. Granted the land line is an old fashioned push button phone but it has been fine for two years now. I have a smart phone and never bothered to get a cordless, but this should have nothing to do iwth the static I now have on the land line. The tv could be the speakers but why is it different from channel to channel. Paying what we all pay, our land lines, internet and cable should be working properly.

       On that TV that's low, try this:
    To control the speaker volume of the motorola box itself:
    1) Press and hold the AT&T button on the remote
    2) Press the "OK" button and release it and the AT&T key at the same time.  All the universal lights will flash twice.
    3) Type 955.  The AT&T key will flash twice
    4) Press "Enter"
    Now you can turn your motorola box all the way up. Once you get it set how you want, we need to set the remote back to control the TV volume instead of the motorola box.  To do that:
    1) Press and hold the AT&T button on the remote
    2) Press the "OK" button and release it and the AT&T key at the same time.  All the universal lights will flash twice.
    3) Type 955.  The AT&T key will flash twice
    4) Press "TV".  The TV light will flash twice
    All of this is assuming that the TV button on your remote is already programmed to control your TV.  
    Good luck
    Chris
    Please NO SD stretch-o-vision or 480 SD HD Channels
    Need Help? PM ATT Uverse Care (all service problems)
    ATT Customer Care(all other problems)
    Your Results May Vary, In My Humble Opinion
    I Call It Like I See It, Simply a U-verse user, nothing more

  • Change the colour of lines in the same string indicator.

    Hi everybody,
    I'm getting crazy, because I'm looking for the way to change the colour of
    the lines I want in the same string indicator.
    I'm doing an application to control an instrument by serial port, and I'm
    concatenating the lines that this instrument gives me, but there is some
    line that I would want to change its colour, because there has been an alarm,
    for instance. And I only can change all the string.
    Is there any way to do this? I don't know.
    Could you please help me?

    Thank You Very Much.
    The fourth step is a little bit difficult to understand, but what I've done
    is all the three first steps, and in the fourth one I've made an array (I32)
    of the lines that I don't want to highlight and connect it to Disabled �tems.
    Do you think this is a good solution?
    Thank you again for your help. I really needed someone to help me, because
    if not I would still be with the STRING INDICATOR.
    Timothy John Streeter wrote:
    >Hi Carlos>>I'm sorry for being too brief with the last email.>>1) Place
    an 'Multiple Selection Listbox' on your front panel.>>2) Create an attribute
    node. Make the attribute 'Item Names'.>>3) Put every completed line into
    the last element of an array, and then pass the array
    >to the attibute node. (This build the list>of strings in the Listbox).>>4)
    To highlight a line, make an array containing the line numbers (I32) that
    you want
    >highlighted and pass it the terminal of the>Listbox.>>Hope this is more
    helpful>>Tim>>Carlos Jorge wrote>> Thank you for your help, but I don't
    understand what you have told me. What>> I have to pass to the indicator
    node, and what is this indicator node? My>> problem now is the last thing
    I have to do.>>>> Could you please explain my doubt with more detail?>>>>
    Thank you a lot.>> Timothy John Streeter wrote>
    >Hi Carlos>>Try using a 'Multiple Selection List Box' indicator instead of>>
    a string indicator. You>> >can highlight a line by adding the line>number
    to an array and pass it to>> the indicator node.>>Tim>>Carlos Jorge Granadino
    wrote>> Hi everybody,>>>>>> I'm getting crazy, because I'm looking for
    the way to change the colour of>>>> the lines I want in the same string indicator.>>
    I'm doing an application>> to control an instrument by serial port, and I'm>>
    concatenating the lines>> that this instrument gives me, but there is some>>
    line that I would want>> to change its colour, because there has been an
    alarm,>> for instance. And>> I only can change all the string.>> Is there
    any way to do this? I don't>> know.>>>> Could you please help me?>>

Maybe you are looking for