cancel
Showing results for 
Search instead for 
Did you mean: 

Create Worflow item only if Task is released WS00400064

0 Kudos

Hi SAP Experts

I’m using Standard Workflow WS00400064 to create work items if Notification task is released and if for a released task user responsible will be changed. This works basically but if I change user responsible for a task not yet released it creates also a work item. I tried to enter conditions in start event tab but it seems condition will be not used. There is no field to restrict only for released Tasks (TSRL) or something like this. Used condition also with Planned Start date and or Time. Do I do something wrong or is there another possibility to create work item only if Task is released?

Thanks a lot for your help!!!!!!!

With kind regards Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Is the workflow started via an event? Is there an event linkage(s) defined in transaction SWETYPV for more than one workflow?

Can you turn on the event monitor, and monitor (transaction SWEL) which events get triggered when you do the different operations for the notification task?

I don't know this particular workflow or its functionality, but just by looking the following SAP help document, it looks like there is an event RESPONSIBLEISCHANGED that starts a workflow.

Workflow Template WS00400064 (QM Pers.resp) - QM - Quality Management: Workflow Scenarios - SAP Libr...

If you just deactivate the linkage to this even in SWETYPV, perhaps the unnecessary workflow will not start anymore?

Regards,

Karri

0 Kudos

Hi Thanks a lot for all your answers! I have activated in Event linkage SWETYPV for Object type QMSM event RELEASED and RESPONSIBLECHANGED! If I create now a new Task for a Notification with QM02 assign responsible user release the task and save the changes a Work item will be created from Workflow WS00400064 Task TS00008323. Everything is in that case OK! If I create another Task assign a responsible user without releasing and save the Notification also no Work item will be created. Everything is in that case OK! But If I go into the Task again, change the responsible user and release the Task 2 Work items will be created! Event linkage should be active only for released tasks in Notifications. If I change the user and release the task both events are available! Can this (RESPONSIBLECHANGED is active) be handled by Conditions and if yes how do I have to do it? With kind regards Peter

Former Member
0 Kudos

I am not sure if I understand you correctly, but my idea is (and was) basically to deactivate the event linkage for RESPONSIBLEISCHANGED. Just leave the RELEASED event linkage activated.

Well, to be honest I might not be following you completely right.

Basically if in some situations you do NOT want to start a workflow (when an event is triggered), then you have few options:

1) Start conditions (they might not work in all cases, if the needed information is not available in the event condition check).

2) Event check function modules. Basically you set an event check function module to the corresponding field in SWETYPV. Then you need to add your own code to this function module to check whether you want to start the workflow or not. Typical case is that you check if there is a workflow already running for the same "object", and if there is, then you just raise an exception and the workflow will not be started.

Regards,

Karri

0 Kudos

Hi Karri

Thank's for your answer!

Well business case is Coordinator releases tasks. Responsible users for tasks need to be informed with Work item that there is a new task in their responsibility (at the end with Outlook Email). It can be that for a released task responsible user needs to be changed. In that case User will be changed in QM02 and new user needs to be informed. This works perfectly but it seems a responsible user change is also if task in notification is created and we change the user!? I tried a lot but Conditions did not solve the problem.

Kind regards Peter

Former Member
0 Kudos

The events are triggered by the standard code. Normally there is not much you can do to prevent those events to be triggered (or if an event is not triggered in some scenario in which you would want it to be triggered).

It is possible that you cannot solve this with workflow start conditions. Normally you can do only quite simple things with conditions - such as checking if field value is X or Y. To be honest I cannot completely follow your explanation. But lets say that event X is always triggered when the responsible user gets changed. This is fine and your workflow starts. Now, you don't want to start the workflow when the QM task is till in certain status ("not yet released"?). Normally you would check the status field in the start conditions, and if the status was "not yet released", you would not start the workflow. If this field is not available in the start condition editor, it means that the "status" attribute/field has not been defined for the corresponding business object. Then in this case you should create a new attribute to the business object.

Regards,

Karri

Answers (2)

Answers (2)

anjan_paul
Active Contributor
0 Kudos

Hi,

   I think you can take help of Check Function  Module for doin it.

Former Member
0 Kudos

Hi Peter,

Sorry but I am not able to understand the question clearly. "Task released" is it related to some order task or some other thing in SAP or you are talking about workflow task released ?

Till now , i can figure out that there must be a Business object on which you are working and the same must be having a status field etc to check in start condition or check inside the workflow. Please check.

Thanks

Rakesh