Work order

SOLVED

Where I can find the work order header & material details in C# language?(help-sage100.na.sage.com/.../index.htm In which table I can find those?

Eg: For purchase order I fetch the details from PO_PurchaseOrder_bus. Where I can find the details of work order

Sage 100 Help
help-sage100.na.sage.com

Parents
  • 0
    SUGGESTED

    Depends on your version and product.

    If you really mean Work Order as in the legacy Work Order module, there aren't business objects (or rather only a couple for reading purposes IIRC) and one of your only options is to query the data through ODBC. 

    Refer to the file listing for the Work Order module.

    https://help-sage100.na.sage.com/2019/FLOR/#File_and_Table_Listings/WOFileSizes.HTM

    If you mean Work Tickets and have Sage 100 Manufacturing (JobOps) installed, IIRC, the data is stored in SO_SalesOrderHeader and SO_SalesOrderDetail and you can query it through ODBC or use SO_SalesOrder_Bus and its Lines object handle property.

    If you mean Work Tickets and have Sage 100 Production Management installed, the data is stored in JT_WorkTicketHeader, JT_WorkTicketDetail, and JT_WorkTicketStep and you can query it through ODBC or use JT_WorkTicket_Bus and its Steps and Parts object handle properties.

  • 0 in reply to David Speck

    do you know how to loop through  the parts? - i am calling the script from the work ticket entry

    I tried this - it didnt work

    oBusObj.Parts.MoveFirst()
    Do
    retVAL = oBusObj.Parts.GetValue("ItemCode$", itemcode)

    oBusObj.Parts.movenext()
    Loop Until CBool(oBusObj.Parts.EOF)

    thanks in adcance

Reply
  • 0 in reply to David Speck

    do you know how to loop through  the parts? - i am calling the script from the work ticket entry

    I tried this - it didnt work

    oBusObj.Parts.MoveFirst()
    Do
    retVAL = oBusObj.Parts.GetValue("ItemCode$", itemcode)

    oBusObj.Parts.movenext()
    Loop Until CBool(oBusObj.Parts.EOF)

    thanks in adcance

Children