cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Purchase Order from Sales Order via DI

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
Active Contributor
0 Kudos

Hi Philipp,

This is a bug. Please log it on Service Marketplace.

Sorry,

Frank

PS:

I have just been asked that question by another partner as well.

He could even create a PO based on a SO that with demo databases (PL18 + PL21), but not in a real customer database (not 100% sure about the PL)

He is going to inform Support about that issue...

Answers (0)