<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>User Status Update Fails?</TITLE>
 
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D000473317-25092000>Marlin,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D000473317-25092000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D000473317-25092000>I=20
would go the way SAP takes usually for all object types that are status=20
management-enabled: include the interface object type IFSTATUS in your =
object=20
definition. It provides you with a method "UserStatusSet" that you can =
use in=20
background tasks. If it's not possible to inherit this method from =
IFSTATUS, you=20
could at least look into that object type in order to see which function =
module=20
(if I remember correctly, it's "STATUS_SET_INTERNAL" or something like =
that) is=20
called by it.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D000473317-25092000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D000473317-25092000>Cheers,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D000473317-25092000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D000473317-25092000>Thorsten Wewers</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D000473317-25092000><A=20
href=3D"http://www.bmt-consulting.de">http://www.bmt-consulting.de</A></S=
PAN></FONT></DIV>
<DIV><SPAN class=3D000473317-25092000></SPAN><FONT =
face=3DTahoma><BR><FONT=20
size=3D2><SPAN class=3D000473317-25092000><FONT color=3D#0000ff=20
face=3DArial>&nbsp;</FONT></SPAN>-----Urspr=FCngliche =
Nachricht-----<BR><B>Von:</B>=20
SAP Workflow [mailto:Owner-SAP-WUG@MITVMA.MIT.EDU]<B>Im Auftrag von=20
</B>Grinnell, Marlin<BR><B>Gesendet:</B> Montag, 25. September 2000=20
19:02<BR><B>An:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Betreff:</B> User =
Status Update=20
Fails?<BR><BR></DIV></FONT>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px"></FONT>
  <P><FONT face=3DArial size=3D2>Hi,</FONT> </P>
  <P><FONT face=3DArial size=3D2>I have created a workflow which is =
supposed to=20
  approve and release a project.&nbsp; (PS module)</FONT> </P>
  <P><FONT face=3DArial size=3D2>The workflow initiator gets to choose =
among=20
  different approval chains.&nbsp; Each approval chain has up to five =
levels of=20
  approval.&nbsp; Each approval level is set by updating the project's =
user=20
  status field.</FONT></P>
  <P><FONT face=3DArial size=3D2>I have created a sub-object type =
ZBUS2001 and a new=20
  method ApprovalProcess.&nbsp; This method calls a function module =
which is=20
  simply a BDC program using call transaction (transaction CJ20N) to =
update the=20
  user status field.&nbsp; The function module has been tested=20
  successfully.&nbsp; It also works fine when I test the method and the=20
  sub-object type.&nbsp; However,&nbsp; when I test the task (User =
Status Update=20
  Task) individually using SWUS, which uses the new method, the task =
fails=20
  (WF-BATCH executes SWW_BI_EXECUTE_S).</FONT></P>
  <P><FONT face=3DArial size=3D2>This is on R/3 4.6B.&nbsp; Any ideas? =
</FONT></P>
  <P><FONT face=3DArial size=3D2>Thanks,</FONT> <BR><FONT face=3DArial=20
  size=3D2>Marlin</FONT> </P></BLOCKQUOTE></BODY></HTML>