Skip to Content
Former Member
Jun 29, 2012 at 09:17 PM

Previewing an Invoice before adding it


Hi Experts,

I've replaced all the standard marketing documents (PLD's) with Crystal Reports versions. Now I've found something the old PLD's can do that my reports can't. When you copy a Delivery to an Invoice and then click print preview before you add it, the PLD report actually shows the correct invoice data while my crystal report fails with invalid invoice number or shows the completely wrong invoice. I understand why mine doesn't work because the invoice isn't actually in OINV yet and my Command SQL statement in CR looks in OINV for {?DocKey@}. Can anyone tell me how the system PLD version shows the correct information? Is it transferred directly from the form some how? Is there a way to make it work in CR?