AW: User Status Update Fails?

Mark Huffman m.r.huffman at worldnet.att.net
Mon Sep 25 19:30:15 EDT 2000


I agree with Dr. Wewers on this one. Identify the status object and use
the methods provided by the IFSTATUS object type. The Service
Notification object provides some examples, but there are probably many
others.
 
I got the status to update successfully, however I did have to run it as
a background workitem. In my case, it was the very last step in the
workflow and usually took a long time to complete, so that sometimes the
user had to refresh the step log to see completion of the entire
workflow.
 
> Dr. Thorsten Wewers wrote:
>
> Marlin,
>
> I would go the way SAP takes usually for all object types that are
> status management-enabled: include the interface object type IFSTATUS
> in your object definition. It provides you with a method
> "UserStatusSet" that you can use in background tasks. If it's not
> possible to inherit this method from IFSTATUS, you could at least look
> into that object type in order to see which function module (if I
> remember correctly, it's "STATUS_SET_INTERNAL" or something like that)
> is called by it.
>
> Cheers,
>
> Thorsten Wewers
> http://www.bmt-consulting.de
>
>  -----Urspr|ngliche Nachricht-----
> Von: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]Im Auftrag von
> Grinnell, Marlin
> Gesendet: Montag, 25. September 2000 19:02
> An: SAP-WUG at MITVMA.MIT.EDU
> Betreff: User Status Update Fails?
>
>      Hi,
>
>      I have created a workflow which is supposed to approve and
>      release a project.  (PS module)
>
>      The workflow initiator gets to choose among different
>      approval chains.  Each approval chain has up to five levels
>      of approval.  Each approval level is set by updating the
>      project's user status field.
>
>      I have created a sub-object type ZBUS2001 and a new method
>      ApprovalProcess.  This method calls a function module which
>      is simply a BDC program using call transaction (transaction
>      CJ20N) to update the user status field.  The function module
>      has been tested successfully.  It also works fine when I
>      test the method and the sub-object type.  However,  when I
>      test the task (User Status Update Task) individually using
>      SWUS, which uses the new method, the task fails (WF-BATCH
>      executes SWW_BI_EXECUTE_S).
>
>      This is on R/3 4.6B.  Any ideas?
>
>      Thanks,
>      Marlin
 


More information about the SAP-WUG mailing list