Function hook
Use this hook to code functions, which are used in the mappings of the context messages. Note that functions that are used in a direct mapping of type "Function" must return a value. Functions used in hooks such as the Condition Hook can be of type "void".
Example:
function tm.tisfc010.read.production.order(domain tcpdno i.pdno)
{
select tisfc001.*
from tisfc001
where tisfc001.pdno = :i.pdno
as set with 1 rows
selectdo
break
endselect
}
function string tm.tisfc010.get.item.desc(domain tcitem i.item)
{
select tcibd001.dsca
from tcibd001
where tcibd001.item = :i.item
as set with 1 rows
selectdo
break
selectempty
tcibd001.dsca = "???"
endselect
return(tcibd001.dsca)
}