ODBC Tables and Reporting

SOLVED

I use Microsoft Access to automatically generate pick tickets from BW based on available inventory. My problem is I cannot get the line items to "sort" correctly to match how they print on BW Invoices and Sales Orders.

How does BW sort order the line items?  I see there is a "next record" field, but nothing that can be used in a simple SQL statement. ??  Anyone figure out an easy way to accurately sort OELineItems in a 3rd party reporting application?

Parents Reply Children
  • 0 in reply to mline1
    verified answer

    The SKOELineitem will take into account when a line is inserted after the fact.  When you insert a line item on an order after it has been saved it removes the existing SKOELineitem records and writes new ones.  So if you have part A, B and C as line items and they were entered in that order then it would assign say SKOELineitem 291 to part A, 292 to part B and 293 to part C.

    Then if you save the order and go back in and insert part D in between part A and B and save it. It will remove SKOELineitem 291, 292 and 293 and assign 294 to part A, 295 to part C, 296 to part B and 297 to part C.  It will always be in the order entered.

  • 0 in reply to CShular

    When I delete a row in a order, it remain in the sage db.

    If i made a select with sql i see in oelineitem the new rows and the deleted rows.