lsingletary
7th February 2011, 22:00
I'm trying to use STPAPI to confirm purchase receipts in Baan 5 session
whinh3520m000. I'm able to link a PO to the receipt but when I try confirming the receipt or a line on the receipt, it doesn't work. I have read different threads on here, but I haven't seen anything regarding this. Any assistance would be appreaciated.

lsingletary
11th February 2011, 18:19
Any help would be greatly appreciate!!!

lsingletary
11th February 2011, 21:26
This is the solution to my problem. I need to use stpapi.enum.answer first.

stpapi.enum.answer("whinh3520m000","whinh3009",tcyesno.yes)
stpapi.form.command("whinh3520m000", 5, "option.confirm.receipt.li",error.msg)

mark_h
11th February 2011, 22:28
If you post in the AFS/OLE/DDC forum (http://www.baanboard.com/baanboard/forumdisplay.php?f=59) you would probably get more answers and quicker. I don't read all the forums all the time. In that forum you can also search and find code(or solutions) that may help you. And when in doubt in that forum post your code and issue - we might see right off what could be causing the problem.