10-11-2010 9:55 PM
Hi,
We have maintained a flag in custom table. Now we want to enable or disable the triggering of workflow depending on this flag which is maintained in the custom table.
Please guide me how to do this.
This custom table value is not available in the containers.
Hence, I copied the standard check function for the workflow and at the end of FM checked this flag and raised exception if it fails.
But still the workflow is getting triggered.
Is there any other or correct way to do this?
since the copied function module was custom FM, I have defined the new exception and raised it.
I am new to workflow, so please guide if i am doing anything wrong.
Basically the client wants to activate or deactivate this workflow by maintaining the flag in custom table, so that he would not have to check with support again and again.
10-12-2010 5:46 AM
Hi
There is a another solution for this. Create a new event and required container element in your business object. Your custom workflow should be triggered on this event. You can trigger this event in appropriate user-exit.
Regards
Sachin
10-12-2010 1:16 PM
But we are using standard Workflow.
If we have to use the custom workflow, then i can do the setting using fork and using all the custom data.
But Since it is working and standard workflow is provided for this, we decided to go for it...