cancel
Showing results for 
Search instead for 
Did you mean: 

Problem executing 2 consecutive tasks (visible)

Former Member
0 Kudos

Hi all,

i'm having a little problem (or not 😛 ). I'll try to explain.

- I have a workflow (obviusly) that have 1 decission task.

- This step only have 1 option (called "See contract").

- When user selects this option, my workflow executes another task.

- This last task calls a method that calls a transaction. It's a task with a fixed agent (1 user) and the method is executed with dialog.

Well, my user executes correctly first step. He goes to the transaction. But in his workplace remains the workitem (call transaction task) with status "In process".

Why this workitem doesn't dissapears?

Regards,

Roberto Campo

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos

HI

Did you finish the complete execution of the transaction , I mean when user executes the activity then it leads him to a transaction and did he completes the eniter with the transaction and comes out of it

Or

By using the Funciton module SAP_WAPI_SET_WORKITEM_COMPLETD you can set the work item status to Completed all you have to pass to this function module is Work Item ID

You can get the work item ID details about a particular Task or Work flow from the table SWWWIHEAD where in the field WI_RH_TASK, enter the task or Workflow number you will get the Work item number

Former Member
0 Kudos

Hello Pavan,

first of all, thanks for your answer.

Yes, the user finishes the complete transaction (comes out). I don't understand why the last workitem remains with "In progress" status.

About using this function module, can i use it in the method that calls the transaction? I suppose that I have to call it before I do the call transaction.

Regards,

Roberto Campo

bpawanchand
Active Contributor
0 Kudos

Try to call after the Call transaction Statement and check out

Former Member
0 Kudos

Ok, I'll try it.

If it works i'll give you the points.

Thanks.

Former Member
0 Kudos

Well, it's looks like calling this function module works. I don't like so much this way... but works

Points for everyone! Thanks!

Answers (0)