View Single Post
  #5  
Old 31st March 2017, 14:35
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,093
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Actually see if this works:
Code:
	stpapi.handle.subproc( "tdpur4421m000", "tdpur4820s000", "add")	
        stpapi.put.field( "tdpur4421m000", "selection", str$(tcyesno.yes))
	stpapi.continue.process("tdpur4421m000",err)
This should get 8420s000 started - it did on my system. I am thinking you want all you setups for tdpur4421m000 done before that continue. Something like this:
Code:
	i.spooler = spool.open("", "", 1)
	stpapi.set.report( "tdpur4421m000", "rtdpur442101100", spool.device, error.msg )
	stpapi.handle.subproc( "tdpur4421m000", "tdpur4820s000", "add")	
        stpapi.put.field( "tdpur4421m000", "selection", str$(tcyesno.yes))
	stpapi.continue.process("tdpur4421m000",err)
	stpapi.put.field( "tdpur4820s000", "orno.select", str$(load.long(receipts.array(pos.orno,1))), 1)
	stpapi.put.field( "tdpur4820s000", "orno.select", str$(load.long(receipts.array(pos.orno,2))), 2)
	stpapi.continue.process( "tdpur4820s000" , error.msg)
I am not really sure what will happen after the continue on 4820s000, but I think tdpur4421m000 might start processing. I could be wrong, not really sure.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote