Workflow Deletion

Dear All,
I have a task of deleting "completed" workflow.
Is it possible to deleted these workflows "Automatically" in MDM 7.1 sp6 ?
I found one SAP NOTE : 0001240587 ( Which explains the process through JAVA )
But, we have ABAP webdynpro , so i was wondering if there is any possibility on this or may be through CLIX ?
Please advice!
Regards,
Harmony

Hello Harmony
You are right, ABAP API  isn't contain function for completed WF deleting.
We usually delete completed WF from Data Manager (select all comleted and delete)
or from CLIX
"CLIX repRemoveCompletedWorkflowJobs MdsHostSpec
RepositorySpec Credentials NumberOfDays NumberOfJobs
Delete the number of completed workflow jobs specified by the
NumberOfJobs parameter that were completed before the number of
days specified in the NumberOfDays parameter. The NumberOfDays
parameter must be a non-negative number and NumberOfJobs must
either be All or a postive number. "
Regrads
Kanstantsin Chernichenka

Similar Messages

  • Workflow: Delete container elements

    Hi All.
      I was modifying a workflow made by someone else.
    I tried to delete unused Workflow container elements.
    But got the following message:
    "Inherited Elements may not be deleted".
    What does that mean, and how do I delete these unwanted elements?
    Thanks in advance.
    Regards.
    Samant

    Samant,
    This is the right forum. I have never come across nor did I hear of this message before. If the workflow being modified is already in Production, my advice is to make sure these elements were not used by any versions of the Workflow in production that may still be in process. That said please clarify if the WF Syntax Check point out the elements you are trying to delete as unused?
    If you have not already done it, I suggest you take a look at OSS Note #125400 - Modifying a productive Workflow.
    <b>Following added by: Ramki Maley @12:17PM</b>
    Are you sure you are trying to delete WF conatiner elements using either the Workflow Builder (SWDD) or the template editor (PFTC)? Looks like the message you are getting is from the Object Type editor (SWO1). If you are trying to delete attributes of a BO sub type, the message is self explanatory. Your sub type inherits the attributes of the original object type - a standard SAP object. You can only delete the attributes that have been defined for the sub type. <u><b>Be absolutely certain before you delete any attribute, that it has never been used in Production Environment</b></u>.
    Cheers,
    Ramki Maley.
    Message was edited by: Ramki Maley

  • Issue with ESS Leave request workflow - Deleting a leave request

    Hi friends,
      This is my scenario: An employee has created a leave request from ESS - Leave Request Workflow(Copy of  WS12300111) gets triggered and work item gets created in manager's UWL. After that the employee realizes he has created a wrong leave request so he deletes that leave request from ESS. In this case the workflow instance which got triggered when he created the leave request is under process and the work item stays in the Manager's UWL( there is no terminating event or wait for event step in the approval step of workflow WS12300111), when the Manger opens that work item it shows a blank column, ideally speaking when the leave request is deleted by the employee the work item in the manger's UWL should be logically deleted and the workflow should complete, but this part is not handled in the standard workflow WS12300111as well. How to handle this case. I can put a wait for event or a condition to complete a work item at the approval step but i would like to know how the standard ESS leave request framework works in this case. Please advice.

    Hi sapient
      This is not handled in std. You have clear the next processor in your in method then only the work item will get vanished from the UWL.  For clearting the next processor either you can create a method in your BOR and get the request id. For the request id get the max version and clear the next processor or in the BADI you have wirte your own logic when the change happens what you have to do. This logic has to be written in you BADI.  I thing BADI will start with PT_ check with that name in se18
       You cannot use wait for event or terminating event since its not R/3 workflow its ESS workflow you cannot use ternminating event or wait step.
    Regards
    vijay

  • Workflow: delete content item after exit

    I am using criteria workflows and in one of the steps, if the Action is Reject, content is exiting the workflow (wfExit). At this point, the document is Released and is visible to users with access to it. Is it possible to delete the document before it is published, without any human intervention?

    Guys, sorry to interrupt, but IMHO your discussion has one flaw: neither REJECT, not wfExit(100,100) can be caught in the Exit event (of the step where they happen).
    As for REJECTs (to which workflow step it returns) see UCM 10G workflow reject issue or wfAction Reject is not working
    As for wfExit(100, 100) I tried to following scenario:
    Step 1 (Revision/Edit Current)
    Entry: <$trace("Step1 - Entry", "#log")$>
    <$if wfAction like "REJECT"$>
    <$wfExit(100,100)$>
    <$endif$>Exit: <$trace("Step1 - Exit", "#log")$>Step2 (Revision only)
    Entry: <$trace("Step2 - Entry", "#log")$>Exit: <$trace("Step2 - Exit", "#log")$>Now, if you check-in an item, approve it on step1 and reject on step2, the log will contain:
    Step1 - Entry
    Step1 - Exit
    Step2 - Entry
    Step1 - Entry
    IMHO, what you could try is to execute the delete in a filter hooked to advanceDocumentStateMarkWorkflowFinished, which is Executed just before a content item in workflow is marked as finished. You can perform additional logging, or update external resources with this filter.

  • Mass Workflow Delete

    Let's say that in a development environment, someone <---      produced many many many workflows that are now sitting out there never to be processed and without any meaning to the business.
    Is there a way to delete them in quantity ?
    Thanks...
    ...Mike

    Hello,
    Have a look at SWWL_DEP and SWWL_TOPLEVEL.
    regards
    Rick Bakker
    Hanabi Technology

  • SAP workflow: Delete SOFM

    Hi all,
    I've developed 1 WF with one attachment in decision task. This attachment is an object key linked to a SOFM.
    But now I need to erase this SOFM from database. Is it possible to create a new task in WF (before ending) to erase this file from SAP?
    This is critical to me because we must save space from database disk.
    Thanks in advance.
    Regards,
    André Sousa

    Hi,
    Do you want to remove the attachment before execution, the remove the binding if its done through binding or if it through some FM
    the attachement had created then in the next step of that decision step create a background activity and then use FM
    SAP_WAPI_ATTACHMENT_DELETE to delete the attachment.
    Send the Decision step workitem ID.
    Hope this would help you.
    Regards
    Narin

  • Need help on deleting workflows

    Hi experts,
    I need to delete workflows that need to be retired. I am veryvery new to workflows. So, what is the Tcode to delete the entire workflow? also, what are the steps that need to be check upon deleting them? i need to delete their custom tables/function modules as well. Can I delete the workflow in one shot? or i need to delete task by task..? thanks in advance

    Hi,
    Prior to deleting a workflow first Delete/Cancel all the workitems of that workflow. It will help you to avoid unnecessary dump while executing those workitems. Its better to cancel the workitems if it is a productive system.
    To delete workflow delete the following items in below mentioned order.
    1. Workflow
    2. Tasks
    3. BO/Classes
    Regards,
    Anbarasan K
    Edited by: Anbarasan K on Jul 7, 2008 1:33 AM

  • Workflow to delete certain finder items

    My workflow (which backs up FileMaker Pro databases from FileMaker Server) does this:
    1. Mounts an AFP volume
    2. Creates a zip archive of the data folder to an AFP volume
    3. Changes the name of the zip archive to from name.zip to namedate.zip
    iCal runs the script once a day and I would like to keep the 7 most recent versions of the zip files in the AFP volume.
    Is it possible to have my workflow delete items in the folder when they are no longer among the 7 most recent? Or is it better to approach this using a cron script on the AFP server?
    Thanks,
    b.

    You could also create a permission level that allows all users to contribute to the list but at the same time are unable to view the list. That way the workflow will move the item to the second list for everyone but Only X and Y can view the list.
    Create a permission level call it (restricted contribute) or something along those lines. Then use the following settings and grant all your users this permission level on the second library. Keep X and Y with normal read write permissions.

  • Error: "The workflow could not delete the list item"

    Have set up 2 lists:  Events and EventsArchive.  They have all the same fields.  I have created a workflow in SPD using an impersonation step (I have Full control of the site/site collection).  Workflow is essentially this:
        If Curent Item:Expired 
    equals
    Yes
           Copy item in Current Item to
    EventsArchive
           then Delete item in
    Current Item.
    The item is copying over to the EventsArchive list just fine, but the "delete" part is not happening.  Instead, I get the following error:
    The workflow could not delete the list item. Make sure the list exists and the user has permissions to delete items in the list.
    The list obviously exists (or I wouldn't be able to copy an item from it), and I have as much permissions as anyone can have, so I'm not sure where else to turn with this. 
    Thanks in advance for your help!

    Hi,
    To test the issue, I create a simple workflow without using Impersonation step:
    It works.
    Could you please create new lists to avoid custom settings and test the issue again?
    Similar thread:
    https://social.msdn.microsoft.com/Forums/office/en-US/3fa94026-4487-4e4c-a5b4-12a79d6ee6a2/workflow-delete-item-not-working?forum=sharepointcustomizationprevious
    Regards,  
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • 2  questions on BRF workflow for SC

    Hello All
    I have 2 questions on BRF workflow as follows:
    1) My requirement is that the PO be created only after all the items in the Shopping cart (from all decision sets) are approved by separate agents. How do I enforce this using BRF ?The closest is  Decision Type 3: Overall Decision for Partial Document (.The decision applies to the entire decision set)
    2) IS it possible to send an approval work item to multiple agents ( Based on a role or custom attribute) and then the work item could be approved by any one of those agents which completes the workflow & deletes all other work items ?
    Thanks
    Kedar
    Edited by: Kedar Ghayal on Jan 4, 2011 10:53 PM
    Edited by: Kedar Ghayal on Jan 5, 2011 12:06 AM

    Hi,
      1) My requirement is that the PO be created only after all the items in the Shopping cart (from all decision sets) are approved by separate agents. How do I enforce this using BRF ?The closest is Decision Type 3: Overall Decision for Partial Document (.The decision applies to the entire decision set)
         PO can only be created only if all approver's approve the SC.  it will be great if you give more details about the requirement.
    2) IS it possible to send an approval work item to multiple agents ( Based on a role or custom attribute) and then the work item could be approved by any one of those agents which completes the workflow & deletes all other work items ?
      Yes - a workitem could be sent to multiple approver's for a decision set, once any one of the appprover approve the SC, the workitem will be deleted automatically from rest of approver's UWL..
    Saravanan

  • How to delete the orphaned Expected Rule Entries exist in the FIM portal

    Hi,
    How to delete the orphaned Expected Rule Entries exist in the FIM portal.
    A large number of orphaned Expected Rule Entries exist in the FIM portal (originally 140000k+ objects, currently 75000+ objects). They consume the a lot of FIM database space and slows down the identity lifecycle management synchronization processes.
    Regards
    Anil Kumar

    Hello,
    in my environments i use this approach:
    https://social.technet.microsoft.com/Forums/en-US/1af6cf77-4c55-4a3e-93cc-0baae80bc88f/expiration-workflow-cannot-delete-ere?forum=ilm2
    This sets up a compination of Sets, Workflow and MPR to let the "Expiration Workflow" delete EREs as soon as they get orphaned.
    This works fine since 3 years now, even if there are comming SQL-Jobs within a FIM update, but I implemented this before this was done.
    I would suggest to clear the current orphaned EREs with PowerShell to avoid request flooding when implementing the above solution. Then implement that housecleening above.
    Regards
    Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • I deleted all my photos...

    Hi everyone,
    after several hours of editing work on 200 photos, i wanted to delete 1 photo and guess what... i had all the photos selected and so i deleted them all
    Before this, i didn't quit Lightroom so it didn't create a backup of these last edits.
    I was able to recover the RAW from the trash, but now is there a way to recover all my editing work ?
    Thank you for all.

    Quite fortuitously (but too late for the OP), Jeffrey Friedl has just announced a new plug in:
    "Today I'm releasing “Workflow delete Options”, which helps address a couple of issues with how Lightroom handles delete requests.
    In some situations Lightroom silently deletes more than you ask for, and in other cases, less. This plugin lets you be alerted to these situations so you can make an informed decision about what to do."
    It might have prevented the OP's disaster (and the similar experiences of many other Lr users). Check it out here: http://regex.info/blog/2013-07-11/2283
    Phil

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Workflow-hr issue

    Hi experts,
    I am new to workflow.i recived one ticket for workflow.Delete open tasks from unversal worklist for employee XXXXX.
    what i need to do here..
    Please help me on this..
    Thanks in advance..

    Delete open tasks from unversal worklist for employee XXXXX.
    I think you might be looking for , the set of workitems that have not been executed for a certain amoutn of time. and you want to remove al these workitems from the UWL. If this is the case then what you can do is
    1. You can get all teh workitems with respect to a specific user by using the Fm SAP_WAPI_CREATE_WORKLIST.
    2. Once you get the respective workitems then make use of the FM SAP_WAPI_SET_WORKITE_STATUS and set the workitem to Logically Delete but not Deleted.
    Since in teh Logically deleted atleast you can have the log details about the workitem...

  • Workflow 2010 mark a record

    I have a workflow 2013 calling workflow 2010 so that 'declare a record' can be called. I am doing that so that once a user has submitted a custom list to the workflow, they can not make any changes.
    The problem is I have other steps that I want to happen in the workflow like having an authorized person accept or reject the request.
    The problem is the custom list is read-only and that prevents the next step from being executed. I want the custom list to be 'read-only' or 'view-only' first since it may be awhile until the next people to approve or reject the custom list
    that has been submitted.
    Thus can you tell me what I can do to solve this problem and how steps should I follow to solve my problem?

    Hi DianeMidnight,
    From your description, my understanding is that you want to make the user unable to edit the item after he submitted an item to wait for an approval.
    As you said, after we declare the item as a record, the item will be ready-only, we cannot do anything again for the item.
    For your issue, I suggest you edit your SharePoint 2010 workflow, delete the action “Declare Record” and add an Impersonal Step into it, then use “Replace List Item Permissions” to replace the creator’s current permission. You can set your SharePoint 2010
    workflow like:
    More information about the action, you can refer to the link:
    https://support.office.microsoft.com/en-us/article/Workflow-actions-in-SharePoint-Designer-2010-A-quick-reference-guide-5a7ad276-0ed7-49b0-b652-e56a77dd96c6?CorrelationId=248aa4b2-158c-47dd-a91c-9a75bc9184b1&ui=en-US&rs=en-US&ad=US#__toc260831314
    After running the above workflow action, the creator will only have view permission on the item.
    After the approver approves or rejects the request, based on your requirement, you can also use the action to replace user’s view permission with Edit or other permissions .
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Printing Problem With Epson PictureMate PM240

    I use an Epson PictureMate PM240 to print 4x6 proofs from negatives and slides scanned using a Nikon Coolscan V ED. So far, even without calibration, the prints I get using Photoshop Elements 5 (and previously 3.0) have been good enough. I understand

  • What cable do i use to Connect my MBP to a dell monitor

    What cable do i use to connect my rMBP to my Dell monitor

  • Grinding sound in refurbished 60 GB video iPod

    I just got a refurbished video iPod, and in playback when I start the first song, or switch songs to a new album, I'm getting some minor grinding and whirring noise and vibration. It doesn't seem to happen when it switches between artists or albums i

  • Bex Issue Query

    Hello, I have a query about Bex.  I have 2 Bex Queries with different Keyfigures on different providers. Query 1: Customer     Material     Plant     Quantity Sold Query 2: Customer Material Plant Quantity Available This is what i want to do.  Basica

  • Migrating multiple access databases to 9i

    I have generated several xml files using omwb exporter, from several individual access mdb files. All the access databases have identical structures. But each time I go into omwb and create a source database from an xml file, the previous source disa