Hello All,
Could you help me!
I try to call FM SAP_WAPI_ADM_WORKFLOW_RESTART twice in one session for one ID.
First time FM return error. In this session i fix all errors. But second time FM return Error too.
In new session FM doen't return error.
LOOP AT lt_rows INTO ls_rows.
READ TABLE <ft_data> ASSIGNING <fs_data> INDEX ls_rows-index.
IF sy-subrc EQ 0.
ASSIGN COMPONENT 'WI_ID' OF STRUCTURE <fs_data> TO <fs_id>.
CALL FUNCTION 'SAP_WAPI_ADM_WORKFLOW_RESTART'
EXPORTING
workitem_id = <fs_id>
do_commit = 'X'
TABLES
message_lines = lt_return.
ENDIF.
ENDLOOP.
How can i make error does not occur in same session?