cancel
Showing results for 
Search instead for 
Did you mean: 

Worklfow stuck at decision step

Former Member
0 Kudos

Hi,

All following code is used for capturing the 'INFO' button of dynproscreen and writing variablr ACTION_RESULT to container of workflow-

call function 'SAP_WAPI_READ_CONTAINER'

exporting

workitem_id = DD_WORKITEM

tables

simple_container = lt_cont.

ls_cont-value = '11'.

modify lt_cont from ls_cont transporting value where element = 'ACTION_RESULT'.

call function 'SAP_WAPI_WRITE_CONTAINER'

exporting

workitem_id = DD_WORKITEM

do_commit = 'X'

importing

return_code = return_code

tables

simple_container = lt_cont

message_lines = message_lines

.

commit work.

wait up to 5 seconds.

call function 'SAP_WAPI_WORKITEM_COMPLETE'

exporting

workitem_id = DD_WORKITEM

importing

return_code = return_code

tables

simple_container = lt_cont

message_lines = message_lines

.

Above code is written in enahncement as standard screen is enhaced for 'INFO' button.The code works fine and value is written to workflow container.

Still decision step immediatly after execution of of 'INFO' button task is stuck(As showed in wf log).

Decision step has condition, ACTION_RESULT = 11, still corresponding branch not executed and workflow failed.

Error- Error when defining successor for node 0000000417

Kindly help to resolve problem.

Thanks.

Edited by: sanj_dell on Feb 14, 2012 3:03 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In tht FM 'SAP_WAPI_WORKITEM_COMPLETE' Try to remove the X in "do_commit".

Regards,

Ronit

former_member183917
Active Contributor
0 Kudos

Hi- Instead of SAP_WAPI_WORKITEM_COMPLETE, use below FM:

SAP_WAPI_DECISION_COMPLETE and pass correct user decision key apart from workitem id

Have you given any condition to User decision step? If yes what is the condition and at which level (create workitem or complete workitem or complete execution)?

Vinoth

Edited by: S Vinoth on Feb 14, 2012 8:19 PM

Former Member
0 Kudos

Foreground approver task has Info button.And if user clicks on Info button, decision task/step will verify outcome of approval tesk.

Decision task follows approvers task.

Problem is still not resolved.Please help.