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">'</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">'SAP_WAPI_READ_CONTAINER'</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">'SAP_WAPI_WRITE_CONTAINER'</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"><<a href="mailto:rbakker@gmail.com">rbakker@gmail.com</a>></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>
"i have to complete the workitem programmatically."<br>
</div>Why is that? It's much simpler if you don't. Can'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 <<a href="mailto:to2sree@gmail.com">to2sree@gmail.com</a>> wrote:<br>
> Hi All.<br>
><br>
> I have a customized workflow where the case is i have to complete the<br>
> workitem programmatically.<br>
><br>
> As the workflow is attached to a module pool program,On click of an event<br>
> the workflow is triggered.<br>
><br>
> In the workflow, i am calling a module pool program for approval. Here the<br>
> case is that the workitem has to completed programmatically.<br>
><br>
> So i am using -FM SAP_WAPI_COMPLETE_WORKITEM. to complete the workitem and<br>
> setting the status as per the module pool screens result.<br>
><br>
> Now my doubt is how do i pass this result to workflow container or as a<br>
> result parameter of the method to the workflow so that i can use the result<br>
> further in the workflow.<br>
><br>
><br>
> Please suggest me !<br>
><br>
> --<br>
> shankar<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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>
<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>