10-17-2006 5:23 AM
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
10-17-2006 7: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.
10-17-2006 5: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
10-17-2006 5: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.
10-17-2006 5:59 AM
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
10-17-2006 7: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.
10-17-2006 7:49 AM
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
10-17-2006 7:58 AM
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