Babu N
11th May 2022, 21:43
Hi Friends,
I am using stpapi commands to invoke reprint invoice from my customized session.
Below is the code:
stpapi.put.field("cisli2405m000","f.sls.inv.company", str$("082"))
stpapi.put.field("cisli2405m000","r.reprint.option", str$(etol(cisli.rprn.by.invoice)))
stpapi.put.field("cisli2405m000","prnt.lang", str$(etol(cisli.lang.txct)))
stpapi.put.field("cisli2405m000","f.fin.company.f", str$("082"))
stpapi.put.field("cisli2405m000","f.fin.company.t", str$("082"))
stpapi.put.field("cisli2405m000","f.trans.type.f", str$(tran.type))
stpapi.put.field("cisli2405m000","f.trans.type.t", str$(tran.type))
stpapi.put.field("cisli2405m000","f.document.f", str$(docn.number))
stpapi.put.field("cisli2405m000","f.document.t", str$(docn.number))
stpapi.set.report("cisli2405m000", "rcisli120011maz", "D66", error)
stpapi.form.command("cisli2405m000",5,"exec.cont.process",error)
stpapi.end.session("cisli2405m000",error)
The input value for "r.reprint.option" always sets to default value "cisli.rprn.by.billing.req (Select by Invoicing Batch)" even after I have changed the value to "cisli.rprn.by.invoice (select By Invoice)", because of this the report is generated for the option "Select By Invoicing Batch" and prints all the invoices, despite me feeding a specific transaction type/ Document No for "f.trans.type.f, f.trans.type.t" & "f.document.f, f.document.t"
If someone can show light on this and identify what is wrong with my code. It will be of great help.
Thanks
Babu N
I am using stpapi commands to invoke reprint invoice from my customized session.
Below is the code:
stpapi.put.field("cisli2405m000","f.sls.inv.company", str$("082"))
stpapi.put.field("cisli2405m000","r.reprint.option", str$(etol(cisli.rprn.by.invoice)))
stpapi.put.field("cisli2405m000","prnt.lang", str$(etol(cisli.lang.txct)))
stpapi.put.field("cisli2405m000","f.fin.company.f", str$("082"))
stpapi.put.field("cisli2405m000","f.fin.company.t", str$("082"))
stpapi.put.field("cisli2405m000","f.trans.type.f", str$(tran.type))
stpapi.put.field("cisli2405m000","f.trans.type.t", str$(tran.type))
stpapi.put.field("cisli2405m000","f.document.f", str$(docn.number))
stpapi.put.field("cisli2405m000","f.document.t", str$(docn.number))
stpapi.set.report("cisli2405m000", "rcisli120011maz", "D66", error)
stpapi.form.command("cisli2405m000",5,"exec.cont.process",error)
stpapi.end.session("cisli2405m000",error)
The input value for "r.reprint.option" always sets to default value "cisli.rprn.by.billing.req (Select by Invoicing Batch)" even after I have changed the value to "cisli.rprn.by.invoice (select By Invoice)", because of this the report is generated for the option "Select By Invoicing Batch" and prints all the invoices, despite me feeding a specific transaction type/ Document No for "f.trans.type.f, f.trans.type.t" & "f.document.f, f.document.t"
If someone can show light on this and identify what is wrong with my code. It will be of great help.
Thanks
Babu N