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

Check function modules in Workflows

Hi,

The requirement is that, I need to trigger a workflow based on a condition ,if the condition is true then WF 1 has to be triggerred if not then WF2 has to be trigerred, the requirement is that i need to implement check FMs for this, can anybody send me sample code on how to do this? and give me the step by step approach of how to configure this in the transaction SWETYPV and SWB_COND. please its urgent.

Regards

Narendiran Rathinavelu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 06:05 AM

    Hi Naren,

    U donot need to make a new entry in the view for the tcode SWETYPV.When u create a test workflow in tcode pftc u have one of the tabs for triggering the workflow select tht tab and enter the triggering event and the BOR object.Activate it.

    When you do that u will automatically get an entry in the tcode SWETYPV.

    Hope this helps.

    Please reward useful answers.

    Regards,

    Shrita.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      To acheive your requiement you will have to write your own business object method which selects the required data from the tables. The parameter will have to passed to the method by proper bindings between the containers.

      Thanks,

      Prasath N

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 04:38 AM

    Naren,

    If your requirement is to trigger either of one WFs the correct option is using a start condition. Bcoz check fm are maintained for one wf.

    reward if helpful

    Rgds

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 04:44 AM

    Hi,

    First create the two workflows. When you create a workflow if the WF is error free an automatic entry is made in the view of the tcode SWETYPV . now goto the tcode SWB_COND here goto the dropdown business objects and select all object types and then click the button in the application toolbar create new start condition.when u do that a new screen appears.Here u will find all the workflow templates.Click the template which u want to add a new condition to trigger.when u click it a new screen appears here u add the condition to trigger the workflow.

    Hope this helps.

    Reward useful answers.

    Regards,

    Shrita.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi ,

      I created a test workflow with business object FORMABSENC WS90000002, when i try to to add a new entry in the view, of swetypv, using "the new entries option" i am getting an error messsage asking me to enter the receiver function module, can you please help me out on this.

      Regards

      Narendiran Rathinavelu

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.