View Single Post
  #1  
Old 27th March 2017, 16:14
cherokee's Avatar
cherokee cherokee is offline
Senior Member
 
Join Date: Jan 2003
Location: Montreal, Canada
Posts: 290
cherokee is on a distinguished road
Baan: Baan IVc3 A&D - DB: Oracle - OS: IBM AIX
Question tcqms1204m000 AFS doesn't work

Hello all,

I am trying to run session tcqms1204m000 (Process Inspection Orders) but, doesn't work, no error, no nothing.

The session has three forms. Running the session manually; I noticed that when hit continue on form 1,
the session jumps to form two to request for fields values(I enter them) and then hit continue (on form 2) and works.

I tried to mimic the same process with api's and does nothing this session.

"
HTML Code:
stpapi.put.field("tcqms1204m000","mpro.f",str$(etol(tcqms.mpro.by.origin)))
        stpapi.continue.process("tcqms1204m000",error.mess) |-->> first continue
        stpapi.put.field("tcqms1204m000","orgn.f",str$(etol(tcqms.orgn.purchase)))
        stpapi.put.field("tcqms1204m000","orgn.t",str$(etol(tcqms.orgn.purchase)))
        stpapi.put.field("tcqms1204m000","orno.f",str$(i.orno))
        stpapi.put.field("tcqms1204m000","orno.t",str$(i.orno))
        stpapi.put.field("tcqms1204m000","pono.f",str$(i.pono))
        stpapi.put.field("tcqms1204m000","pono.t",str$(i.pono))
        stpapi.put.field("tcqms1204m000","opno.f",str$(i.opno))
        stpapi.put.field("tcqms1204m000","opno.t",str$(i.opno))
        stpapi.put.field("tcqms1204m000","srnb.f",str$(i.srnb))
        stpapi.put.field("tcqms1204m000","srnb.t",str$(i.srnb))
	stpapi.continue.process("tcqms1204m000",error.mess)| ->> second continue"
 if not isspace(error.mess) then
                message(error.mess,0)
                stpapi.end.session("tcqms1204m000")
                return(false)
        endif
        stpapi.end.session("tcqms1204m000")
Any ideas?

Thanks,
__________________
Carlos Gonzalez CPIM,CSCP

Last edited by cherokee : 27th March 2017 at 16:20.
Reply With Quote