Skip to Content
0
Former Member
Feb 14, 2012 at 02:02 PM

Worklfow stuck at decision step

62 Views

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