<p>
Hi,
</p>
<p>
I am modifying a SRM (SRM_SERVER 5.00 Support pack 8) workflow that has been written by someone else and I have an issue with approval lists, which I don&#39;t fully understand
</p>
<p>
We are using BAdI <strong><span><em>BBP_WFL_APPROV_BADI </em></span></strong><span><em>to determine the approval list and a workflow (n-step dynamic approval) is used this has been based on a standard WF. The approval list is bulit up as follows</em></span>
</p>
<p>
Buyer 1 level 1
</p>
<p>
Buyer 2 level 1
</p>
<p>
Manager 1 level 2
</p>
<p>
&nbsp;
</p>
<p>
Step 1
</p>
<p>
A user creates a SC and saves the data. An approval is sent to each of the Buyers as expected and in the WF container, there are 3 approvers in the approval list, as expected. 
</p>
<p>
&nbsp;
</p>
<p>
Step 2&nbsp;
</p>
<p>
A Buyer approves the SC, he must enter a vendor, however he forgets to add a vendor and saves the data, which implies he has approved the&nbsp; SC. The approval step is in a loop task and will only stop once the buyer has entered a vendor.
</p>
<p>
Now the approval list shows 2 approvers. The first buyer and the manager is overwritten, with the buyers details in step 2. ( i hope you are still keeping up!!!)
</p>
<p>
&nbsp;
</p>
<p>
Step 3
</p>
<p>
The buyer enters a vendor and the wF continues, but it fails to send and approval to the manager.
</p>
<p>
&nbsp;
</p>
<p>
The problems occurs when the buyer doesn&#39;t enter a vendor, the approval list becomes corrupt. If the buyer correctly enters a vendor and approves the SC the manager is sent.
</p>
<p>
I have found a note by Jocelyn Dart on how to trace SRM function modules by setting parameter id 
</p>
<pre>
BBP_TRACE to X, however when I do this the system short dump when the SC is approved by the buyer, are ther any other ways to debug SRM and the associated WFs.
</pre>
<pre>
&nbsp;
</pre>
<pre>
Regards
</pre>
<pre>
TP&nbsp;
</pre>
<p>
&nbsp;
</p>