Extended Notifications

Kjetil Kilhavn list.sap-wug at vettug.no
Thu Sep 25 05:50:25 EDT 2014


Torsdag 25. september 2014 04.25.37 skrev Margaret Jaco:
> Thanks to help from wuggers I have managed to mark loads of 'task only'
> workflows that have never had agents to CANCELLED. This has update the
> entries in the SWN_NOTIF table to a status of 'L' in preparation for
> running RSWNNOTIFDEL.
> 
> The problem I now have is that  in some instances I have two or three
> entries in the SWN_NOTIF table for the same workitem id  but different
> scenario  and category.  Only one of the entries has been updated with a
> status of 'L'. The others have status of 'S' (Saved) or 'D' (Sent). I have
> tried using SWIA, and function modules SAP_WAPI_ADM_WORKFLOW_CANCEL and
> SAP_WAPI_ADM_WORKFLOW_CANCEL but none of these set the scenario=WORKFLOW,
> category=STANDARD to 'L'. They only ever set the status to L when
> scenario=UWL and category=UWL STANDARD.
> 
> 
> 1.       Why are there two entries?

My first guess would be that this happens because the work item (task, most 
likely) has been relevant for both scenarios. Just like you could include a 
task in more than one selection variant for RSWUWFML2 you can define more than 
one scenario that will select a particular work item.


> 2.       How do I get the status of all of the entries to 'L'?

I think you have discovered a real bug. Congratulations! :-)
Unless you find a relevant OSS Note you should report this as a new error, or 
that is at least what I would have done. The best you can hope for then is 
that SAP provides a correction report in addition to the correction 
instructions for SAP_WAPI_ADM_WORKFLOW_CANCEL (or whatever subroutine the 
update of SWN_NOTIF is delegated to). Such a report can be simple in its most 
basic form: check the status of the work item and change the status to L if 
the work item is completed or cancelled.


> Workitem id       Task                       Scenario               Category
>                              Status 000003115766    TS00008068         UWL 
>                     UWL_STANDARD             L 000003115766    TS00008068  
>       WORKFLOW       STANDARD                         D
-- 
Kjetil Kilhavn / Vettug AS (http://www.vettug.no)


More information about the SAP-WUG mailing list