Skip to Content
0
Dec 02, 2008 at 09:15 AM

DB commit for virtual attribute

25 Views

Hi,

I have implemented a workflow which gets triggered when employee leaves company (event 'companyleft' of BUS1065). The requirement is to send an e-mail with (as one of many) date when employee leaves. I implemented virtual attribute 'LeaveDate' which is calculated from PA0001 BEGDA of last entry. The problem is, when I test the BO, everything is working fine, but when the workflow starts (using transaction PA40), the attribute is left empty. I guess it's because the workflow is being triggered before the DB commit takes place in PA40 (which updates PA0001). Is there any way how to solve this problem, i.e. calling explicitely DB commit in the BO program, or call the select in update task...

Thanks in advance

Tomas