PeterCraven
8th March 2006, 18:55
I am attepmting to generate inbound with AFS but when I "continue.process", it returns the message "Process is gone". The log file shows that all fields have been assigned properly and Ii can run the session manually and it works fine. Below is my code that assigns the values to the tdilc4203m00 (Generate Inbound) session.
stpapi.put.field( "tdilc4203m000","runnumber",runnumber) | RUN
stpapi.put.field( "tdilc4203m000", "koor.f", str$(order.type) ) | Order Type from
stpapi.put.field( "tdilc4203m000", "koor.t", str$(order.type) ) | Order Type to
stpapi.put.field( "tdilc4203m000", "reno.f", "0") | Receipt Number from
stpapi.put.field( "tdilc4203m000", "reno.t", "999999") | Receipt Number to
stpapi.put.field( "tdilc4203m000", "cwar.f", "" ) | Warehouse from
stpapi.put.field( "tdilc4203m000", "cwar.t", "ZZZ" ) | Warehouse to
stpapi.put.field( "tdilc4203m000", "suno.f", "" ) | Supplier from
stpapi.put.field( "tdilc4203m000", "suno.t", "ZZZZZZ" ) | Supplier to
stpapi.put.field( "tdilc4203m000", "orno.f", str$(order.number) ) | Order Number from
stpapi.put.field( "tdilc4203m000", "orno.t", str$(order.number) ) | Order Number to
stpapi.put.field( "tdilc4203m000", "cprj.f", "" ) | Project from
stpapi.put.field( "tdilc4203m000", "cprj.t", "ZZZZZZ" ) | Project to
stpapi.put.field( "tdilc4203m000", "item.f", "" ) | Item from
stpapi.put.field( "tdilc4203m000", "item.t", "ZZZZZZZZZZZZZZZZ" ) | Item to
stpapi.put.field( "tdilc4203m000", "cntr.f", "" ) | Container from
stpapi.put.field( "tdilc4203m000", "cntr.t", "zzz" ) | Container to
stpapi.put.field( "tdilc4203m000", "loctype", str$(loc.type) ) | Location Type
stpapi.put.field( "tdilc4203m000", "print.recom", "No" ) | Print Advice
stpapi.continue.process("tdilc4203m000",msg)
if not isspace(msg) then
stpapi.end.session("tdilc4203m000")
return
endif
stpapi.put.field( "tdilc4203m000","runnumber",runnumber) | RUN
stpapi.put.field( "tdilc4203m000", "koor.f", str$(order.type) ) | Order Type from
stpapi.put.field( "tdilc4203m000", "koor.t", str$(order.type) ) | Order Type to
stpapi.put.field( "tdilc4203m000", "reno.f", "0") | Receipt Number from
stpapi.put.field( "tdilc4203m000", "reno.t", "999999") | Receipt Number to
stpapi.put.field( "tdilc4203m000", "cwar.f", "" ) | Warehouse from
stpapi.put.field( "tdilc4203m000", "cwar.t", "ZZZ" ) | Warehouse to
stpapi.put.field( "tdilc4203m000", "suno.f", "" ) | Supplier from
stpapi.put.field( "tdilc4203m000", "suno.t", "ZZZZZZ" ) | Supplier to
stpapi.put.field( "tdilc4203m000", "orno.f", str$(order.number) ) | Order Number from
stpapi.put.field( "tdilc4203m000", "orno.t", str$(order.number) ) | Order Number to
stpapi.put.field( "tdilc4203m000", "cprj.f", "" ) | Project from
stpapi.put.field( "tdilc4203m000", "cprj.t", "ZZZZZZ" ) | Project to
stpapi.put.field( "tdilc4203m000", "item.f", "" ) | Item from
stpapi.put.field( "tdilc4203m000", "item.t", "ZZZZZZZZZZZZZZZZ" ) | Item to
stpapi.put.field( "tdilc4203m000", "cntr.f", "" ) | Container from
stpapi.put.field( "tdilc4203m000", "cntr.t", "zzz" ) | Container to
stpapi.put.field( "tdilc4203m000", "loctype", str$(loc.type) ) | Location Type
stpapi.put.field( "tdilc4203m000", "print.recom", "No" ) | Print Advice
stpapi.continue.process("tdilc4203m000",msg)
if not isspace(msg) then
stpapi.end.session("tdilc4203m000")
return
endif