Purchase order based on Sales order
Hi,
I try to create Purchase order based on Sales order.
The error message :
"Base document card and target document card do not match"
My code:
oPurOrder.Lines.BaseEntry=oSalesOrder.DocEntry
oPurOrder.Lines.BaseLine=oSalesOrder.Lines.Linenum
oPurOrder.Lines.BaseType=17
Could you help me please ?
Tks.
Laetitia
Ibai Peña replied
Hi Laetitia,
AFAIK this wasn´t possible on 2004. Dont really know if it has been fixed on 2005.
I will not suggest you to try to update the database once the Purchase Order is created, using SBO_SP_TransactionNotification, becouse SAP doesn´t allow it.
A couple of related issue could be found on the link bellow:
Regards,
Ibai Peñ