Hi
I get the dreaded -5002 Error when trying to create a Purchase Order referencing a Sales Order.
The variables BaseEntry,BaseLibne contain valid values i've doublechecked that.
is it not possible to generate a referenced Purchase Order this way? If not is it planned?
I use the approach:
oPRDR.CardCode=CardCode
oPRDR.Lines.BaseType = 17
oPRDR.Lines.BaseEntry = BaseEntry
oPRDR.Lines.BaseLine = BaseLine
retval = oPRDR.Add()
btw. I'v tried it without:
oPRDR.CardCode=CardCode
but didn't work either.
tia