<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.37">
<TITLE>Strange Things in return value of BAPI</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Dear Experts,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have a customer who has strange error in their system.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I've never seen this kind of error before.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">A std. task refers a method of BO which calls DMS function module (BAPI_DOCUMENT_SETSTATUS).</FONT>
<BR><FONT SIZE=2 FACE="Arial">And the BAPIRET2 of this F/M is retruned to the workflow container.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Most of times, this workflow has no problem. But, about one of 1000 of workflow instances has below problem. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">In workflow log, BAPIRET2 of F/M shows the error code that is nothing to do with DMS. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> For example, </FONT>
<BR><FONT SIZE=2 FACE="Arial"> WL 327 (End of static fork (&1 of &2 necessary branches))</FONT>
<BR><FONT SIZE=2 FACE="Arial"> WL 808 (Work item & cannot be executed in status &)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> But, workflow step was finished successfully and continued to next step. (Data Inconsistency)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> No status change in DMS. No tRFC error, No Abap dump, No System Log, No Application Log. No update Error. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> This is not a temporary error because temporary error has been modeled in this WF definition.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> I guess BAPI_DOCUMENT_SETSTATUS was not called. But, why WF releated error code in BAPIRET2?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Please let me know the possible check list of this kind of problem.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Does anybody know how to activate workflow-trace for the all workflow instances of one WF template?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks and regards,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Kim, Ji Hoon</FONT><SPAN LANG="ko"></SPAN>
</P>
</BODY>
</HTML>