I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox.
I got the error message: -5002-Base document card and target document card do not match.
The message itself can be understandable, because the Customer and Supplier has a different CardCode.
I am sure I am using a correct code
oPo.Lines.BaseType = BoObjectTypes.oOrders oPo.Lines.BaseEntry = sDocEntry oPo.Lines.BaseLine = iLineNum
Where oPo is a Purchase Order document.
sDocEntry is a Sales Order docentry and iLineNum is a Line number of Sales Order
For other A/R to A/R and A/P to A/P documents are working fine.
Has anybody found this error or has anybody created application like this?
I am using sbo2007PL46