mitchell
6th May 2011, 16:32
I have created a session which will first run tdsls4402m000 – Print Picking Lists and then it will run a new custom report. I need the picking list number generated from the session tdsls4402m000 returned so that I can use it in my customized report.
What I have so far …
In my custom session, I call the standard Baan session tdsls4402m000 and run a report.
stpapi.set.report("tdsls4402m000","rtdsls44020100c",spool.device,error.msg)
stpapi.continue.process("tdsls4402m000",error.msg)
import("parent",proc_num)
get.var(proc_num,"free$",ret.pino)
message("returned pino %s",ret.pino)
if not isspace(error.msg) then
message("Error when setting report: %s", error.msg)
endif
stpapi.end.session("tdsls4402m000")
Within the report script for rtdsls44020100c I added the following:
after.program:
ret.pino = tdsls045.pino
export("free$",ret.pino)
ret.pino is extern in both the custom session and the report script.
ret.pino seems to be zero all of the time, even though a picking list is generated.
Thanks
Barb
What I have so far …
In my custom session, I call the standard Baan session tdsls4402m000 and run a report.
stpapi.set.report("tdsls4402m000","rtdsls44020100c",spool.device,error.msg)
stpapi.continue.process("tdsls4402m000",error.msg)
import("parent",proc_num)
get.var(proc_num,"free$",ret.pino)
message("returned pino %s",ret.pino)
if not isspace(error.msg) then
message("Error when setting report: %s", error.msg)
endif
stpapi.end.session("tdsls4402m000")
Within the report script for rtdsls44020100c I added the following:
after.program:
ret.pino = tdsls045.pino
export("free$",ret.pino)
ret.pino is extern in both the custom session and the report script.
ret.pino seems to be zero all of the time, even though a picking list is generated.
Thanks
Barb