The created production order must be released sometime!
Can you carry out your function at that time?
if yes then do something like this:
Code:
domain tcosta old.osta
function extern long after.save.object(long mode)
{
...
on case mode
case DAL_UPDATE:
with.old.object.values.do(get.old.values)
...
}
function extern long after.save.object(long mode)
{
on case mode
...
case DAL_UPDATE:
...
if tisfc001.osta = tcosta.in.prod then
if old.osta < tcosta.in.prod then
|Production order has just been released!
call.my.function()
endif
endif
...
}
function get.old.values()
{
old.osta = tisfc001.osta
}