Skip to Content
author's profile photo Former Member
Former Member

Trigger a workflow for some condition


When the status of the costing sheet has been changed to ‘Waiting for Approval’, system should trigger a workflow. The BOR which is being used is BUS2031. The events which can be used for triggering the workflow are CREATE & CHANGE. How do we maintain this starting condition for this events ?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:17 AM

    Do you mean that the event is not triggered at all as standard?

    Or do you mean that you want to maintain starting conditions for the workflow itself? This you can do in SWB_COND. Or then you can define a check function module for the linkage between your event and workflow in SWETYPV.

    Add a comment
    10|10000 characters needed characters exceeded

    • SWB_COND is used to add restrictions, i.e. to check additional conditions when a triggering event has been created and prevent the workflow from starting unless the conditions are met. My guess is that this is why Karri responded as (s)he did.

      So in your case, you must first find out which event is created when the approval status of your costing sheet is changed to "Waiting for approval". If an event is created, and this same event is used for other status changes, you add a condition in SWB_COND.

      If no event is created, you have some other options. One is to use change documents, if change documents are created for the business document change. If this subject is new to you, search SDN and other sources for information about SWEC for a start.

      Other options would be Business Transaction Events (BTE) or user exits of any kind (including BAdIs of course) which can be used to create an event when the approval status is changed.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.