balabharathi
4th January 2011, 09:14
Hi Gurus,
I have used the function tdsls4102.update.occurence function in the below piece of script, while executing a SO with "0" quantity am getting a fatal error as "tdsls045.pmsk index 0 out of dims [1] 20".
Please suggest me a solution to solve this one.


before.rewrite:
update.tdsls045()
tdsls4102.update.occurrence(modify.set,-1,cosn, ctcd, crcd,0)
update.fact = -1
on.old.occ(process.stock,update.status,update.fact)

after.rewrite:
tdsls4102.update.occurrence(modify.set,1,cosn, ctcd, crcd,0)
update.fact = 1
do.occ(actual.occ,process.stock,update.status,update.fact)

amitmmokashi
4th January 2011, 10:27
Hi,

Kindly modify the code so that the function tdsls4102.update.occurence() does not get executed when quantity = 0.

Regards,
Amit Mokashi

balabharathi
5th January 2011, 09:20
Hi Amit Mokashi,
We have rectified this issue, the problem is the step numbers are not fetched correctly due to that only we have got the error. Now we have called the function "tdsls4102.read.procedure.steps" and the problem is resloved.

Thanks a lot for your suggestion.