Ordering Rows in DB Adapter

Hi ,
We are using SOA suite 10g. In one ESB we have a DB Adapter which inserts into an interface table in oracle 10g database. (R12 EBS)
Database Adapter's operation type is 'Perform an Operation on a Table/Insert or Update(Merge)'.
XML payload has few rows.
After inserting into interface table order of these rows are wrong. Is there a way to order rows based on
a unique number before insertion. Each row has a unique ID number. Something Like (Order By...).
Is there any other way to solve this problem.
I created a File adapter and wrote the output to a txt file. Rows were in order in that File. Problem occurs only when inserting into the table.
Thank You,
sandaruwan.
Edited by: sandaruwan on Nov 10, 2010 8:53 AM

If you are inserting into an open interface table can't you use the insert, not the merge.
Not sure I understand the issue, as in the database you can sort as part of your select statement. It will be the database that will bring back the rows in a different order based on the default sort order, e.g. if you inserted the same rows manually through sqlplus you cannot guarantee the order without a order by.
Maybe if you could explain the issue you are facing to to the incorrect order?
cheers
James

Similar Messages

  • How to add data through matrix from sales order row level to

    user defined document type table ...
    i created matrix in user defined form, i placed one edit text box on that form
    when i entered docnum of sales order the data of sales order row level should have to
    upload to matrix , after fill up the some data in matrix that data should have to add to the user defined document type table
                                any one have code pls post it
                                            thanq

    Hi rajeshwar
    Here is a sample function related to ur senario. just check it out and use the concepts.
    Here I have used a CFL to get the itemcode and I have used a query to  add data to matrix.
    This is a function used.
    Private Sub AddValuesInMatrix(ByRef name As String)
            Try
                'Dim quantemp As Double
                oForm = SBO_Application.Forms.Item("itemdts")
                oMatrix = oForm.Items.Item("matrix").Specific
                Dim rs As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                '//gitemdesc = "SELECT T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] ='" & name & "'"
                oMatrix.Clear()
                rs.DoQuery("SELECT T0.[DocEntry], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[Price], T0.[TaxCode] FROM dbo.[POR1] T0 WHERE T0.[ItemCode] ='" & name & "'")
                rscount = rs.RecordCount
                If (rscount < 1) Then
                    SBO_Application.StatusBar.SetText("No Items Found", SAPbouiCOM.BoMessageTime.bmt_Short)
                Else
                    oForm.Freeze(True)
                    ITE = True
                    For i As Integer = 1 To rs.RecordCount
                        oMatrix.AddRow()
                        oMatrix.Columns.Item("V_5").Cells.Item(i).Specific.Value = rs.Fields.Item("DocEntry").Value
                        oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value = rs.Fields.Item("ItemCode").Value
                        oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.Value = rs.Fields.Item("Dscription").Value
                        oMatrix.Columns.Item("V_2").Cells.Item(i).Specific.Value = rs.Fields.Item("Quantity").Value
                        'quansum = quansum + rs.Fields.Item("Quantity").Value
                        oMatrix.Columns.Item("V_1").Cells.Item(i).Specific.Value = rs.Fields.Item("Price").Value
                        'pricesum = pricesum + rs.Fields.Item("Price").Value
                        oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.Value = rs.Fields.Item("TaxCode").Value
                        SBO_Application.SetStatusBarMessage("Data Loading In Progress Please Wait.....>>> " & i & " / " & rs.RecordCount, SAPbouiCOM.BoMessageTime.bmt_Short, False)
                        rs.MoveNext()
                    Next
                    ITE = False
                    oMatrix.AutoResizeColumns()
                    SBO_Application.StatusBar.SetText("Data Loading Completed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                    oForm.Freeze(False)
                    oForm.Refresh()
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("Matrix Load Function : " & ex.Message)
                ITE = False
            End Try
        End Sub
    -Anto

  • Purchase order row basecard column number

    hi
    any one help me what is purchase order row basecard column number.
    Thanks & Best Regards
    B.Lakshmi narayanan

    Hi,
    Could you clarify your reguest?
    Thanks,
    J.

  • Pick Status in order row

    Hello fellow SAP users
    As stated in SAP note 1036919 the pick status in sales document rows is not reliable anymore becaus the sales order row can be split into serveral picklists and might have a diffrent picking status in each list.
    Our customer howevers is relying on this status for reporting and legal purposes.
    Has anyone encoutered this issue before? And what did you do to work around it?
    Kind regards,
    Andy Grootens

    Hello,
    Try it may it help you
    Make a UDF and entered manually row no.
    Thanks
    Manvendra Singh Niranjan

  • Sales Order - Rows - Warehouse][line 2],'No matching records found 'G/L Acc

    Dear Expert,
    I got an error while i got approval from super user...
    Sale order Draft[Approval]
    item/services=Services
    Sales Order - Rows - Warehouse][line 2],'No matching records found 'G/L Account' (OACT)(ODBC-2028)[msg 131-183]"
    Please Mention me all step

    Hi Kevin,
      In Sales Order document, second Row of the Item section click the
    warehouse code it opens the Warehouse default Setup window
    click accounting Tab check the Account are defined ex Sales Revenue, Inventory A/c etc..
    Regards
    Jambulingam.P

  • Form Settings - Item Cost on Sales Order row

    Hello,
    I used form settings to add the field Item Cost onto my AR invoice row. I tried to add the same with Sales Order form settings but the field is not available when I go to Form Settings. Is there any way to add it? I'm using 8.81 PL09.
    Thank You
    Naomi xxx

    Hi Naomi,
    This is by design. If you want to add, you need a row level UDF plus FMS to display. Because Sales Order is not an accounting document, that is why this field has been omitted. Item cost is available to Delivery and AR Invoice.
    Thanks,
    Gordon

  • Ordered skype voice phone adapter...nothing happen...

    I placed an order on November 14, 2012. The message in my email says that it would ship on November 26, 2012. The message also had a link to track my order. I am a patient sort of fellow. I waited six weeks and today I tried to see what happened to my order. I looked at the link in the message and it is now a broken link. I am beginning to think I am out $59.99 and have no idea how to get my product which I truly wanted or get my money back. I love skype phone service. It's been awesome for the last 4 years. I may have made a grave error in buying a product from the skype store though. There doesn't seem to be anyway to contact someone about my order.  Here is the message I receive below (minus my name and address). At this point, I would cancel the order but alas, there is no link and no phone number to effect a cancellation. Do I call the bank?
    hank you for your order from eBuyNow. We recommend you keep a record of your order number as you may need it for future reference.
    We have created an account for you with your email address as the username.  If you wish to get your password to login to your account, click on the link provided below and click 'forgot my password' and your auto generated password will be sent to your email address.  This will allow you to look at the status of your order at your convenience.
    To login to your account, please go to [invalid URL]
    Please go to [invalid URL] for further information or to send a question to our Customer Support Team.
    ==============================
    ==============================
    ORDER INFORMATION:
          Amount   Product
    ==============================================================
          $59.99   Skype Voice Phone Adapter + 3 Months of Skype C
          $59.99   Subtotal
           $0.00   Shipping & Handling
          $59.99   Grand Total
    You have purchased a back ordered item Skype Voice Phone Adapter + 3 Months of Skype Calling in US and Canada  TALK-1200-3MNA.This product will be available to ship on November 26, 2012.
    BILLING INFORMATION:
    my name and address
    Albuquerque,  New Mexico, 87111
    United States
    my phone
    SHIPPING INFORMATION:
    my name and address
    Albuquerque,  New Mexico, 87111
    United States
    my phone
    ============================================================
    General Information
    eBuyNow is operated by
    eBuyNow Ltd, 704 Stag Building, 148 Queen's Road Central, Hong Kong & eBuyNow Ltd, Third Floor, 207 Regent Street, London W1B 3HH, United Kingdom.
    [invalid URL] Through its websites, eBuyNow offers business and consumer electronics hardware,
    software and services.
    Tax and Duties
    eBuyNow operates across the world and we have
    agreements with the tax authorities of various countries to
    collect tax on their behalf. These taxes have been included
    in the price you pay and are itemized on your invoice.
    No further taxes will be charged.
    Delivery
    We do not charge for shipping - there are no extra costs.
    Goods will be sent to the address given by you in your order.
    Please note that if you are ordering more than one item,
    your goods may be sent to you in separate shipments. Approximate
    delivery periods globally are 7-10 working days.
    Cancelling Your Order
    You may cancel your order within 7 days of delivery for a
    full refund. You will have to return unwanted goods at your
    own cost unless we have not sent you exactly what you ordered.
    You will find full details at [invalid URL]
    Warranty
    eBuyNow supports the terms of manufacturer product
    warranties and will provide a replacement, or at our
    discretion, a refund, for defective products under warranty.
    You can get full details from [invalid URL].
    We will pay reasonable return charges for defective products.
    Applicable Law
    Your contract with eBuyNow is governed by the
    laws of England and Wales.
    ============================================================
    eBuyNow Ltd, 704 Stag Building, 148 Queen's Road Central, Hong Kong & eBuyNow Ltd, Third Floor, 207 Regent Street, London W1B 3HH, United Kingdom.
    PLEASE NOTE THAT THIS IS NOT A RETURNS ADDRESS. FOR ALL
    CUSTOMER SUPPORT QUERIES PLEASE GO TO
    [invalid URL]

    Hi, wmcneillabq, and welcome to the Community,
    Thank you for your letter and report, which I have also alerted eBuyNow to as well.  If you wish to cancel your order, best practice is to cancel your order with eBuyNow first:
    Please go to ebuynow.info/en/contact/lookup.php (add the http:// as this forum does not allow hyperlinks).
    If you wish to file with whatever payment method you used, then of course that avenue is yours to pursue as well.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • How to update row by row  in   Jdbc Adapter sender  ?

    Hi friends ,
                      No i am reading data from a table using select query and resulting data i am keeping in the FTP folder as XML File.
                      I want to
                     1. to  know how many rows i read ? 
                     2. Update the  read completed time in each row of the sender side table . 
               (   I am  using <b>select * from a table where tag='n'  </b> . I am giving this in <b>Query SQL Statement</b> of JDBC Sender adapter processing parameter .
    I am writing update query as update table set tag='y' where tag='n' .
                         Will it perform row by row ?
                     3. Insert in to another R3 System  table  the rows which i read  as a log  .
                          Can  you please give  procedure to do that .
                        Expecting your reply asap .
                        Thank you
    Best Regards.,
    V.Rangarajan

    Hi raj ,
                 Thanks for ur reply .   I am new to xi . Just i am doing a scenario . I can able to read  the ms-sql server table data using jdbc Sender  adapter .
                   Can i use RFC Adapter to insert the values to R3 table ?   
                    If  i have mapped  to rfc fields will it store into the table once we read  the data from ms_sql server table using select query of JDBC Sender  Adapter ?
    Best Regards
    V.Rangarajan

  • Purchase Order Row UDF for Received Qty

    Hi experts,
    Can someone please recommend a way to create a row UDF for purchase orders to show the qty received? We cannot use a simple calculation like Qty-Open Qty because if the row is closed manually, the open qty becomes zero. Another problem is how to prompt the PO to update this value if additional GR PO's or AP Invoices are created. Thanks.

    I should explain the circumstances more clearly. There is no problem with the standard GR PO or AP invoice receiving method. What I want is a reference field on the original PO showing the total qty received to date. For example: total of 1,000 pcs ordered -> 900 pcs received against several GR PO's -> want to see that 900 has been received back on the PO. Then let's say we want to close the PO line 100 pcs short.
    I can think of 2 ways to go about this:
    Method 1: Change the ordered qty from 1,000 to 900 -> row is closed, but lose the reference of the original order qty being 1,000.
    Method 2: Close row manually and maintain the original order qty as reference, but lose b/o qty and it is difficult to tell how many pcs where received/closed short.
    Is there another way to keep all the reference information?

  • What does the InvntSttus field in the Sales Order Rows table mean?

    Hello,
    I have a Sales Order with 8 lines in it. I was trying to bring the last line up in the Pick and Pack Manager to create a Pick List for it so we could ship it. For some reason though, it didn't show up (even though it is open in the SO and my criteria in the Pick and Pack Manager is set to show everything). I checked around and about the only thing I could find that was weird about it (this was done by comparing the line that wouldn't show up with one that had shipped from the same Sales Order) was that the line that wouldn't show up has a "C" in the Warehouse Status (InvntSttus) field. I noticed that all of the lines on that Sales Order that had already shipped had a "C" in this field as well.
    We have since fixed the problem by deleting that row and creating a new one that looks exactly like it. I still want to try and figure out what happened here so that we can avoid it in the future. I guess what I'm asking is if anyone knows what this field does and how it is governed, and also why this may have happened to this row.
    Thanks in advance to whoever can shed some light on this,
    Brent McDonell

    Hi Gordon,
    I'm sorry it took me so long to respond to your post. Anyways, I just really want to know why that row has an inventory status of closed (InvntSttus='c') when the whole row is still open (lineStatus='o') . What could possibly cause the Inventory Status of the item on that line to get set to closed? I don't know of anything specifically that we would be doing that would set that to closed with the whole line still open (mainly because I don't even know what this field is for).
    Please let me know if you have any more light to shed on this. It just perplexes me.
    Thanks again for any info you can give me,
    Brent

  • Order rows by cell value

    Hi guys,
    Trying to make a soccer scoreboard. I want to order the teams (Rows) so that the teams with the most points are on top. Anybody know if there is a way to do this?
    Thanks,
    Chris.

    The old Swing tutorial on Dnd shows how to do this in the ExtendedDnDDemo example:
    https://www.cs.auckland.ac.nz/references/java/java1.5/tutorial/uiswing/TOC.html
    The DnD section has been rewritten for JDK6. I don't know if the new features make this easier or not:
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

  • Sort by order rows were inserted

    Hi,
    How do I kow the rows order their were inserted in a table;
    Thanks
    HP

    You can only retrieve rows in the order of insertion if you populate a column with a date or sequence value (or combination) and then use that column(s) in the ORDER BY clause. ROWID is not an indicator of insertion order.

  • Howto Scenario: Inbound IDOC - 2 rows into JDBC adapter ?

    Hi,
    How can I achieve the following:
    Inbound IDOC into XI, has to be transformed, and 2 rows have to be inserted into a database table.
    I am able to insert 1 row through the XMB2DB_XML mode in JDBC adapter. 
    A solution could be to create an identical XML structure ("access" elements) through mapping, but I am unable to get 2 XML structures from 1 inbound IDOC document.
    Any ideas are most welcome.
    thanks,
    Manish

    Hi Manish,
    On the target side, right-click on the "access" element and select "Duplicate Subtree".  Now, you should have 2 "access" structures to map from the IDoc.
    Regards,
    Bill

  • Ordering rows in JTable

    I have a JTable and I want a user to be able to click on a column header, and have all the rows in the JTable re-ordered by that column.
    Can anyone tell me how to go about this ?

    Yep, there is an example in the tutorial.

  • First row is repeting while accessing multiple rows through Database adapte

    Hi,
    Iam using Database adapter in BPEL process to retrive the data from remote database.In Database adapter i have selected select operation and passing input parameter.
    Actually that adapter needs to return 10 different rows though output variable of that adapter.
    Its returing 10 rows but the first row is repeting 10 times.
    Iam not able to get 10 rows.only first row is repeting.
    Please help me in this.
    Thanks in Advance

    Hi Arik,
    I got the solution.The problem is primary key only.
    Your solution correct.
    Thank u very much for answering this question quickly.
    I have changed the primary key its working fine.
    Could u please explain me what is the problem with primay key exactly.
    Thanks in advance,
    Sreeni

Maybe you are looking for

  • What key combination do i use?

    To drag a box around a part of the screen and then for it took save the area as a picture?

  • My phone says connect to itunes but idk what to do

    My phone i recently bought from one of my friends, i hit update & as it ended it update it said connect to iTunes. Now What?

  • Required tables which touch Transport Request details

    Could any one tell me which table we can get the following information 1)Transport Request released by 2)Transport Request Creation Date 3)Transport Request released date 4)Import to the  systems 5)Imported to the systems on which dates I checked E07

  • I think I may had a kernal panic...

    ...I say think, because I just experienced something on my Quad that has not occured before, or on any of my other Macs, either. I was browsing my EXS library, when suddenly a load of text ( white characters on black background) came up on the upper

  • Export to FLV / F4V from CC 2014

    After updating from PrPro CC to PrPro CC 2014 (or rather from MediaEncoder CC to MediaEncoder CC 2014 i guess) the options to export your sequence to F4V and FLV has vanished. • Am I the only one missing that option? • Is there a work-around? A: No,