baanguy2
17th June 2005, 17:47
I created this AFS for tisfc0101m000 to modify the Qty Ordered, but does not look like the (after modifying the field it comes up with a question and AFS needs to enter ok),
function adjust.production.quantity()
{
long sfc.fnd
stpapi.put.field("tisfc0101m000","tisfc001.pdno",str$(tisfc001.pdno))
sfc.fnd = stpapi.find("tisfc0101m000",errm)
if sfc.fnd = 1 then
stpapi.enum.answer("tisfc0101m000","tisfc0101d",tcyesno.yes)
stpapi.put.field("tisfc0101m000","tisfc001.qrdr",str$(hold.scrap))
stpapi.enum.answer("tisfc0101m000","tisfcs0030",tcyesno.yes)
stpapi.save("tisfc0101m000",errm)
stpapi.end.session("tisfc0101m000")
endif
}
Is this script ok ?
Sending tcyesno.yes works for OK ? don't know and after the session is activated (tisfc0101m000) the session tisfc0505m000 also gets activated,
and hangs, please help me with this.
Thank you,
function adjust.production.quantity()
{
long sfc.fnd
stpapi.put.field("tisfc0101m000","tisfc001.pdno",str$(tisfc001.pdno))
sfc.fnd = stpapi.find("tisfc0101m000",errm)
if sfc.fnd = 1 then
stpapi.enum.answer("tisfc0101m000","tisfc0101d",tcyesno.yes)
stpapi.put.field("tisfc0101m000","tisfc001.qrdr",str$(hold.scrap))
stpapi.enum.answer("tisfc0101m000","tisfcs0030",tcyesno.yes)
stpapi.save("tisfc0101m000",errm)
stpapi.end.session("tisfc0101m000")
endif
}
Is this script ok ?
Sending tcyesno.yes works for OK ? don't know and after the session is activated (tisfc0101m000) the session tisfc0505m000 also gets activated,
and hangs, please help me with this.
Thank you,