This is the correct forum for AFS posts - please do not start another post in the tools forum. See this thread for Dougs code
. Note the placement of the stpapi.handle.subproc. I think if you remove the one before the form command and replace it with this one stpapi.handle.subproc("tdsls4101s000", "mtdsls00009047","13") it might work. That is assuming of course that your system is the same as Doug Strouds - big assumption.
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.
systems provided free by Baan Board
Play the Google game and help Baanboard get better rankings. Do your part. Click here
to find how.