on 2024 Jan 10 7:25 AM
Hi,
i am creating Production Order using DI API. i need to link another production order.
Here is my code
SAPbobsCOM.ProductionOrders oPO = (SAPbobsCOM.ProductionOrders)Global.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders);
oPO.ItemNo = Item;
oPO.PlannedQuantity = PlannedQty;
oPO.ProductionOrderStatus = SAPbobsCOM.BoProductionOrderStatusEnum.boposPlanned;
oPO.ProductionOrderType = SAPbobsCOM.BoProductionOrderTypeEnum.bopotStandard;
oPO.ProductionOrderOrigin = BoProductionOrderOriginEnum.bopooManual;
oPO.ProductionOrderOriginEntry = Convert.ToInt32(BasedPrdOrdNo);
oPO.Add() ;
when i create production order using this code, Sales Order is Linked with created Production Order. How to change that with another production order.
Thanks.
Request clarification before answering.
Hi dinesh.s1,
You should mention the following in your code:
oPO.ProductionOrderOrigin = BoProductionOrderOriginEnum.bopooProductionOrder;
You appear to have the same issue as mentioned in SAP Note 3269021.
The issue has already been fixed in FP2305 for SAP Business One version 10.0.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the answer.i will check with my code. i am not able to access the SAP Note 3269021. can you please share it here.
Hi dinesh.s1,
This is why I have mentioned the SAP Note 3269021.
Can you check the issue in FP2305 or above?
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
User | Count |
---|---|
105 | |
39 | |
6 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.