Workflow- Adding Terminating event into a Decision Step

Hi
I have a requirement like, in the decision step for example 'Approve' or 'Reject' has to be executed from the web application by triggering a terminating event for this decision step. I have copied the decision BO DECISION to ZDECISION and created two terminating events and make it ashynchrounous. But this step is not getting executed in the workflow showing error as 'no terminating event is attached to the task'.
Any input on this is welcome. If you could reply bit early as I need the information ASAP.
Thanks in advance.
Padman

Hi Padman,
Weclome to the SDN forums. We don't have a specific Workflow forum yet. Please post your questions in the General SDN Forum until we do.
I moved your questions there.
Thanks, Mark.

Similar Messages

  • Adding of RAW-attachement in decision step ?

    hi,
    i have an decision step in an workflow.
    there it is possible (as SAP Standard) to attach a attachement.
    but the only thing a user should do there is to enter an RAW document, just a text
    for the next user.
    BUT: when i push the 'attachement' button in the decision step i get
    a very user-unfriendly popup 'between'. there the user must enter
    a text BEFORE he can enter the text in the editor.
    is it possible to avoid that windows between and get DIRECTLY into
    the note-editor ???????
    reg, Martin

    Hi,
    Assign "Description as your default attribute in your BO basic data...
    this will work...
    Regards
    Gautam

  • Repeat workflow by termination event

    Hi
    I’m developing a workflow to assign a SAP position for a New Hire employee.
    The sceniro is “ If an employee is hired with default position, then WF have to be triggered to HR Administrator.So far the workflow is working fine.
    But there is a new requirement, if a HR Administrator cancel one of the task meaning confirmation message, then the same workflow have to be re-triggered from beginning. As we know we can write in termination event.
    But I don’t know where to write this logic in task definitation. I’m working in ECC 6.0
    Pls help me to sort out this issue
    Thanks
    Kamalbabu

    Hi Mike
    Thanks for your immediate response. Defining repeat workflow in workflow header is not working for this scenario.
    There is  a requirement, if a HR Admin cancel any task in workflow builder, then the workflow have to restart from beginning. Let say, I have include one task which will take the HR admin to PA40 to assign valid SAP Position for a new hire employee.. After he complete & before closing the WF, a confirmation message is displayed where HR admin have to select whether he want to <b>close or cancel</b> the WF. If he cancel the workflow then same workflow have to restart/re-trigger again
    Please help me to fulfill this requirement
    Thanks
    Kamal Babu

  • Terminating Event with Decision Step

    Hi,
    In our purchase requisition approval workflow, I need to have a decision step in which to prompt approver to either approve the req. or reject the requisition.  In this decision step, I need for it to have terminating events for "SIGNIFICANTLYCHANGED", "RELEASE", "REJECT" and "RESET".
    First, I copy the generic decision task 8267 to my my own custom decision task.  Then I added a BUS2009 in the container, releasecode and other needed elements.  In this custom decision task, I was able to add these terminating events that has been defined in the BUS2009.  I was able to setup binding, except the one binding
    Terminating Event  ->   Task
    &_EVT_OBJECT&      ->   &_WI_OBJECT_ID&
    Since the &_EVT_OBJECT& for the terminating event is BUS2009.  And the custom decision task &_WI_OBJECT_ID& is DECISION business object. They're incompatable business object.  So I replaced that binding with
    Terminating Event     ->  Task
    &_EVT_OBJECT&    ->   &PURCHASE_REQ&
    After all the configuration has been setup.  I created a new purchase requisition.  Upon the RELEASESTEPCREATED event, it create a custom decision workitem in my agent's inbox.  When I triggered the "RELEASE" event, it is however not terminating my custom decision workitem.  The workitem still sits in the agent's inbox waiting to be execute.
    Is it possible to setup terminating events for decision step?  Any kind of suggestions or inputs would be greatly appreciated.
    Thank you.
    Jennifer Tran
    System Analyst

    I will suggest you to create a fork with 2 parallel branch and 1 necessary branch. Put the approval step in 1 branch and the wait for Release step event in another branch in this way you can suffice your requirment.
    Thanks
    Arghadip

  • Issue with Terminating Event - Reg

    hi Gurus,
    This might be a simple issue, but am not getting hold on a simple solution for my issue.
    I'm working on ECC 6.0.
    I have a custom workflow in which I have step1(A dialog task - Asynch) with a terminating event "COMPLETED" and then step 2 (A background task). once step1 is completed by user A, i am sending this WIACTUAL_AGENT to the step 2 in modifying some custom table data.
    My issue is if user A finished the task(step 1) manually, then also the Term. event COMPLETED is getting triggered and hence the work item in user A's Inbox is disappearing. And then it's picking up user A as WIACTUAL_AGENT and sending to step 2. But, i need to distinguish or some how find out if the Termin. event occurred thru' execution of the workitem or manually performing the job. I looked into the workflow log for both the cases, and i don't find any clue with which i can differentiate that the Termin. event occurred thru' executing witem Vs. performing manually.
    Anybody has any idea on how to find this out. Coz, depending on whether the action is done manually or thru' witem, i 'll be modifying the custom table data accordingly. Currently, for both the cases, when the Term. event occurs, the WIACTUAL_AGENT is same user A and hence it always is treating that the action is done thru' witem only, even though its done manually. This is because, when executed manually also, the step1 witem is ending with container element WIACTUAL_AGENT filled with user A and hence its proceeding with background task in step 2.
    Any thoughts on how to tackle this issue. Your suggestions / input is really appreciated.
    Thank you in advance. Pl let m

    Hi Venu,
    I have quickly created a sample workflow in my system.
    Here is what I did:
    1) Workflow will tigger to my inbox whenever Change master is created.
    2) Created a custom task with object type ECM and method 'EDIT' with termination event 'Deleted'.
    3) created fork step type with 2 branches and necessary branches 01.
    4) one branch will execute  the task created above
    5) another branch will wait for the event "Deleted" of ECM
    6) I have created a container element flag ( of type XFELD ).
    7) In the wait event binding I am passing X to worklfow container element flag.
    7) I have created change master from transaction CC01.
    8) Received the worklfow and deleted the document via worklfow.
    9) I checked the worklfow log and found that the flag container element is not populated
    10) I have created one more change master from transaction CC01.
    11) Received the worklfow but deleted the document outside the workflow.
    12) I checked the worklfow log and found that the flag container element is populated with 'X' this time.
    I think you can use that flag to differntiate whether the transaction was done outside worklfow or within the workflow.
    Hope this helps.
    Thanks.
    Krishna.

  • How To Send Invoice List as attachment in User Decision Step?

    HI All,
    I have developed a workflow in which there is one ZMETHOD in which i will get the list of invoices.and that i want to send it as attachment to User Decision Step.
    How to do this?
    Regards,
    Arpita

    If your users will have access to MIR4, why not just bind the business object BUS2081 as an adhoc object into your decision step?  That would solve everything pretty nicely, I think. 
    Regards,
    Sue

  • Adobe form as attachment to user decision step

    Hi,
    i need to add adobe form as attachement to user decision step in workflow.
    1. i created activity step which call business object method with parameters workitem id
         i am using FM  SAP_WAPI_ATTACHMENT_ADD’  which will return attribute id
         i am passing that attribute with document id to 'ZSOFM'
            ZSOFM <-----------------------------------ZSOFM (Method to task)
          Bindings 'Attach_objects'  <------------- ZSOFM(Task to Workflow).
    2. i created user decision step
        Bindings  'Attach_objects' --------------------> 'Attach_Objects'( Workflow to user decision task).
    but when we execute first activity step in background i am not getting any PDF output .but when we  execute same method from class i can see pdf data is coming is it due to user name WF-Batch.
    when i execute activity step in back ground which will have sy-uname as WF-Batch i am not getting any PDF output data.
    please help how to solve .
    Thanks,
    Phani

    In transaction SWO1 create a z-object lets say zmyobjpdf (you might want to use it as a sub object of your standard object without delegation since they will probably have the same key).
    create a method in that object calling the adobe form.
    set it as the default method in the object header.
    now create an instance of the zmyobjpdf in the workflow for example as an attribute of the original object) and transfer it to the decision task.
    It will be displayed as an attached object pressing it will call the default method - your adobe form.
    If your question was about how to create a function module to display the form see SAP Library - PDF-Based Forms

  • Set Decision Step in WF via Terminating Event

    Hi All,
    I have a custom Work flow in which I am trying to terminate a Decision Step via a terminating event.
    Following Pre- requisites have been set:
    1) In the Control task for the decision step I have assigned the terminating event.
    2) Required linkages have been maintained via SWE3 transaction.
    ISSUE: When the terminating event is raised then the Workitem for this steps gsts completed but workflow ends with an ERROR --> "No Successor for the terminating event defined".
    Please let me know if any of you is familiar with the issue or have any inputs.
    Thanks in advance..

    Hi Sourabh,
    There would be some binding problem going with Decision step while using Terminating event maintained at
    the Task of the Decision step.
    Rather go with FORK step with two parallel branch and 1 necessary branch. Specify the approval step in one
    branch and wait for the release step event in another branch.
    Hope this way would solve your issue.
    Good luck
    Narin

  • Purchase Order Workflow - dialog step not receiving terminating event

    Hi,
    We have a scenario wherein based on the release groups and release strategies, different peope need to release the PO's.
    I have been able to develop the workflow for this successfully, but here is where I am facing an issue.
    After the PO has been created, based on the release group and strategy, it gets routed to the appropriate 1st approver. On their approval, the PO gets routed to the 2nd approver. Once the 2nd approver approves, the dialog step doesnt get completed and is still waiting for the terminating event. Event trace shows that the event is getting published, but there is no workitem to receive the terminating event. I am not sure why this is occuring for only 2nd approver onwards whereas for the 1st approver, the terminating event is received by the workitem.
    I am using start conditions for my workflow to ensure only 1 instance of the workflow is triggered for a rel groups and rel strategy and release code, else I am multiple instances each time an approver approves the PO. I am not sure if the start conditions are causing this issue with the terminating events not being received with the workitems.
    Any assistance is welcome.
    Thank you,
    Satish

    From the information provoided it seems you are using PO that is subjected to Release of PO for multiple Release Code and each Release Code Release is being done by one approver. If that is the case then I think the Terminating event should get caught. Please check whether the Terminating event that is getting triggered is specific to the Release Code or not.
    Thanks
    Arghadip

  • Workflow Issue - Adding parameter to my decision step.

    Hi
    I am working on workflow and in decision step there are 4 parameters that I can use for Title. I have a requirement of 6 parameters. Is there any way in which I can add another parameter to my Decision step.
    Himanshu Verma.
    Patni Knowledge Park, India.

    Would it be possible for you to concatenate the values of two parameters into one in a previous step?
    Or even having only one parameter and a previous step that generates the full title you want to display...
    Data element is SWD_PARAM1 which is CHAR255, long enough for holding a custom title.
    Hope that helps,
    Andres.

  • Regarding terminating events in workflows

    Hi,
    I know that terminating events are used with asynchronous methods. Can anyone tell me, why do we need to do so????
    Thanks and Regards,
    Ravi Varma

    Hi
    Check the links below
    Workflow automates the steps and activities in a business process according to predefined procedures and rules.
    Workflow presents information and documents to the appropriate knowledge worker or agent (another entity such as a program) to make a decision or perform an activity.
    Workflow tracks each and every step in the process flow and maintains an ongoing status.
    Workflow also collects and reports all of the metrics associated with the execution and completion of the process.
    Check the below links u will get lot of info..
    http://www.sap-press.com/product.cfm?account=&product=H950
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Go through the following links on FORK :
    http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
    http://www.insightcp.com/res_23.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    For more reference on workflow: http://****************/Tutorials/Workflow/Workflow.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/9277a346f311d189470000e829fbbd/frameset.htm
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
    http://www.sapgenie.com/workflow/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    Debug a workflow.
    This has a step by step procedure :
    http://fuller.mit.edu/workflow/debugging.pdf
    www.erpgenie.com/sap/workflow/debugging.htm
    http://www.erpgenie.com/workflow/debugging.htm?2b5de440
    Workflow tutorials with step-by-step and with screenshots are available at
    http://www.****************/Tutorials/Workflow/Workflow.htm
    http://www.sapgenie.com/workflow/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
    Reward points for useful Answers
    Regards
    Anji

  • Programatically pprove/Disapprove user decision step in a waiting workflow.

    Hi Experts,
    If I have the approval step work item ID,can I programetically resume the waiting workflow by providing the input (approve disapprove).
    The use case is that the workflow is started. The workflow has a approval step and it is now waiting for user decision.
    When the workitem is created,I get the workitem id thru an exit.
    Now assume the user decision is got thru another means and now I want to resume the waiting workflow by providing the decison into the waiting workflow.The workflow should now continue with the subsequent steps.
    Is there any WAPI to do that.
    Thanks in advance.
    Bikram

    Ad Hoc Approval should be done with transaction SWIA.
    If this occurs a lot then a redesign of the flow is in order. One where with deadline monitoring you can take certain actions when workitems are idle for an amount of time.
    Also setting up substitution is advisavle for this scenario.
    Programmatically doing stuff is done with the SAP_WAPI function modules, check out if sap_wapi_decision_complete works for you.
    Kind regards, Rob Dielemans

  • Error in decision step in customise workflow

    Hi,
    When i execute my customise workflow, There are 2 decision steps. On 2nd decision step i am getting error message  'Element '_WI_OBJECT_ID' not in container. In 1st decision step, element WIOBJECT_ID is not in container, but it execute successfully.
    How do i solve this?
    Regards,
    Smit

    Hi,
    Smit do proper binding between event and workflowcontainer and WF container to task container.
    If you are not aware of it you should use RED Round button which automatically do this for you.
    and another thing goto agent assignment and specify that task with general task from attributes.
    Hope magic Works!
    Regards,
    Purvesh Patel.

  • Workflow runtime error because of terminating event

    Hi all,
    In one of the workflow template, in one step, the Standard Task is having Terminating Event.
    At the runtime, at the particular step, when it was in process, the terminating event is triggered. The step got completed,
    But the workflow is not proceeding.
    When I viewed the workflow log, In the perticular step after receiving the terminating event, the follwoing error is shown
    " Workitem XXXXXX is locked by the user YYY(Enqueue error)".
    The workitem number mentioned in the error is parent workitem number, not one of the particular step.
    I know that there is a setting in SWU3 to schedule a job for errored out workitems. That job is already scheduled and it has tried two times and it stopped.
    Now do I have to restart the workflow again or the issue can be resolved in the workitem in progress.
    Thanks,
    Sarayoodharan.K

    the terminating event is triggered. The step got completed,
    But the workflow is not proceeding.
    When I viewed the workflow log, In the perticular step after receiving the terminating event, the follwoing error is shown
    " Workitem XXXXXX is locked by the user YYY(Enqueue error)".
    Can you please let us know how you are trying to trigger the terminating event,I mean are you trying to trigger the terminating Programatically, then you might be using a FM to rasie the terminating event, by looking at the error it is clear that the event is triggered and the workitem got completed but the lock on the workitem is not released , you can release it by using the COMMIT WORK statement
    You have to write the commit work statement after raising the even or make sure that someor the other way the commit work is executed, this is beacuse once the commit work statement is executed all Locks are released..

  • Workflow decision steps

    Hi,
    I have a decision step.  When the user executes it a workflow log and a create attachment buttons appear on the top.  Is there a way to suppress these buttons?
    Thanks,
    Scott

    Hi Janos,
    Thank You for your quick response.
    I am able to see the link attachment in the Objects and Attachments section but when i click it on the link the invoice image it should get open in SAP Document Viewer  it's not opening  just doing nothing .
    "ArchiveLink Image in workflow screen doesn't work , the image does not open. No error message at all ,just doing nothing when clicking on that link"
    But when logged into SAP Portal the same link is opening and able to see the image in SAP document viewer. But from SAP GUI it's not working.

