BUS1065.HIRED and start condition when position has end date diff from 31.12.9999

Cristiana D'Agosto cristiana.dagosto at au1.ibm.com
Tue Mar 18 23:03:02 EST 2003


Hello all,
 
we are in version 4.6c.
 
We developed a workflow that should be triggered when an employee is hired
and employee group is different from '8'. This has been implemented via
Start Conditions and it is working fine.
 
Some of the positions created from my client have a determined end date,
these are their temporary positions and they do need to create the
position defining an end date i.e. end date diff from 31.12.9999. When an
employee is hired in a position that has an end date, when gets to
Infotype 0001 the system displays an error message saying that 'Object
<position number> exists from <begin date> to <end date> only'. The user
then clicks the button 'Assignment' located beside the field Percentage in
Infotype 0001 and sets the End Date to be whatever is the last valid day
for the position; then clicks the Continue button. The system then allows
the user to save the record.
 
The system creates 2 Infotypes 0001 via INS and the workflow is triggered
twice (and that's where my problem starts!).
 
I changed the Start Condition to check for employee group being different
from '8' and Position being different from '99999999' (that's how the
system saves the second 0001 record). To my surprise the worflow did NOT
start for any of the 2 BUS1065.HIRED events published (Status: Check FM
ends with exception). I checked the Event Log and both entries are exactly
the same (date , time, UTC, etc). It seems that the Start Condition is
unable to differentiate the 2 entries.
 
If I hire someone in a position that is valid till 31.12.9999 then the
workflow is triggered without a problem (only one event is published); if
I hire someone expicitly in position 99999999 the workflow is not
triggered (as expected; only one event is published). So, the Start
Condition is working fine when one BUS1065.HIRED is published, but doesn't
work fine when the position has an end date and 2 BUS1065.HIRED events are
published.
 
I wonder if in this case I will have to write a FM to check the Employee
Group and position? I would really like to avoid triggering the workflows
and checking if position is 99999999 within the Workflow and then 'kill'
the Workflow...
 
Any ideas?
 
Thanks in advance for your help
 
Regards
 
Cristiana
 


More information about the SAP-WUG mailing list