dharmendrayadav
17th April 2014, 10:04
Hi
I have created Prod. Order UE to update Request delivery date for parent and child production orders
for that when i am trying to update tisfc001 table from UE, first time it updated but when second time it gives me fatal error that recursive not possible. please help.
bhushanchanda
17th April 2014, 11:57
Hi,
Can you post your code? That will help to know the error better.
dharmendrayadav
18th April 2014, 06:27
function extern long ue.after.after.save.object(long mode)
{
on case mode
case DAL_NEW:
break
case DAL_UPDATE:
diff = 0
if old.rdld <> tisfc001.rdld then
diff = tisfc001.rdld - old.rdld
update.req.deliv.date()
endif
break
endcase
return(0)
}
function update.req.deliv.date()
{
select ltrnd100.ppno
from ltrnd100
where ltrnd100._index1 = {:tisfc001.pdno}
selectdo
if not isspace(ltrnd100.ppno) then
select tisfc001.rdld
from tisfc001 for update
where tisfc001._index1 = {:ltrnd100.ppno}
selectdo
tisfc001.rdld = tisfc001.rdld + diff
db.update(ttisfc001,db.retry)
endselect
endif
endselect
}
dharmendrayadav
18th April 2014, 06:29
is there any way to update same table on which ue is created ???
JaapJD
18th April 2014, 09:40
What is the tools version and porting set your are running?
dharmendrayadav
18th April 2014, 10:00
FP9, tiv = 1901
JaapJD
18th April 2014, 10:21
I think this is worth an incident at Infor. In 10.3.1 the UE is also called on db-statements. So your db.update on tisfc001 calls the UE again, which is causing recursion.
If you set the TIV of the UE DLL to e.g. 1800 you have a workaround.
dharmendrayadav
18th April 2014, 12:09
Thanks it works for me :)
jeffersyuan
20th October 2016, 10:52
Seems in my environment, I had put the TIV as 1000, it still doesnot works.
(LN 10.5)
Jeffers
hklett
20th October 2016, 11:39
maybee use of disable.ue.dll() and enable.ue.dll() can help
jeffersyuan
20th October 2016, 17:49
maybee use of disable.ue.dll() and enable.ue.dll() can help
Do not found any function like this.
Jeffers
hklett
20th October 2016, 17:56
Do you have the latest programmer guide?
You can download it from KB 22924522 on inforxtrem
jeffersyuan
21st October 2016, 05:29
Do you have the latest programmer guide?
You can download it from KB 22924522 on inforxtrem
Found it, seems perfect to me.
Jeffers