Maybe you are looking for

  • Oracle 11g installation in Vista

    Hi friends, I am having problme with windows XP, so planning to install windows vista. Will Oracle 11g(downloaded from oracle website) and oracle 10g developer suite will support in vista. Please help me.. --kishore                                   

  • Small business network issues!!!

    I am at my wits end with this problem:  We have a small business network consisting of 6 Mac Pro computers and 2 Windows PCs.  Everything was working fine until we needed to replace one of the WinXP machines with a Windows 7 machine.  None of the Mac

  • My iPad have a line on it how can I do

    My ipad screen has a black line,how can I do

  • CS6 Photoshop Problem? Grey/Black Halo around feathered transparency??

    Is anyone aware of a gray/black halo around feathered transparency objects. The halo occurs where the solid area of pic feathers to the transparent. NOTE: Image looks fine in Photoshop(CS6) but when placed in Indesign (CS5) a black halo appears on pa

  • Perl on AIX 5.3 Oracle11

    How do I get the oracle installed perl to work on AIX Oracle11 - 11.1.0 I tried: perl -e "use DBI; \$drh = DBI->install_driver('Oracle');" install_driver(Oracle) failed: Can't load '/oracle/app/oracle/doit/product/11.1.0/oradoit/perl/lib/site_perl/5.