Skip to Content
0

Stage ID is not set but stages are defined [WOR1.StageId]

Apr 23 at 02:17 PM

34

avatar image
Former Member

I would like to add a new line to my Production Order with Route Stages defined, but I get the above exception. How can I add StageId?

SAPbobsCOM.ProductionOrders order = (SAPbobsCOM.ProductionOrders)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders);
order.GetByKey(46);
order.Lines.Add();
order.Lines.ItemNo = "A1000";
order.Lines.Warehouse = "01";
order.Lines.ProductionOrderIssueType = SAPbobsCOM.BoIssueMethod.im_Manual;
int result = order.Update();
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers