cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow and WD integration

Former Member
0 Kudos

Hi,

We are implementing Workflow and Webdynpro ABAP integration.Employee submits competences from portal, this triggers an approval task to the manager .Manager will approve the task from worklist and when he clicks on task, Web dynpro application opens up where he has to approve or reject accordingly.

We have approve and reject buttons in Web dynpro and we have used User Decision Step type in Workflow to open the Web dynpro application.User decision step decisions are mapped to Web Dynpro approve/reject actions.

So we are able to successfully launch the Web dynpro and perform the actions.But problem is the rest of Wrokflow after User Decision step is not getting executed. Workflow is getting stopped at this point.

We have tried using FM's SAPI_WAPI_DECISION_COMPLETE and SAP_WAPI_WORKITEM_COMPLETE.

Both these FM.s complete the User Decision step but does not execute rest of Workflow.

Please help me if you have come across this scenario.

Accepted Solutions (0)

Answers (2)

Answers (2)

bpawanchand
Active Contributor
0 Kudos

Hi

When you are making use of approval rejection scenario then you have to make use of the SAP_WAPI_DECISION_COMPLETE function module and make sure you have passed the X to commit_work Parameter.

Secondly, What I would suggest you is make sure when you are trying to update the database tables the entry which you are modifying is not locked.

I feel that there might be or not be a dump in ST22 but still try to execute the method from which you have used to update the table explicitly separately from SWO1 txn.

Regards

Pavan

Former Member
0 Kudos

Does the worklow go into an error or what happens to it? Have you checked the technical log to see possible warnings/errors?

What happens after the approval step in your workflow? If you manage to complete the work item with the WAPI function, the workflow should continue to the following steps. If there aren't any steps, the workflow should be completed.

In other words, investigate the technical workflow log and report your findings.

Thanks,

Karri

Former Member
0 Kudos

The workflow log does not result in any error. The user decision step is complete, and gives Processing is complete in Step History. After User Decision, we have steps like updating the database and sending success mail to employee.

suresh_subramanian2
Active Contributor
0 Kudos

Hello Archana !

After user decision step, you have maintained the step that updates database as immediate step.

Have you tested this step separately ? If it have yielded successful results, check the binding for the immediate step after user decision.

Also, check the workflow log whether the containers for the step that updates the database are populated with required values.

Is the method that updates the database is custom method ?

Regards,

S.Suresh.

Former Member
0 Kudos

Definately check ST22 for possible short dumps. Maybe everything is right with the decision step, but the following step is causing the problem. For example if there is a short dump, the workflow log could just show that everything is correct but the workflow does not continue. The only place where you find that something is wrong is ST22.

Regards,

Karri

Former Member
0 Kudos

I also suppose that you checked already that what happens if you execute the decision step in backend (from business workplace). Does it work? This should tell you whether the problem is in the decision step or in the later phases of the workflow.

Regards,

Karri