oslavko
28th February 2005, 14:36
Dear all,
since we have only an object of tdsls4404m000, Print invoice session, we had to create an api session to add some controls over script, that is runing below. Everything is running well, except report that we have choose is not the one that is printed. Each time just a report, that is listed as the first one in session tdsls4404m000 is printed.
Script to call session tdsls4404m000:
{
co=stpapi.change.view("tdsls4404m000")
co=stpapi.change.view("tdsls4404m000")
stpapi.put.field("tdsls4404m000", "uporabnik", "slavkood")
stpapi.put.field("tdsls4404m000", "printedf", str$(printed.api))
stpapi.put.field("tdsls4404m000", "inv.date", str$(inv.date.api))
stpapi.put.field("tdsls4404m000","orno.f", str$(orno.f.api))
stpapi.put.field("tdsls4404m000","orno.t", str$(orno.t.api))
stpapi.put.field("tdsls4404m000", "definite",str$(definite.api))
stpapi.set.report"tdsls4404m000","rtdsls44040101z","HP_RC_LS4",errstring)
| stapi.print.report("tdsls4404m000",errstring)
stpapi.continue.process("tdsls4404m000",errstring)
stpapi.end.session("tdsls4404m000")
}
Did somebody have a same problem?
Thanks,
Slavko
since we have only an object of tdsls4404m000, Print invoice session, we had to create an api session to add some controls over script, that is runing below. Everything is running well, except report that we have choose is not the one that is printed. Each time just a report, that is listed as the first one in session tdsls4404m000 is printed.
Script to call session tdsls4404m000:
{
co=stpapi.change.view("tdsls4404m000")
co=stpapi.change.view("tdsls4404m000")
stpapi.put.field("tdsls4404m000", "uporabnik", "slavkood")
stpapi.put.field("tdsls4404m000", "printedf", str$(printed.api))
stpapi.put.field("tdsls4404m000", "inv.date", str$(inv.date.api))
stpapi.put.field("tdsls4404m000","orno.f", str$(orno.f.api))
stpapi.put.field("tdsls4404m000","orno.t", str$(orno.t.api))
stpapi.put.field("tdsls4404m000", "definite",str$(definite.api))
stpapi.set.report"tdsls4404m000","rtdsls44040101z","HP_RC_LS4",errstring)
| stapi.print.report("tdsls4404m000",errstring)
stpapi.continue.process("tdsls4404m000",errstring)
stpapi.end.session("tdsls4404m000")
}
Did somebody have a same problem?
Thanks,
Slavko