Hi ,<br><br>I am not sure why the workitem wont be completed as soon as you call the module pool screen by clicking the workitem . Anyway I had one requirement to call a custom approval screen from the workflow . What we did was intead of a standalone module pool program we created the screen as a part of the Function group ( Funtion modules rather ) . Based on the user action on the screen the relevant data was passed as the export parameter of the FM . Then the same data was passed through binding from the BOR Method to the task through export parameter of the BOR Method . Thus based on container values you can implement your logic in workflow .<br>
<br>Regards<br>Aditya <br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 4:41 PM, Sree S <span dir="ltr"><<a href="mailto:to2sree@gmail.com">to2sree@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi All.</div>
<div> </div>
<div>I have a customized workflow where the case is i have to complete the workitem programmatically.</div>
<div> </div>
<div>As the workflow is attached to a module pool program,On click of an event the workflow is triggered.</div>
<div> </div>
<div>In the workflow, i am calling a module pool program for approval. Here the case is that the workitem has to completed programmatically.</div>
<div> </div>
<div>So i am using -FM SAP_WAPI_COMPLETE_WORKITEM. to complete the workitem and setting the status as per the module pool screens result.</div>
<div> </div>
<div>Now my doubt is how do i pass this result to workflow container or as a result parameter of the method to the workflow so that i can use the result further in the workflow.</div>
<div> </div>
<div> </div>
<div>Please suggest me !<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br>shankar<br></font></span></div>
<br>_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br></blockquote></div><br>