baan.kmurali
22nd August 2014, 16:20
Dear Experts,
We are automated the sales invoice process by AFS. If we select the "Enter specific order" as "NO", the sales invoice is generated finely. or else if we select the "Enter specific order" as "YES", it's not working and not showing any error.
Please find the below coding and help me to close it....
Thanks in advance...
orno1 = 2908655
inv.date1 = date.num()
stpapi.put.field("tdsls4404m000", "printed", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "inv.date", str$(inv.date1))
stpapi.put.field("tdsls4404m000", "selection", str$(etol(tcyesno.yes)))
stpapi.put.field("tdsls4404m000", "comp.f", "000")
stpapi.put.field("tdsls4404m000", "comp.t", "999")
stpapi.put.field("tdsls4404m000", "cuno.f", "")
stpapi.put.field("tdsls4404m000", "cuno.t", "ZZZZZZ")
stpapi.put.field("tdsls4404m000", "orno.f", str$(orno1))
stpapi.put.field("tdsls4404m000", "orno.t", str$(orno1))
stpapi.put.field("tdsls4404m000", "cotp.f", "")
stpapi.put.field("tdsls4404m000", "cotp.t", "ZZZ")
stpapi.put.field("tdsls4404m000", "amount.f", "0")
stpapi.put.field("tdsls4404m000", "amount.t", "99999999999.00")
stpapi.put.field("tdsls4404m000", "definite", str$(etol(tcyesno.yes)))
stpapi.put.field("tdsls4404m000", "direct.process", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "exci.inv", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "totals", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "prnt.options", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "prnt.sellpr", str$(etol(tcyesno.no)))
stpapi.set.report("tdsls4404m000", "rtdsls440401000", "D" , error.mess)
if not isspace(error.mess) then
message(error.mess)
endif
stpapi.handle.subproc("tdsls4404m000","tdsls4820s000", "add")
stpapi.continue.process("tdsls4404m000", error.mess)
if not isspace(error.mess) then
message(error.mess)
endif
stpapi.handle.subproc("tdsls4404m000","tdsls4820s000", "add")
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno1),1)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno2),2)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno3),3)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno4),4)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno5),5)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno6),6)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno7),7)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno8),8)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno9),9)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno10),10)
stpapi.continue.process("tdsls4820s000", error.mess)
stpapi.end.session( "tdsls4820s000", error.mess )
stpapi.end.session("tdsls4404m000")
Thanks and Regards,
Murali
We are automated the sales invoice process by AFS. If we select the "Enter specific order" as "NO", the sales invoice is generated finely. or else if we select the "Enter specific order" as "YES", it's not working and not showing any error.
Please find the below coding and help me to close it....
Thanks in advance...
orno1 = 2908655
inv.date1 = date.num()
stpapi.put.field("tdsls4404m000", "printed", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "inv.date", str$(inv.date1))
stpapi.put.field("tdsls4404m000", "selection", str$(etol(tcyesno.yes)))
stpapi.put.field("tdsls4404m000", "comp.f", "000")
stpapi.put.field("tdsls4404m000", "comp.t", "999")
stpapi.put.field("tdsls4404m000", "cuno.f", "")
stpapi.put.field("tdsls4404m000", "cuno.t", "ZZZZZZ")
stpapi.put.field("tdsls4404m000", "orno.f", str$(orno1))
stpapi.put.field("tdsls4404m000", "orno.t", str$(orno1))
stpapi.put.field("tdsls4404m000", "cotp.f", "")
stpapi.put.field("tdsls4404m000", "cotp.t", "ZZZ")
stpapi.put.field("tdsls4404m000", "amount.f", "0")
stpapi.put.field("tdsls4404m000", "amount.t", "99999999999.00")
stpapi.put.field("tdsls4404m000", "definite", str$(etol(tcyesno.yes)))
stpapi.put.field("tdsls4404m000", "direct.process", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "exci.inv", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "totals", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "prnt.options", str$(etol(tcyesno.no)))
stpapi.put.field("tdsls4404m000", "prnt.sellpr", str$(etol(tcyesno.no)))
stpapi.set.report("tdsls4404m000", "rtdsls440401000", "D" , error.mess)
if not isspace(error.mess) then
message(error.mess)
endif
stpapi.handle.subproc("tdsls4404m000","tdsls4820s000", "add")
stpapi.continue.process("tdsls4404m000", error.mess)
if not isspace(error.mess) then
message(error.mess)
endif
stpapi.handle.subproc("tdsls4404m000","tdsls4820s000", "add")
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno1),1)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno2),2)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno3),3)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno4),4)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno5),5)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno6),6)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno7),7)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno8),8)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno9),9)
stpapi.put.field( "tdsls4820s000", "orno.select", str$(orno10),10)
stpapi.continue.process("tdsls4820s000", error.mess)
stpapi.end.session( "tdsls4820s000", error.mess )
stpapi.end.session("tdsls4404m000")
Thanks and Regards,
Murali