Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Restart flow

$
0
0

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?


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>