<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2>Hi Mark,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2>I worked on this earlier in the year.&nbsp; The 
administration table seems to be ignored by the line item badi.&nbsp; I think it 
is just there for the header level badi.&nbsp; I was advised by colleagues in 
Germany to set the administrator for each line - this meant I had to add a fair 
amount of extra code into the badi so that if a user wasn't found or valid I 
returned an administrator - I then also assigned this to all the other lines and 
GUIDs&nbsp;too for restart processing&nbsp;reasons.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2>Hope this helps,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2>Mark</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=182264012-18082006><FONT face=Arial 
color=#0000ff size=2>SAP UK</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Mark Pyc<BR><B>Sent:</B> 16 
August 2006 17:57<BR><B>To:</B> WUG<BR><B>Subject:</B> SRM 5.0 - SC Line Item 
Approval - How to handle agent errors<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>G'day all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>More questions. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Has anyone successfully used the APPROVAL_ADMINISTRATION table of the 
approval BAdI in association with Line Item approval? (I'm not interested in 
whether it works or not for Cart Level)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I expect that it should be possible to get items where an approver hasn't 
be maintained to appear in the Applications Monitor section Approval &gt; 
Approver Assignment but nothing I've tried manages this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I just include the approval GUID in the APPROVAL_ADMINISTRATION table 
and not in the normal APPROVAL_TABLE the items are ignored for approval and are 
effectively auto-approved. Not what I want.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I include the entries in both tables and either include no user-id but 
do include a name, or include name or user-id then Workitems without agents are 
created but again the Admin table seems to be ignored.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I could include Admin agents as the agents, but this would mean they could 
approve/reject the items rather than just forward the Workitem. If I don't give 
them access to BBPSC07 to prevent this&nbsp;then it is very difficult for them 
to tell which line items are having problems. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Another option which I've seen recommended which will work (Thanks Carol 
Thomas / Natasha Baunach) is to check that all agents are available before the 
cart is saved. This has the advantage that the requestor is kept informed but 
requires them to pick up a phone and contact a help desk - this manual 
intervention grates on me since it seems to fly in the face of WF process 
automation. </DIV>
<DIV>&nbsp;</DIV>
<DIV>The standard SAP demos only reference the scenario where no agents at 
all&nbsp;can be determined (not that I can that I can get that to work either) 
but it's important to also handle the situation where maybe just one line 
doesn't have an approver determined. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Any inputs greatly appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,<BR>Mark</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>