Launch a WorkFlow when AdminRole assigned

How can I launch a custom workflow when a user has an AdminRole assigned to them?
Or, is there a general way of launching workflows when user's are updated?
I thought about modifying the Update User workflow but I wonder if there's a cleaner way...

Add an activity to the Update User workflow that calls your own workflow - I don't see anything "dirty" or "ugly" about this.

Similar Messages

  • Workflow to populate "Assigned to User" with AD group of the "Assigned to User" is empty or Null to user is empty.

    I am updating roles and would like to use the [me] and [my group] tokens for views.  I am planning on updating all the templates to specify an ad group in the "Assigned to User" field that corresponds to the appropriately selected support
    group.  I would like to avoid having the "Assigned to User" blank (this could happen either via using a generic template, or when re-assigning workitems) so I think I need a workflow to remediate any workitems that have no Assigned to Users.
     There does not seem to be an easy way to do this just with a workflow configuration.  Do I need to create a workflow with the authoring tool?  Can I create a workflow that will compare a support group (enumeration?) and assign an appropriate
    AD group?

    probably the easiest way to do this would be to create a console workflow that runs on create (or update, if you want this to be reoccurring) and checks for the looks for the Display Name of the Assigned to user. This would only be populated if there was
    a legitimate user, and would be null otherwise.
    you could create console workflows for each support group (i.e. If Supportgroup = NumberA and AssignedtoUser.Displayname is blank) that applies a template that contains the correct user or group for that support group enum.
    other options are available, so let us know what you're ideal conditions are.

  • Profile issue in export workflow when PS is editor but not within Ap

    Aperture is with me on my MBP (with Elements as the external editor). My place of work is not graphics related, so it doesn't have Ap but does have PS CS8, which I've used happily for a long time, for their needs and I can use it for mine as well. So I can't use PS as the internal editor, which is OK, it's just the way it goes. I'm fine with exporting 16 bit TIFFs, using PS for all the things I can't do in Ap, and then creating 8 bit TIFFs for whoever I'm sending the images to, who will use them for the gamut of uses, both print and web, but I'm not in the loop after I hand them off. The images do not then go back into Aperture, they're archived separately.
    What is the best way to workflow the color profiles in doing this? Images come RAW off a Pentax K10D and into Aperture for conversion and color and exposure, then into the pixel editor. I work in and save a set in 16 bit RGB and then hand off a set in 8 bit sRGB. Here's my problem: When I work within Aperture and Elements (internally), everything works as planned, and when I check the images but I send them they're correct in how they look and the profile as listed. But I'm not getting the same results when I export out to PS from Ap, do the same routine and check. Sometimes there is no assigned profile, and sometimes if I then assign sRGB the image goes from looking right to wrong, so I can't ignore the issue : ) No doubt it's from the external editor only being able to make one blanket profile assumption at a time, either working or exporting.
    I understand that Aperture uses its own color space, wider than both. Am I correct in trying to stay RGB and then converting to sRGB? How do I achieve proper profile workflow when using Aperture and exporting to PS externally? Thanks very much for direction in this. Searches have gotten me info about what results I likely want, but not quite how to get them in this situation.

    Arrg. Sorry for that typo. The sentence should have been " When I work within Aperture and Elements (internally), everything works as planned, and when I check the images they're correct in how they look and the profile as listed. "

  • Error while launching the workflow from OAF controller class.

    Hi Everyone,
    I'm using the below code from the submit button event to launch the workflow. The workflow works fine when I submit for the first time, when i try to submit for the second time from the same session it throws me the error as
    "Workflow with item type (XXCEDASP) and item key (SUNDRY-1061) is in progress. Abort existing workflow before launching a new process for this transaction."
    The item key which it is showing in the error is the item key for the previous transaction. Also I tried the code that is commented below (code between /* */). If I use the commented code, it doesn't throw me error but cancels all the transactions(that are initiated from the same session) except the last one.
    Is there any work around for this from oaf? Please help.
    Code:
    public void launchCustomWorkFlow(OAPageContext pageContext,
    String transaction_id, String requestor) {
    String wfItemType = "XXCEDASP";
    String wfProcess = "XXCED_MAIN_PROCESS";
    OANavigation wfClass = new OANavigation();
    String wfItemKey = transaction_id;
    /*if (OANavigation.isWorkflowInProgress(pageContext))
    String oldKey = OANavigation.getItemKey(pageContext);
    if (!OANavigation.abortProcess(pageContext, wfItemType,wfProcess, oldKey,
    null, null))
    throw new OAException("Error", OAException.ERROR);
    System.out.println("transaction ID = " + transaction_id);
    //Create Workflow Process
    wfClass.createProcess(pageContext, wfItemType, wfProcess, wfItemKey);
    wfClass.setItemAttrText(pageContext, wfItemType, wfItemKey,
    "TRANSACTION_ID",transaction_id);
    wfClass.setItemAttrText(pageContext, wfItemType, wfItemKey,
    "REQUESTOR_NAME",requestor);
    // Start Workflow Process
    wfClass.startProcess(pageContext, wfItemType, wfProcess, wfItemKey);
    Thanks
    Sunny

    Hi Haroon,
    Thanks for your reply. I tried doing it using the database procedure too. I'm having different problem if I do so. The problem is that when I submit the first transaction, the workflow is not kicked off. when i submit the second transaction, the first one gets kicked off, when I submit the 3rd one second one gets kicked off. So the last one never gets kicked off. This is the pattern I have observed.
    here is my code
    OAF Code:
    OracleCallableStatement cs = null;
    try {
    cs = (OracleCallableStatement)getOADBTransaction().createCallableStatement("{call XXCED_APWFL006_SUNDRYAPPR_PKG.INITIATE_WORKFLOW(:1,:2)}", -1);
    cs.setString(1,transaction_id);
    cs.setString(2,requestor);
    cs.execute();
    System.out.println("callable statement executed for transaction "+transaction_id);
    cs.close();
    catch(SQLException e) {
    throw new OAException("Error Raised:"+e,OAException.ERROR);
    Procedure Code:
    PROCEDURE Initiate_Workflow(transaction_id in varchar2,
    requestor in varchar2)
    is
    l_item_type varchar2(20):= 'XXCEDASP';
    l_start_process varchar2(30):='XXCED_MAIN_PROCESS';
    l_item_key varchar2(30):= transaction_id;
    begin
    wf_engine.createprocess(l_item_type,l_item_key,l_start_process);
    wf_engine.setitemattrtext(l_item_type,l_item_key,'TRANSACTION_ID',transaction_id);
    wf_engine.setitemattrtext(l_item_type,l_item_key,'REQUESTOR_NAME',requestor);
    wf_engine.startprocess(l_item_type,l_item_
    Can you please let me know what am I doing wrong?
    Also please send the code that has worked for you.
    Thanks
    Sunny

  • Ambiguous workflow when creating shopping cart

    Hi,
    When I am trying to create a shopping cart system is showing the error “ambiguous workflow”.
    We are having a stand alone system in SRM5.0.
    The configs that have been done are as follows:
    1)Root organization , the purchase organization and purchase groups have been created and assigned to the root organization.
    2)One manager and a employee have been assigned to the root organization.Manager has red hat.
    3)For the task specific workflow configuration ,under assign agents the manager has been assigned to TS 10407964.
    4)The standard SAP workflow are all active and have the same currency as the shopping cart .
    Can anyone tell me the steps for checking the uniqueness of the workflow?
    Further, do we require specifying anywhere that the manager is the approver of the employee or the system is supposed to find that automatically from the organization plan?
    I am basically a MM guy new to SRM, so any input in this regard will be very useful.Points will be awarded.
    Regards
    Supratim

    Hi,
    Please check whether for the SC multiple approval workflows are active by going in trascn SWE2.There for the Event BUS2121,you can see a list of workflows.
    If more then 1 WF is active,then check whether the starting conditions(if they exist)  for the Workflows are unique.
    If the starting conditions are not unique then the system doesnt understand which WF to trigger once the SC is saved..Hence you get the message that the "Workflow is ambigous".
    If you are doing the agent assignemnt at the TASK level,the approver/manager be will be directly taken from there.However if you want some specific logic to be followed while determinig the agent,then you can write your own rule(in which the logic can be written to determine the Approver) which needs to be attached to the Task of the WF.
    Alternatively,you also have N-step Approval Workflow for SC approval in which the complex logic for determinig can be written in a BADI.
    For more details on WF,refer the foll link:
    http://help.sap.com/saphelp_srm40/helpdata/en/5a/af5eff85d011d2b42d006094b92d37/content.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Can I launch a workflow by selecting a Radio Button

    I have three radio buttons on a form. When a user clicks, let us say "UpdateUser" radio button, it should launch update user workflow. Is this possible? How? I am trying to avoid one mouse click for the user.
    I'd appreciate any help
    Thanks

    Use the following code to launch a workflow
    <block name='**********Launc Workflow**********' trace='false'>
    <set name="processView">
    <new class="com.waveset.object.GenericObject"/>
    </set>
    <invoke name="setId">
    <ref>processView</ref>
    <s>ProcessViewer</s>
    </invoke>
    <invoke name="put">
    <ref>processView</ref>
    <s>task.process</s>
    <s>TestWorkflow</s>
    </invoke>
    <invoke name="put">
    <ref>processView</ref>
    <s>task.taskName</s>
    <concat>
    <s>TestWorkflow_</s>
    <s>_</s>
    <new class="java.util.Date"/>
    </concat>
    </invoke>
    <invoke name="checkinView">
    <select>
                                       <ref>:display.session</ref>
                                       <invoke name='getLighthouseContext'>
                                            <ref>WF_CONTEXT</ref>
                                       </invoke>
                                  </select>
    <ref>processView</ref>
    <new class="java.util.HashMap"/>
    </invoke>
    </block>
    Thanks,
    Paddy

  • I just bought a Macbook Air and a usb super dive.  How do I install MS Office 2003 on it?  It won't launch the install when I load the disk in the superdrive.

    I just bought a Macbook Air and a usb super dive.  How do I install MS Office 2003 on it?  It won't launch the install when I load the disk in the superdrive.

    A 2003 MS office sounds like a Windows version.  A 2004 MS Office that was Mac compatible can not be run natively on a new MBA since the Lions do not run PPC applications.  You will have to get a newer edition of MS Office that is compatible with your new MBA.
    Ciao.

  • I upgraded my new iPad (iPad 3) to IOS 6 and everything went well except Siri won't launch apps. When asked say "launch Facebook" Siri responds with "it doesn't look like you have an app named Facebook" and I get the same results when trying to launch any

    I upgraded my new iPad (iPad 3) to IOS 6 and everything went well except Siri won’t launch apps. When asked say “launch Facebook” Siri responds with “it doesn’t look like you have an app named Facebook” and I get the same results when trying to launch any app. Siri works for everything else it just won’t launch apps. Any ideas? Thanks.

    I have this same problem... Seems like nobody else does. Siri won't launch any apps for me, including native apps.

  • Triggering a workflow when the payment proposal F110 is confirmed/finished.

    Hi All,
    Please kindly give me your good advices that how can I start to create a workflow for payment proposal F100. The requirement is that after the payment proposal has been confirmed and completed. It needs to be triggered and automatically send out an email notice for the those vendors, the vendor email address is collected from vendor master record FK03.
    I guess it can use REGUH-XVORL, If "X" means that this is proposal record only. If " " means that it's not a proposal record, which should be a confirmed record yet.
    Please kindly instruct me how to get this task done, since I am a fresher SAP and workflow.
    Thank You Very Much.
    JC

    Hi,
    I have exactly the same requirement.  I need to trigger a workflow when the payment proposal is completed. 
    I've been searching for the answer on the internet.  Several people have asked the same question, but I haven't seen any real answer to the question yet. 
    There is no standard SAP business object for payment proposal, there is one for payment request which uses F111.  There is no standard workflow template, the one for payment release is only for releasing individual invoice.  There are answers about restricting the authorisation, it helps, but it doesn't meet all requirements.  We have people create payment proposals in UK for companies in Europe.  We really need a workflow resolution.  Seperating the authorisation will still require the person who created the proposal sending email to people in different countries to approve the payment.
    Two technical problems that we are facing. 
    1. There is no existing business object. I've been told that we should should ABAP Class.  And include the IF_WORKFLOW in the interface.
    2. There is no event created when the payment proposal is completed.  We are working on creating an event.  I've been told to use SWE_EVENT_CREATE function module. 
    If you have more information about how this can be done, or if there is any easier way, please let me know.  I will be very grateful.
    Thanks,
    Manlee

  • Trigger a Workflow when a date is reached in SharePoint Online

    I have created a simple list workflow (SharePoint Online) which emails a user, informing them a Document's
    Target Closure Date has been reached. The workflow works fine when started manually.
    I want to trigger the workflow only when Target Closure Date matches today's date.
    The best solution seemed to be to use a Retention Policy. So I went to:
    > Library Settings
    > Information Management Policy settings
    > Document content type
    > ticked 'Enable Retention'
    > Time Period:  Target Closure Date + 0 days
    > Action:  Start the relevant workflow.
    This worked only on two occasions - both were Saturday mornings, at 3.30am and 4.30am. I can see
    in this MS article the Expiration Policy timer job only runs weekly on SharePoint 2013, so can anyone confirm that the schedule is the same in SharePoint Online?
    If so, is there any way in SharePoint Online I can trigger a workflow when a date is reached?
    Thanks for your help,
    Alyosha

    Hi Alyosha,
    According to your description, my understanding is that you want to send an email to a user when the Target Closure Date was reached in SharePoint Online.
    The timer job of Retention Policy runs weekly in SharePoint Online, so we cannot use the Retention Policy to trigger the workflow.
    As a workaround, I recommend to create a workflow associated with the library to send the email when the Target Closure Date was reached.
    Here are the detailed steps:
    Create a workflow associated with the library and set the workflow to start when an item is created.
    Select Pause until Date to set the workflow to pause until the Target Closure Date.
    Select Send an Email.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Iviews in home page not visible when I assign eu_role to portal users

    Hey guys,
    For the tool area search, I had access denied error. So I have assigned eu_role to the portal users and I am able to search now in the tool area.. But the problem is when I assign this eu_role to the portal users I am not able to see some iviews in my home page.. Like I had webdynpro iview and km document iview which are not visible now. And in place of KM document iview its showing me with this message:
    Links :There are no items to display (Organize Entries)
    Suggest me with some help.
    Regards
    PP

    Hi Priyanka,
    Just refer these helps for getting idea on PCD Repository Manager.
    http://help.sap.com/saphelp_nw04/helpdata/en/76/a8934259a5cc6ae10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/d59a4271c80a31e10000000a1550b0/content.htm
    It is clearly mentioned in this document that ,
    <i>To index the PCD repository, always choose the Portal Roles Search service. Do not choose the services TREX Search or TREX Search and Classification, because these services index the entire PCD. Thus, the search results would also contain iViews and portal pages that are not part of the role of the logged-on user. This ensures error-free navigation.</i>
    Regards,
    Kishor Gopinathan

  • There is no task in UWL when i assign expression as responsible for a task

    Hi @,
    I create a simple process BPM on Process Composer, there is a task and a service to start this process.
    When i assign specify user for this task (e.x : ABC), i start process using the service, it's ok, there is a task is assigned to ABC.
    But when i use expression to assign for the task, the value of this expression will be mapped with data i input when start process using the started service. There is no task on portal.
    Please give me some advices,
    Thanks

    Sorry, here is trace message:
    An error occurred while executing transition START_TASKFLOW_Review_Timesheet(Token_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),1), Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false), Context_1_DO_PersonInfoType_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),Scope_16_New_Pool_0_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false)),1,true), View_4_Default_ExcludedOwners_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),Scope_6_New_Pool_0_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false)),0,false), View_5_Default_PotentialOwners_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false),Scope_8_New_Pool_0_0660a0655e09d2a43f917ec81589b112(Instance_0_P03_Timesheet_Process_0660a0655e09d2a43f917ec81589b112(null,null,null,false)),0,false)): com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:538)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:120)
    at com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:116)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:337)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:114)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:266)
    Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:538)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.glx.core.kernel.mmtx.PrimaryTransaction.inPrepare(PrimaryTransaction.java:88)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:172)
    ... 11 more
    Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:538)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.glx.core.kernel.mmtx.DirectNestedTransaction.inPrepare(DirectNestedTransaction.java:58)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:172)
    ... 14 more
    Caused by: com.sap.glx.core.kernel.api.CancelTransitionException: java.lang.IllegalArgumentException: Identifier '$principalId' invalid
    at com.sap.glx.core.internaladapter.ExceptionAdapter.raiseException(ExceptionAdapter.java:540)
    at com.sap.glx.core.internaladapter.ExceptionAdapter.raiseException(ExceptionAdapter.java:511)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.createTransitionException(Transformer.java:2033)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.invoke(Transformer.java:2053)
    at com.sap.glx.core.internaladapter.Transformer$TransformerInvocationHandler.invoke(Transformer.java:576)
    at com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:463)
    at com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:247)
    at com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:670)
    at com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:64)
    at com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:241)
    at com.sap.glx.core.kernel.mmtx.DirectNestedTransaction.inPrepare(DirectNestedTransaction.java:57)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:172)
    ... 17 more
    Caused by: java.lang.IllegalArgumentException: Identifier '$principalId' invalid
    at com.sap.glx.mapping.execution.implementation.node.PrimitiveNode.readContainer(PrimitiveNode.java:32)
    at com.sap.glx.mapping.execution.implementation.node.PrimitiveNode.readContainer(PrimitiveNode.java:7)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.resolveSourceReference(Interpreter.java:81)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.resolveSourceStep(Interpreter.java:89)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.resolveSource(Interpreter.java:67)
    at com.sap.glx.mapping.execution.implementation.Interpreter$SourceResolver.<init>(Interpreter.java:56)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapPart(Interpreter.java:145)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapPart(Interpreter.java:151)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapPart(Interpreter.java:151)
    at com.sap.glx.mapping.execution.implementation.Interpreter.mapMapping(Interpreter.java:140)
    at com.sap.glx.mapping.execution.implementation.Interpreter.map(Interpreter.java:135)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.map(Transformer.java:2071)
    at com.sap.glx.core.internaladapter.Transformer$ClassRegistry$MapperClassManager$MapperClassHandler$MapperInvocationHandler.invoke(Transformer.java:2048)
    ... 25 more

  • How to start a workflow when a value in specific column is changed?

    HI !! 
    I would like that  my workflow will run only if a value on a specific colunm will change.
    is there a way to do it without using a third colunm ?
    thank you !
    nikita.

    Hi,
    According to your post, my understanding is that you wanted to start a workflow when a value in specific column is changed.
    When you create workflow, if you check the “start the workflow automatically when an item is changed”, the workflow will be started automatically once the item is edited.
    In the other word, no matter which column we changed, the the workflow will be started automatically.
    As a workaround, we can add condition or action to make the workflow excute the next step only if the value in specific column is changed.
    There are two options to achieve it.
    Use the “Wait for Field Change in Current Item" action”. If you add the action at the first,  the workflow will excute the next step until the column is chaned to the specific value.
       2. User the “If any value equals to value” condition. If you add the condition at the first, the workflow will excute the next step if the condition is satisfied.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to know the workflow object name assigned to a Transaction code

    Hi Friends,
    There is one workflow object assigned to one transaction code VKM1. How can i know the workflow object name assigned to that particular transaction. Can anybody help me?
    Regards
    shankar

    HI
    Please check t.code PPOMW
    Thanks & Regards
    Phaneendra

  • 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

Maybe you are looking for

  • How do I change my primary email account?

    I have 2 gmail accounts. I want to change my current primary account and make the other gmail account my primary. I can't find any place in my account settings to do this. I have a MAC with Lion OS. All is updated.

  • TS1538 my iphone device not recognized in iTunes for my new Windows 8 computer

    my iphone device not recognized in iTunes for my new Windows 8 computer

  • Error when switching from local host IP to true IP

    I'm using the basic java.net.ServerSocket and java.net.socket arrangement to make a very simple chat program (planning to build a mutlithreaded client/server a little bit later). For most of my testing, I've specified the IP for the client socket to

  • Shading and line art

    I do a lot of linework traditionally but recently I stumbled across the work of another artist who achieves a beautiful hatching technique through adobe illustrator. The image below shows such the technique. Having no way to contact the artist does a

  • Production confirmation cancel through QM

    Dear Sir/Mam In our scenario when production order is confirmed we get inspection lot with inspection lot origin 04,if material is accepted i post the stock in unrestricted which acceptable by the user,but if the material has to be rejected we do not