Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Check function modules in Workflows

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

Hi,

Will this automatically a create function module in the SWETYPV transaction ? and if i need to implement a complex check for a condition,like i get a ID from the event container and using this as the key select from a table etc. How should i do this.

Please help.

Regards

Narendiran Rathinavelu

0 Kudos

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