Hi Team.<br><br>My issue got resolved.<br><br>Before using the FM 
<style type="text/css">
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S33 {
color: #4DA619;
}
</style>
<span>SAP_WAPI_WORKITEM_COMPLETE<span class="L0S33">&#39;</span></span>
<br>I have used 
<style type="text/css">
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S33 {
color: #4DA619;
}
</style>
<span><span class="L0S33">&#39;SAP_WAPI_READ_CONTAINER&#39;</span></span> 
and then changed the required values using 
<style type="text/css">
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S33 {
color: #4DA619;
}
</style>
<span><span class="L0S33">&#39;SAP_WAPI_WRITE_CONTAINER&#39;</span></span> 
and then used the function module to complete the workitem. by passing the values in _WI_RESULT.<br><br>Thanks to All.<br><br>Shankar<br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 8:30 PM, Rick Bakker <span dir="ltr">&lt;<a href="mailto:rbakker@gmail.com">rbakker@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
You can pass a value with SAP_WAPI_WRITE_CONTAINER.<br>
<div class="im"><br>
&quot;i have to complete the workitem programmatically.&quot;<br>
</div>Why is that? It&#39;s much simpler if you don&#39;t.  Can&#39;t you send the user<br>
a workitem and have him make the decision?<br>
<br>
regards<br>
<span class="HOEnZb"><font color="#888888">Rick Bakker<br>
hanabi technology<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Dec 27, 2011 at 1:11 AM, Sree S &lt;<a href="mailto:to2sree@gmail.com">to2sree@gmail.com</a>&gt; wrote:<br>
&gt; Hi All.<br>
&gt;<br>
&gt; I have a customized workflow where the case is i have to complete the<br>
&gt; workitem programmatically.<br>
&gt;<br>
&gt; As the workflow is attached to a module pool program,On click of an event<br>
&gt; the workflow is triggered.<br>
&gt;<br>
&gt; In the workflow, i am calling a module pool program for approval. Here the<br>
&gt; case is that the workitem has to completed programmatically.<br>
&gt;<br>
&gt; So i am using -FM SAP_WAPI_COMPLETE_WORKITEM. to complete the workitem and<br>
&gt; setting the status as per the module pool screens result.<br>
&gt;<br>
&gt; Now my doubt is how do i pass this result to workflow container or  as a<br>
&gt; result parameter of the method to the workflow so that i can use the result<br>
&gt; further in the workflow.<br>
&gt;<br>
&gt;<br>
&gt; Please suggest me !<br>
&gt;<br>
&gt; --<br>
&gt; shankar<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>shankar<br>