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

Kjetil Kilhavn kjetilk at statoil.com
Wed Mar 19 00:29:56 EST 2003


I am not familiar with start conditions, so this is maybe not helpful, but
what can you find out from the workflow trace?
You can find out more using the trace than from the event log.
--
Kjetil Kilhavn
 
 
 
 
 
                    "Cristiana D'Agosto"
                    <cristiana.dagosto at au        To:     SAP-WUG at MITVMA.MIT.EDU
                    1.ibm.com>                   cc:     (bcc: Kjetil Kilhavn)
                    Sent by: SAP Workflow        Subject:     BUS1065.HIRED and start condition when position has end date diff from 31.12.9999
                    <Owner-SAP-WUG at MITVMA
                    .MIT.EDU>
 
 
                    19.03.2003 05:03
                    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
 
 
 
 
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
 


More information about the SAP-WUG mailing list