Check FM issues 4.6c
Sample, Rick
Rick.Sample at gbe.com
Mon Jan 7 17:05:44 EST 2008
I need to start a WF for events bus2012.RELEASESTEPCREATED or
bus2012.CHANGED.
I am having a problem because both events trigger at the same time.
So a simple check to see if a WF already is running is not working.
I know there is a solution, but it is eluding me at the moment...
Basic code:
...
WHEN 'RELEASESTEPCREATED' or 'CHANGED'.
SELECT a~wi_id b~wi_stat INTO TABLE t_wi_id
FROM sww_contob AS a INNER JOIN swwwihead AS b
ON a~wi_id = b~wi_id
WHERE a~objtype = l_obj
AND a~objkey = l_doc
AND b~wi_rh_task = 'WS99999999'.
LOOP AT t_wi_id.
CASE t_wi_id-status.
WHEN 'WAITING'.
RAISE workflow_off.
EXIT.
WHEN 'READY'.
RAISE workflow_off.
EXIT.
WHEN 'SELECTED'.
RAISE workflow_off.
EXIT.
WHEN 'STARTED'.
RAISE workflow_off.
EXIT.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
...
More information about the SAP-WUG
mailing list