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

Cristiana D'Agosto cristiana.dagosto at au1.ibm.com
Wed Mar 19 16:18:32 EST 2003


Hi Nat,
 
BUS1065.HIRED is published in HR_EVENT_RULES_PA0001 (it used to be in
HR_EVENT_RULES_PA0000).
 
When an infotype 0001 is INS, the BUS1065.HIRED is published; my problem
is that in the scenario that I described, two infotype 0001 are INS, and
the workflow is then triggered twice.
 
Thanks and regards
 
Cristiana
 
 
 
 
 
Nat 4 Govender <ngovender4 at toyota.co.za>
Sent by: SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
19/03/2003 05:46 PM
Please respond to "SAP Workflow Users' Group"
 
 
        To:     SAP-WUG at MITVMA.MIT.EDU
        cc:
        Subject:        Re: BUS1065.HIRED and start condition when position has end date diff from
31.12.9999
 
 
 
Hi Cristiana
 
To my understanding one hires a employee via action 0000.
One can assign the new employee to a position here as well.
 
 
(Embedded image moved to file: pic00041.jpg)
 
 
 
                      "Cristiana D'Agosto"
                      <cristiana.dagosto at a        To:
SAP-WUG at MITVMA.MIT.EDU
                      u1.ibm.com>                 cc:
                      Sent by: SAP                Subject:  BUS1065.HIRED
and start condition when position has end date diff from
                      Workflow                     31.12.9999
                      <Owner-SAP-WUG at MITVM
                      A.MIT.EDU>
 
 
                      03/19/2003 06:03 AM
                      Please respond to
                      "SAP Workflow Users'
                      Group"
 
 
 
 
 
 
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