Skip to Content
0

How to edit a production order

May 24, 2017 at 03:13 PM

78

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

ANKIT CHAUHAN
May 25, 2017 at 02:44 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Natalia Pedroso Da Silva May 29, 2017 at 02:51 PM
0

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?

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi,

Yes, you got it right. In order to show the details on the form, you can use SQL Query only.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0

hi again... how to get a list of all the production orders? I tried same as BP to create a recordset but there is nothing similar to .GetBPList

0