veyant
4th April 2005, 11:16
Hi guys,
I am facing a problem in updating sales order. when i update order date & pl. del. date in tdsls4105s000 and send update it gives error " tax code not found in tax table".
however, tax code on the sales order header is set to "No".
Actullay, i am calling tdsls4101m000 first then tdsls4105s000.
now problem is that wheni check at bshell, it shows parent id of tdsls4105s000 afs session insead of tdsls4101m000 sessions process id.
however, i am activating tdsls4105s000 from tdsls4101m000.
here is the code. can anybody help me:
stpapi.put.field("tdsls4101m000","tdsls040.orno", str$(orno))
ret = stpapi.find("tdsls4101m000",w.err.msg)
stpapi.handle.subproc("tdsls4101m000","tdsls4105s000","add")
stpapi.continue.process("tdsls4101m000",w.err.msg)
stpapi.handle.subproc("tdsls4105s000", "mtdsls000090461", "12")
stpapi.handle.subproc("tdsls4105s000", "tdsls04504s000","")
stpapi.put.field("tdsls4105s000","tdsls040.orno", str$(orno))
stpapi.put.field("tdsls4105s000","tdsls041.pono", str$(pono))
ret = stpapi.find("tdsls4105s000")
if ret = 1 then
stpapi.put.field( "tdsls4105s000", "tdsls041.odat", str$(curr.date))
stpapi.put.field( "tdsls4105s000", "tdsls041.ddta", str$(curr.date))
stpapi.put.field( "tdsls4105s000", "tdsls041.prdt", str$(curr.date))
stpapi.update("tdsls4105s000",1,w.err.msg)
stpapi.save("tdsls4105s000",w.err.msg)
endif
stpapi.end.session("tdsls4504s000")
stpapi.end.session("tdsls4105s000")
stpapi.end.session("tdsls4101m000")
now as i am calling tdsls4105s000 from tdsls4101m000, the parent i should be process id of tdsls4101m000. however, it shows parent id as the AFS session.
i think problem will be rectified if it is gets activated from tdls4101m000.
sandy
I am facing a problem in updating sales order. when i update order date & pl. del. date in tdsls4105s000 and send update it gives error " tax code not found in tax table".
however, tax code on the sales order header is set to "No".
Actullay, i am calling tdsls4101m000 first then tdsls4105s000.
now problem is that wheni check at bshell, it shows parent id of tdsls4105s000 afs session insead of tdsls4101m000 sessions process id.
however, i am activating tdsls4105s000 from tdsls4101m000.
here is the code. can anybody help me:
stpapi.put.field("tdsls4101m000","tdsls040.orno", str$(orno))
ret = stpapi.find("tdsls4101m000",w.err.msg)
stpapi.handle.subproc("tdsls4101m000","tdsls4105s000","add")
stpapi.continue.process("tdsls4101m000",w.err.msg)
stpapi.handle.subproc("tdsls4105s000", "mtdsls000090461", "12")
stpapi.handle.subproc("tdsls4105s000", "tdsls04504s000","")
stpapi.put.field("tdsls4105s000","tdsls040.orno", str$(orno))
stpapi.put.field("tdsls4105s000","tdsls041.pono", str$(pono))
ret = stpapi.find("tdsls4105s000")
if ret = 1 then
stpapi.put.field( "tdsls4105s000", "tdsls041.odat", str$(curr.date))
stpapi.put.field( "tdsls4105s000", "tdsls041.ddta", str$(curr.date))
stpapi.put.field( "tdsls4105s000", "tdsls041.prdt", str$(curr.date))
stpapi.update("tdsls4105s000",1,w.err.msg)
stpapi.save("tdsls4105s000",w.err.msg)
endif
stpapi.end.session("tdsls4504s000")
stpapi.end.session("tdsls4105s000")
stpapi.end.session("tdsls4101m000")
now as i am calling tdsls4105s000 from tdsls4101m000, the parent i should be process id of tdsls4101m000. however, it shows parent id as the AFS session.
i think problem will be rectified if it is gets activated from tdls4101m000.
sandy