Options

Problem with production order and component reservation

alsolalsol Member Posts: 243
We have a process where a production orders is generated from the order planning and all components are inserted according the item BOM.

That works as expected but for some reason it does not automatically reserve the components that are on stock. Looking at the code of the Carry Out Action codeunit it should perform an automatic reservation but it does not do it, even for those items that have availability. The result is that if the users don't manually reserve each line, it would suggest all components for purchasing in the order planning. Below the code from codeunit Carry Out Action:
TransferBOM(ReqLine : Record "Requisition Line";ProdOrder : Record "Production Order";ProdOrderLineNo : Integer)
...
ProdOrderComp2.INSERT;
ReservePlanningComponent.TransferPlanningCompToPOComp(PlanningComponent,ProdOrderComp2,0,TRUE);
IF ProdOrderComp2.Status IN [ProdOrderComp2.Status::"Firm Planned",ProdOrderComp2.Status::Released] THEN
  ProdOrderComp2.AutoReserve;
...

Any ideas why this does not work?
Sign In or Register to comment.