patwanirav
13th March 2014, 06:05
when i run the advance payment request session (tppin4110m000) manually to transfer the invoice through session tppin4200m000, the sel.use.parent.selection() function works properly means it returns the true value.
But when i write the AFS for both tppin4110m000 & tppin4200m000 session, the sel.use.parent.selection() function gives me false value.
I am totally confused why sel.use.parent.selection() function not returning true when i go through AFS. Can anybody help me ???
AFS Code :
stpapi.put.field("tppin4110m000", "tppin010.cono", i.cono)
stpapi.put.field("tppin4110m000", "tppin010.cnln", i.cnln)
stpapi.put.field("tppin4110m000", "tppin010.sern", num)
stpapi.put.field("tppin4110m000", "tppin010.ofbp", "")
ret = stpapi.find("tppin4110m000", error.msg)
if ret = 1 then
ret = stpapi.mark("tppin4110m000", error.msg)
if ret = 1 then
stpapi.form.command("tppin4110m000", 2, "tppin4200m000", error.msg)
stpapi.set.report("tppin4200m000", "rtppin420001000", "D", error.msg)
stpapi.end.session("tppin4200m000")
endif
endif
stpapi.end.session("tppin4110m000")
Thanks in Advance :)
But when i write the AFS for both tppin4110m000 & tppin4200m000 session, the sel.use.parent.selection() function gives me false value.
I am totally confused why sel.use.parent.selection() function not returning true when i go through AFS. Can anybody help me ???
AFS Code :
stpapi.put.field("tppin4110m000", "tppin010.cono", i.cono)
stpapi.put.field("tppin4110m000", "tppin010.cnln", i.cnln)
stpapi.put.field("tppin4110m000", "tppin010.sern", num)
stpapi.put.field("tppin4110m000", "tppin010.ofbp", "")
ret = stpapi.find("tppin4110m000", error.msg)
if ret = 1 then
ret = stpapi.mark("tppin4110m000", error.msg)
if ret = 1 then
stpapi.form.command("tppin4110m000", 2, "tppin4200m000", error.msg)
stpapi.set.report("tppin4200m000", "rtppin420001000", "D", error.msg)
stpapi.end.session("tppin4200m000")
endif
endif
stpapi.end.session("tppin4110m000")
Thanks in Advance :)