anjunath
12th September 2015, 11:17
Hi,
I am using tdpur4210m100 for processing specific purchase order through AFS.
Have passed same order for 'from order' and 'to order ' ranges and try to invoke process button . But there is an error coming like ' Purchase Approval Command disabled ' . Please mention if you have any solution for this.
please refer below code .
ret = stpapi.find("tdpur4210m100", error) |"tdpur4210m100"
if ret then
stpapi.put.field("tdpur4210m100", "orno.f", purchaseorder.f)
stpapi.put.field("tdpur4210m100", "orno.t", purchaseorder.f)
stpapi.form.command("tdpur4210m100",5,"exec.cont.process",error)
stpapi.continue.process("tdpur4210m100",error)
afs.success = true
else
enter.log(concat$("|","insert ",error))
dal.set.error.message("@"&error)
show.dal.messages(MSG.ALL)
afs.success = false
endif
I am using tdpur4210m100 for processing specific purchase order through AFS.
Have passed same order for 'from order' and 'to order ' ranges and try to invoke process button . But there is an error coming like ' Purchase Approval Command disabled ' . Please mention if you have any solution for this.
please refer below code .
ret = stpapi.find("tdpur4210m100", error) |"tdpur4210m100"
if ret then
stpapi.put.field("tdpur4210m100", "orno.f", purchaseorder.f)
stpapi.put.field("tdpur4210m100", "orno.t", purchaseorder.f)
stpapi.form.command("tdpur4210m100",5,"exec.cont.process",error)
stpapi.continue.process("tdpur4210m100",error)
afs.success = true
else
enter.log(concat$("|","insert ",error))
dal.set.error.message("@"&error)
show.dal.messages(MSG.ALL)
afs.success = false
endif