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: 

Trigger workflow depending on the custom table flag.

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

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...