Skip to Content

How to edit a production order

Using asp.net, I would like to show and edit the articles and ressources from a production order. Any clues how I can do it ? Maybe a tutorial that does something similar not necessarily in asp.net

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 25, 2017 at 02:44 PM

    Hi,

    To show the details of the Production Order, you need to use the Tables OWOR, WOR1 and other relevant tables.

    To update the Production Order, you need to include SAPbobsCOM.dll into your project code so that you can get the access to Business Object for Production Order in SAP Business One and later you need to use the code something like this:

    SAPbobsCOM.ProductionOrders oPO = (SAPbobsCOM.ProductionOrders)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders);
    oPO.GetByKey(155);
    oPO.Lines.Add();
    oPO.Lines.ItemNo = "AB 2000";
    int U = oPO.Update();
    
    if (U != 0)
    {
        MessageBox.Show(oCompany.GetLastErrorDescription());
    }
    

    Hope it helps!

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 02:51 PM

    Hello, thank you for the answer, so you mean that in order to show the Production Order details I can use a sql query with the tables I need but when I need to update the Production Order I have to use the SAPbobsCOM?

    Add comment
    10|10000 characters needed characters exceeded