Skip to Content
0
Sep 30, 2020 at 07:35 AM

Add production order line SAP B1

139 Views

Buneas Afternoons I am new to Sap B1, I need your help as I can add one or more lines to my manufacturing order, my manufacturing order has route stages and what I need is to enter other products in the first route stage and do in the stages following but I get the following error

My manufacturing order is already loaded with a bill of materials and what I need is to add other products at each stage of the route.

oProducctionOrder.GetByKey(74)

oProducctionOrder.Lines.StageID = 'id ' 'oProducctionOrder.Lines.SetCurrentLine(oProducctionOrder.Lines.LineNumber)

oProducctionOrder.Lines.ItemType = ProductionItemType.pit_Resource

oProducctionOrder.Lines.ItemNo = codigoRecursoSAP

oProducctionOrder.Lines.Warehouse = "Hod"

oProducctionOrder.Lines.DistributionRule = centro

oProducctionOrder.Update

Attachments

vhqln.png (39.8 kB)
cvqow.png (12.2 kB)