View Single Post
  #3  
Old 28th December 2007, 01:25
gbernal's Avatar
gbernal gbernal is offline
Junior Member
 
Join Date: Oct 2002
Location: Tlaxcala, México
Posts: 27
gbernal is on a distinguished road
Baan: Baan IV c4 - DB: ORACLE - OS: UNIX
Tks Mark.

I see there's nothing running on background. The hangs occurs in both cases. Actually in succed case the SFC orders are generated, the report is shown in the screen, when I close the report window control returns to the api session and it continues working but never finishs. Considering asks missing, I don't think so, for the manually parameters introduction only the Production Serie (firs free number serie) is asked, wich is well introduced.

Here is the code I use:

stpapi.put.field("tdinv3250m000","orno.f","0")
stpapi.put.field("tdinv3250m000","orno.t","99999")
stpapi.put.field("tdinv3250m000","item.f","")
stpapi.put.field("tdinv3250m000","item.t","ZZZZZZZZZZZZZZZZ")
stpapi.put.field("tdinv3250m000","cntr.f","")
stpapi.put.field("tdinv3250m000","cntr.t","zzz")
stpapi.put.field("tdinv3250m000","citg.f","")
stpapi.put.field("tdinv3250m000","citg.t","ZZZZZZ")
stpapi.put.field("tdinv3250m000","cwar.f","T32")
stpapi.put.field("tdinv3250m000","cwar.t","T32")
stpapi.put.field("tdinv3250m000","cplb.f","0")
stpapi.put.field("tdinv3250m000","cplb.t","999999")
stpapi.put.field("tdinv3250m000","grno.sfc.i","62")
stpapi.put.field("tdinv3250m000","grno.pmg.i","0")
stpapi.set.report("tdinv3250m000","rtdinv325001000","D",msg)
stpapi.continue.process("tdinv3250m000",msg)
stpapi.end.session("tdinv3250m000")

end()

Now considering your solution to kill the session. How can I do it?, because there aren't any subprocess running on background and as I've seen the main session, the subsession and the kill parameters must be used:

stpapi.handle.subproc(string session, string sub.prog, string action)

Here also I attach the afs.log generated by the session execution.

Any help will be appreciated.
Attached Files
File Type: log afs.log (1.8 KB, 12 views)
__________________
:Cool:
Reply With Quote