How to delete Orphaned Workflow after IDOC processed outsideWorkflow?

jimmy sun jjsun02 at yahoo.com
Sun Jan 27 14:51:31 EST 2008


Mike,
  Thnak you, Will follow your direction. My major problem is to obtain the proper authorization first...
   
  I'll create a transaction with a Z Program which calles the SAP_WAPI_ADM_WORKFLOW_CANCEL function module  and transport it to Production to cancel those workitems. In the mean time will also set up the terminate event for the task. Hope this will cover both Past & Future problems... 
   
  Love this SAP-WUG...
   
  Jimmy 

Mike Pokraka <asap at workflowconnections.com> wrote:
        v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}                Hi Jimmy,
  Depends on how many the are. For a few hundred, it’s probably quicker to go in using SWIA and deleting them by hand.
  If you’re talking about thousands, then I’d suggest a custom report that calls SAP_WAPI_ADM_ WORKFLOW_CANCEL for each top-level item (WS9... if it’s a workflow).
   
  Cheers,
  Mike
   
  From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of jimmy sun
Sent: 27 January 2008 17:44
To: SAP Workflow Users' Group
Subject: RE: How to delete Orphaned Workflow after IDOC processed outsideWorkflow?
   
    Thnak you both Sherie and Mike.

    Will work on the changes, so the problem will not occur again in the future. In the mean time I am still open to any suggestion to delete those over hanging workitems from as far back as 2004.

     

    Many thanks,

    Jimmy

Mike Pokraka <asap at workflowconnections.com> wrote:

      Hi Jimmy, 

     

    This is correct, SWWL is for clearing junk from your dev/test systems and should not be used in PRD. 

     

    Your problem is with the custom program you mentioned. It needs to raise an event to communicate the status change to WF to complete/cancel it. 

     

    Cheers, 

    Mike

     

     

          From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of jimmy sun
Sent: 22 January 2008 15:21
To: SAP Workflow Users' Group
Subject: RE: How to delete Orphaned Workflow after IDOC processed outsideWorkflow?



     

      Sherie,


      Thank you very much. I understand what you are saying here, but again, I don't have authorization to SWO1 either. 


       


      The project I am working on is very tight with Security. When I ask for SWWL, the response is SAP 'According to SAP, transaction SWWL should not be used in a Production environment to delete work items.'.  I'd expect the same from SWO1, but will try it any way. 


       


      The system is ECC 6.0. If  anyone else have other solution, please let me know. 


       


      Jimmy


      
"Munday,Sherie J." <MUNDAYSJ at airproducts.com> wrote:


      Jimmy,
Try this..SWO1 on the object FLOWITEM... "test" and instantiate with the work item number, then run the method "change status" to change the item to "Cancelled" (logically deleted). We use this quite often.

Also you might want to use the correction of the IDOC as an alternate to cancelling the workflow in the design and avoid this problem in the future. Just a thought.

Best Wishes,
Sherie

Sherie Munday
Workflow Developer/ Analyst 
Air Products & Chemicals, Inc.

________________________________

From: sap-wug-bounces at mit.edu on behalf of jimmy sun
Sent: Mon 1/21/2008 7:19 PM
To: SAP Workflow Users' Group
Subject: Re: How to delete Orphaned Workflow after IDOC processed outsideWorkflow?


Sheldon,
Thank you for the response. I tried that. As I stated, the IDoc already processed with status 53. 'Logically Delete' is not an option. 'Set to 'Done'' is grayed out.

Found transaction SWWL which looks like will do the trick, but not authorized. 

Posted this message, just want to see if there is any other way.

Jimmy

Sheldon Oxenberg wrote:

Try setting the Menu Option "View with Technical Details", then try using
the Menu Option - Edit > Change.

Regards,
Sheldon C. Oxenberg

Computer Sciences Corporation
Registered Office: 2100 East Grand Avenue, El Segundo California 90245, USA
Registered in USA No: C-489-59

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------





jimmy sun 

m> To 
Sent by: "SAP Workflow Users' Group" 
sap-wug-bounces at m 
it.edu cc 

Subject 
01/21/2008 01:29 How to delete Orphaned Workflow 
PM after IDOC processed outside 
Workflow? 

Please respond to 
"SAP Workflow 
Users' Group" 








Hi All,
I have a situation, inbound IDoc processed with error, workflow is
generated. Instead of going through workflow to processed the IDoc, someone
corrected and processed the IDoc through a customer program.

Now, we have a few Work item remain in the user's Inbox. Tried SWI1
'Logically Delete' is not an option. 'Set to 'Done'' is grayed out. Is it
Authorization issue? Is there any other way to detete these Work Items?
What is the Authorization do I need to do it?

Many thanks in advance

Jimmy



"Whether you think you can or whether you think you can't, you're right!"
--Henry Ford


Never miss a thing. Make Yahoo your homepage.
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug





"Whether you think you can or whether you think you can't, you're right!" --Henry Ford 

________________________________

Never miss a thing. Make Yahoo your homepage. 
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

    


"Whether you think you can or whether you think you can't, you're right!" --Henry Ford

      

    
---------------------------------
  
    Never miss a thing. Make Yahoo your homepage. 


  _______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
  


"Whether you think you can or whether you think you can't, you're right!" --Henry Ford
    
    
---------------------------------
  
  Never miss a thing. Make Yahoo your homepage. 

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



"Whether you think you can or whether you think you can't, you're right!"     --Henry Ford
       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080127/b40d868d/attachment.htm


More information about the SAP-WUG mailing list