<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Unable to complete webservice task</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1529" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=624470218-13022006><FONT face=Arial 
color=#0000ff size=2>As a follow-up, I was able to complete the workitem by 
using SAP_WAPI_CREATE_EVENT after manually setting the object key to the 
workitem ID.&nbsp; Is there a function that can be used to set the key of an 
object in the container?&nbsp; I tried SAP_WAPI_WRITE_CONTAINER but could only 
inset a new container element with the name of my object.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=624470218-13022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=624470218-13022006><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=624470218-13022006><FONT face=Arial 
color=#0000ff size=2>Jacob</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Crane, 
Jacob<BR><B>Sent:</B> Friday, February 10, 2006 3:45 PM<BR><B>To:</B> 
sap-wug@mit.edu<BR><B>Subject:</B> Unable to complete webservice 
task<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi,</FONT> <BR><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp; I am using the webservice object to launch a BSP 
in the UWL and am having difficultes getting the task to complete.&nbsp; This is 
on 4.7 with WAS 6.20.&nbsp; I have tried to raise the WEBSERVICE.COMPLETED event 
with SAP_WAPI_CREATE_EVENT but cannot because my webservice never instanciates 
(at least when I look at the container).&nbsp; SWK_WI_COMPLETE_WITH_EVENT 
returns the message "Work item 000000734457 could not be accepted" with error 
code 3, and I haven't had any luck with setting the workitem to completed using 
SAP_WAPI_WORKITEM_COMPLETE or similar functions for setting the status.&nbsp; I 
tried to use the callback function, but haven't had any luck with that, 
either.&nbsp; Does anybody have an idea of why I can't complete the webservice 
and what we might be able to do about it?</FONT></P>
<P><FONT face=Arial size=2>Thanks for the help,</FONT> <BR><FONT face=Arial 
size=2>Jacob</FONT> </P><BR><BR></BODY></HTML>