<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Replace WFBATCH in document change history</TITLE>
 
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>HI Ty,
</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>There
are basically two (2) options: </FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>1)
Make the task that calls BAPI_PO_RELEASE a DIALOG task - i.e. set the background
processing </FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>flag
off, and make sure the advance with dialog flag is on - that way the release
will be run under the </FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>dialog
user of the previous step without them actually intervening.&nbsp;
</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>The
downside of this is that they need the authority to release the p.o. directly in
their authorization</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>as
their authority's will be used by the BAPI.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>2) If
you don't want to give them the authority to release the p.o. directly,
and&nbsp;even if you do take option 1)&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>-
introduce them to Generic Object&nbsp;Services (you haven't said what release
you&nbsp;are in? 4.0 or above I hope?)</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>These
appear, depending on the verison, in the system&gt;services menu or&nbsp;as a
floating button near the&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff
size=2>okcode&nbsp;command field once you have selected your PO, e.g. using
transaction ME23&nbsp;or ME23n.&nbsp; They&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>let
you see a workflow summary of what workflows have run against this particular PO
- and&nbsp;will show who</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>did
the release step nice and clearly.&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>If you
want to show who actually authorised the release in e.g. an audit trail report,
you can use the </FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff size=2>usual
WAPIs to extract the info from the workflow log. </FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002></SPAN>&nbsp;</DIV>
<DIV><SPAN class=921225322-21032002><FONT face=Arial color=#0000ff
size=2>Enjoy.</FONT></SPAN></DIV>
<DIV><SPAN class=921225322-21032002>
<DIV style="WIDTH: 374px; HEIGHT: 90px"><FONT size=2>
<TABLE>
  <TBODY>
  <TR>
    <TD></TD></FONT>
    <TD>
      <DIV><FONT size=2><FONT color=#0000ff>Jocelyn Dart</FONT> <BR><FONT
      color=#0000ff>Consultant (EBP, BBP, Ecommerce, Internet Transaction
      Server, Workflow)</FONT> <BR><FONT color=#0000ff>SAP
      Australia</FONT></FONT></DIV>
      <DIV><FONT color=#0000ff><FONT size=2>Email </FONT><A
      href="mailto:jocelyn.dart@sap.com"><FONT
      size=2>jocelyn.dart@sap.com</FONT></A><BR><FONT size=2>Tel: +61<SPAN
      class=153385400-09052000> 412 390 267</SPAN><BR>Fax: +61&nbsp;2 9935
      4880</FONT></FONT></DIV></TD></TR></TBODY></TABLE></DIV>&nbsp;</SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Jensen, Ralph
  <BR><B>Sent:</B> Friday, 22 March 2002 5:41 AM<BR><B>To:</B>
  SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: Replace WFBATCH in document
  change history<BR><BR></FONT></DIV>
  <DIV><SPAN class=619273118-21032002><FONT face=Arial color=#0000ff size=2>What
  about passing the actual agent for the workitem</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
    size=2>-----Original Message-----<BR><B>From:</B> Ea, Ty
    [mailto:TEa@citgo.com]<BR><B>Sent:</B> Thursday, March 21, 2002 9:18
    AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Replace WFBATCH
    in document change history<BR><BR></FONT></DIV>
    <P><FONT face=Arial color=#0000ff size=2>Hi Workflowers,</FONT> </P>
    <P><FONT face=Arial color=#0000ff size=2>I posted a similar question a week
    ago but it did not appear on the distribution list.&nbsp; Thought I'd give
    it another try.&nbsp; </FONT></P>
    <P><FONT face=Arial color=#0000ff size=2>We currently have a workflow that
    will automatically approve a Purchase Order or Outline Agreement if it
    determines that the creator of the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </FONT></P>
    <P><FONT face=Arial color=#0000ff size=2>purchase document has enough
    systems of authority.&nbsp; This functionality is made possible by calling
    function module BAPI_PO_RELEASE
    found&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </FONT></P>
    <P><FONT face=Arial color=#0000ff size=2>in method RELEASE of object type
    BUS2012.&nbsp; It was hoped that this ability would create a more efficient
    work process.&nbsp; The user would only need to go to his
    or&nbsp;&nbsp;&nbsp;&nbsp; </FONT></P>
    <P><FONT face=Arial color=#0000ff size=2>her workflow inbox if he/she does
    not have enough systems of
    authority.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </FONT><BR><FONT face=Arial color=#0000ff
    size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </FONT><BR><FONT face=Arial color=#0000ff size=2>Here is the problem.&nbsp;
    We have recently noticed that all purchasing documents release by
    BAPI_PO_RELEASE have WFBATCH as the responsible user on its document change
    history.&nbsp; I assume that this is due to the workflow manager executing
    the object method RELEASE in the background.&nbsp; This has created some
    confusion for our business users when they are trying to determine who
    approved the document at a later time.</FONT></P>
    <P><FONT face=Arial color=#0000ff size=2>Does anybody know of a way to
    update the change history to show the user id of the person for which
    BAPI_PO_RELEASE was executed, instead of the id of the workflow manager
    (WFBATCH)?&nbsp; I don't even know if we can alter SAP's change history log
    since it serves as an audit trail, but I thought I'd ask.</FONT></P>
    <P><FONT face=Arial color=#0000ff size=2>Thanks.</FONT> </P>
    <P><FONT face=Arial color=#0000ff size=2>Ty</FONT> <BR><FONT face=Arial
    size=2>The information transmitted is intended only for the person or entity
    to which it is addressed and may contain confidential and/or privileged
    material. Any review, retransmission, dissemination or other use of, or
    taking of any action in reliance upon, this information by persons or
    entities other than the intended recipient is prohibited. If you received
    this in error, please contact the sender and delete the material from any
    computer.</FONT></P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>