nitai_das
27th August 2007, 08:13
We have written one AFS program for "Maintain Purchase Order" with following command

#define POHDR.SESS "tdpur4110m000"

stpapi.put.field(POHDR.SESS,"tdpur040.orno", str$(oser1))
stpapi.put.field(POHDR.SESS,"tdpur040.suno", repf.item)
stpapi.put.field(POHDR.SESS,"tdpur040.cotp", repf.cwar)
stpapi.put.field(POHDR.SESS,"tdpur040.cpay", str$(repf.qty))

when we run the session, "maintain purchase order" form appearing in the terminal for each stpapi command and unable to put the value. We have written many AFS program but first time facing this type of problem.

Pl. advice if any one know the solution of this type of problem.

Regards.

mark_h
27th August 2007, 13:58
I do not recall ever seeing this problem. I would say you need to contact Infor support - sounds to me like it is something in the session itself. Do you own source for the session?

en@frrom
27th August 2007, 14:26
I don't know if this has to do with it, and I might be wrong since I don't remember the field names in Baan IV, but I find following variables/assignment strange:
- tdpur040.suno seems supplier to me..? You assign repf.item...

nitai_das
28th August 2007, 07:31
Problem has been solved by using the session tdpur4101m000 instead of
tdpur4110m000

mark_h
28th August 2007, 13:50
Interesting - never tried that session, but when I run tdpur4110m000 it starts tdpur4101m000 on our systems. Learned something new today.