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

mark_h
6th April 2005, 16:00
Sorry, but I am not sure I can help - it looks like this piece of code:

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)

is not activating the tdsls4105s000 session. We do not use the sales module. The code looks correct, but it appears that it is not actually starting the tdsls4105s000 session. I recommend first making sure you have updated stpapi libraries and session code. Another question I have is can you use tdsls4105m000 instead? Again I do not know anything about this module so I just thought I would ask.

kbartelds
7th April 2005, 12:15
Could be correct, if not using pcs projects. If project parameter is set to yes, session should be tdsls4102s000 in stead of tdsls4105s000.

Regards,
Klaas

sushil
14th February 2008, 14:28
Hi,

Please be informed , I am posting the problem solution so as if any body comes across similar prob can get it resolved easily.

Solution
In customer master for which sales order is being done , please make sure that the Tax is made "NO".

Regards,
Sushil Kumar Mudaliar