<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma, new york, times, serif;font-size:10pt"><DIV></DIV>
<DIV>Thanks for all your replies. It is not any issue of authorization, users have PLOG and I was able to&nbsp;re-produce&nbsp;in PRD with SAP_ALL.</DIV>
<DIV>The virtual attribute&nbsp;source is eventually database but I wanted to&nbsp;get it using objects as much as possible. For instance, the position&nbsp;held by the initiator: In object type USR01 I added virtual attribue of type PDOTYPE_S&nbsp;calculated using evaluation path "SAP_US_S". Instantiation in SWO1 works perfect, DEV &amp; QA works perfect,&nbsp;PRD system workflow container works perfect, but at runtime it sometimes fails to get the position&nbsp;attribute. </DIV>
<DIV>&nbsp;</DIV>
<DIV>My simple workflow has two steps:</DIV>
<DIV>step 1 = container operation to get initiator user from workflow template container.</DIV>
<DIV>step 2 = simple decision, agent determined via rule.</DIV>
<DIV>step 3 = send decision via email.</DIV>
<DIV>&nbsp;</DIV>
<DIV>My biggest concern is why the workflow starts&nbsp;or proceed to step&nbsp;2 before step 1 is completed. I&nbsp;always assumed it is sequential (I'm not using any form of fork, block or alike).&nbsp;&nbsp;I do consider changing step 1&nbsp;to&nbsp;background task assuming&nbsp;it&nbsp;result in syncronous process.</DIV>
<DIV>&nbsp;</DIV>
<DIV>BTW, I created OSS for this issue, promise to let you know the conclusions.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks guys!!<BR>&nbsp;</DIV>
<P><FONT color=#00007f size=2 face="verdana, helvetica, sans-serif"><STRONG>Regards,<BR>Shai Eyal</STRONG></FONT></P>
<P><FONT color=#000080 size=2 face=Verdana><STRONG>SAP Logistics senior consultant<BR>SAP Workflow &amp; BPM specialist</STRONG></FONT></P>
<P><FONT color=#000080 size=2 face=Verdana><STRONG><A href="http://www.linkedin.com/in/shaieyal" rel=nofollow target=_blank>http://www.linkedin.com/in/shaieyal</A><BR>Mobile: 972-52-5816633</STRONG></FONT></P>
<P><STRONG><FONT color=#007f40 size=2 face=Verdana>Skype: Shai.Eyal</FONT></STRONG><BR><BR><BR></P>
<DIV><BR></DIV>
<DIV style="FONT-FAMILY: tahoma, new york, times, serif; FONT-SIZE: 10pt"><BR>
<DIV style="FONT-FAMILY: verdana, helvetica, sans-serif; FONT-SIZE: 10pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> "sap-wug-request@mit.edu" &lt;sap-wug-request@mit.edu&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sap-wug@mit.edu<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, February 2, 2011 16:26:30<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> SAP-WUG Digest, Vol 75, Issue 2<BR></FONT><BR>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&nbsp;&nbsp; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, via email, send a message with subject or body 'help' to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR><BR>You can reach the person
 managing the list at<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-owner@mit.edu" ymailto="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of SAP-WUG digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp; 1. Re: Virtual attributes evaluation and performance<BR>&nbsp; &nbsp; &nbsp; (Krishna K Kammaje)<BR>&nbsp; 2. RE: Virtual attributes evaluation and performance (Edward Diehl)<BR>&nbsp; 3. Re: Virtual attributes evaluation and performance (Mike Pokraka)<BR>&nbsp; 4. RE: Virtual attributes evaluation and performance (Morris, Eddie)<BR>&nbsp; 5. RE: Approval Note Update for Shopping Cart&nbsp; on 7.0 (Dale Brown)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Wed, 2 Feb 2011 17:59:55 +0530<BR>From: Krishna K Kammaje &lt;<A href="mailto:kkammaje@in.ibm.com"
 ymailto="mailto:kkammaje@in.ibm.com">kkammaje@in.ibm.com</A>&gt;<BR>Subject: Re: Virtual attributes evaluation and performance<BR>To: "SAP Workflow Users' Group" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Cc: sap-wug &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;, <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A><BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:OFDF30760C.A385FFCA-ON6525782B.00444695-6525782B.0044A860@in.ibm.com" ymailto="mailto:OFDF30760C.A385FFCA-ON6525782B.00444695-6525782B.0044A860@in.ibm.com">OFDF30760C.A385FFCA-ON6525782B.00444695-6525782B.0044A860@in.ibm.com</A>&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Hi Shai,<BR><BR>What a coincidence, I was just trying to figure out the same issue.<BR><BR>In my case an event triggers a workflow. A BO also gets
 transferred from <BR>event to Workflow (through binding). One of the BO's virtual attribute is <BR>used in WF for condition evaluation. Many a times this condition fails <BR>(does not work as expected). But when I retrigger the event, workflow <BR>triggers and behaves as expected. <BR><BR>I will try using event que.<BR><BR>Thanks<BR>Krishna Kishor Kammaje <BR>SAP Certified Development Associate - ABAP with Netweaver 7.0<BR>| HRMS LCM Team | Manyata | D3 | 9th Floor | MD3-9F-A113 | Mob: +91 990 <BR>100 0799 | Direct - Xtn: 080 280-62953 |<BR><BR><BR><BR><BR>From:&nbsp; Shai Eyal &lt;<A href="mailto:shai.eyal@yahoo.com" ymailto="mailto:shai.eyal@yahoo.com">shai.eyal@yahoo.com</A>&gt;<BR>To:&nbsp; &nbsp; sap-wug &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Date:&nbsp; 02/02/2011 17:04<BR>Subject:&nbsp; &nbsp; &nbsp; &nbsp; Virtual attributes evaluation and performance<BR>Sent by:&nbsp; &nbsp; &nbsp;
 &nbsp; <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A><BR><BR><BR><BR>Hi all,<BR><BR>I wanted to ask for you help with the issue in subject. I use virtual <BR>attribute quite often and it works OK. However I have one client where I <BR>suspect having performance issues with virtual attributes. Example: Simple <BR>approval workflow, agent is determined using a rule. Rule container if <BR>filled from BOR virtual attribute. Often the workflow goes into error for <BR>"Agent determination failed". I click "Restart after error" and now all <BR>works well. In addition, the problem only happens in production system. To <BR>me it feels like sometimes virtual attributes are not calculated <BR>immediately. This client posts many transactions every day but I believe <BR>SAP should know to handle it<BR>I would also like to mention that the virtual attribute code is quite <BR>simple (no select statement or
 such).<BR><BR>Has anyone experienced something like this before? any recommendations? <BR>BTW, working with event queue handles this properly.<BR><BR>Thanks,<BR><BR>Regards,<BR>Shai Eyal<BR>SAP Logistics senior consultant<BR>SAP Workflow &amp; BPM specialist<BR><A href="http://www.linkedin.com/in/shaieyal" target=_blank>http://www.linkedin.com/in/shaieyal</A><BR><BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110202/7031ebee/attachment-0001.htm"
 target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110202/7031ebee/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Wed, 2 Feb 2011 07:10:22 -0600<BR>From: Edward Diehl &lt;<A href="mailto:edwarddiehl@hotmail.com" ymailto="mailto:edwarddiehl@hotmail.com">edwarddiehl@hotmail.com</A>&gt;<BR>Subject: RE: Virtual attributes evaluation and performance<BR>To: &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID: &lt;<A href="mailto:COL104-W47D47ABE159832B2C8C31A2E40@phx.gbl" ymailto="mailto:COL104-W47D47ABE159832B2C8C31A2E40@phx.gbl">COL104-W47D47ABE159832B2C8C31A2E40@phx.gbl</A>&gt;<BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR><BR>Why not test the critical value in a check function and loop until value it populated?&nbsp; When populated exit the function.<BR><BR>Date: Wed, 2 Feb 2011 03:29:22 -0800<BR>From: <A
 href="mailto:shai.eyal@yahoo.com" ymailto="mailto:shai.eyal@yahoo.com">shai.eyal@yahoo.com</A><BR>Subject: Virtual attributes evaluation and performance<BR>To: <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR><BR><BR><BR>Hi all,<BR><BR>I wanted to ask for you help with the issue in subject. I use virtual attribute quite often and it works OK. However I have one client where I suspect having performance issues with virtual attributes. Example: Simple approval workflow, agent is determined using a rule. Rule container if filled from BOR virtual attribute. Often the workflow goes into error for "Agent determination failed". I click "Restart after error" and now all works well. In addition, the problem only happens in production system. To me it feels like sometimes virtual attributes are not calculated immediately. This client posts many transactions every day but I believe SAP should know to handle it<BR>I would
 also like to mention that the virtual attribute code is quite simple (no select statement or such).<BR><BR>Has anyone experienced something like this before? any recommendations? BTW, working with event queue handles this properly.<BR><BR>Thanks,<BR><BR>Regards,<BR>Shai Eyal<BR>SAP Logistics senior consultant<BR>SAP Workflow &amp; BPM specialist<BR><A href="http://www.linkedin.com/in/shaieyal" target=_blank>http://www.linkedin.com/in/shaieyal</A><BR><BR><BR><BR><BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A
 href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110202/1006ce3e/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110202/1006ce3e/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Wed, 2 Feb 2011 13:19:27 -0000 (GMT)<BR>From: "Mike Pokraka" &lt;<A href="mailto:wug@workflowconnections.com" ymailto="mailto:wug@workflowconnections.com">wug@workflowconnections.com</A>&gt;<BR>Subject: Re: Virtual attributes evaluation and performance<BR>To: "SAP Workflow Users' Group" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:1196c0043c3fbf17818a24166498a59a.squirrel@g.mail.aaisp.net.uk" ymailto="mailto:1196c0043c3fbf17818a24166498a59a.squirrel@g.mail.aaisp.net.uk">1196c0043c3fbf17818a24166498a59a.squirrel@g.mail.aaisp.net.uk</A>&gt;<BR>Content-Type:
 text/plain;charset=iso-8859-1<BR><BR>Great mystery sometimes surrounds BOR objects...<BR><BR>Obvious question: are there any recent updates prior to the failing step?<BR>Custom object/document/event? Does your attribute depend on DB data?<BR><BR><BR>On Wed, February 2, 2011 11:29 am, Shai Eyal wrote:<BR>&gt; Hi all,<BR>&gt;<BR>&gt; I wanted to ask for you help with the issue in subject.?I use?virtual<BR>&gt; attribute<BR>&gt; quite often and it works OK. However I have?one client where I suspect<BR>&gt; having<BR>&gt; performance issues with virtual attributes. Example: Simple approval<BR>&gt; workflow,<BR>&gt; agent is determined using a rule. Rule container?if filled from BOR<BR>&gt; virtual<BR>&gt; attribute. Often the workflow?goes into error for "Agent determination<BR>&gt; failed".<BR>&gt; I click "Restart after error" and now all works well. In<BR>&gt; addition,?the?problem<BR>&gt; only happens in production system. To me it?feels like?sometimes
 virtual<BR>&gt; attributes are not calculated immediately. This client posts many<BR>&gt; transactions<BR>&gt; every day but I believe SAP should know to handle it<BR>&gt; I would also like to mention that the virtual attribute code is quite<BR>&gt; simple (no<BR>&gt; select statement or such).<BR>&gt;<BR>&gt; Has anyone experienced something like this?before? any recommendations?<BR>&gt; BTW,<BR>&gt; working with event queue handles this properly.<BR>&gt;<BR>&gt; Thanks,<BR>&gt; ?<BR>&gt; Regards,<BR>&gt; Shai Eyal<BR>&gt; SAP Logistics senior consultant<BR>&gt; SAP Workflow &amp; BPM specialist<BR>&gt; <A href="http://www.linkedin.com/in/shaieyal" target=_blank>http://www.linkedin.com/in/shaieyal</A><BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; <A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR>&gt; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
 target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt;<BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 4<BR>Date: Wed, 2 Feb 2011 14:40:51 +0100<BR>From: "Morris, Eddie" &lt;<A href="mailto:eddie.morris@sap.com" ymailto="mailto:eddie.morris@sap.com">eddie.morris@sap.com</A>&gt;<BR>Subject: RE: Virtual attributes evaluation and performance<BR>To: "SAP Workflow Users' Group" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:19D98BBACEC5CE4187DFB55271CB960A0F447DAA04@DEWDFECCR08.wdf.sap.corp" ymailto="mailto:19D98BBACEC5CE4187DFB55271CB960A0F447DAA04@DEWDFECCR08.wdf.sap.corp">19D98BBACEC5CE4187DFB55271CB960A0F447DAA04@DEWDFECCR08.wdf.sap.corp</A>&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Hi Shai,<BR><BR>It may be possible that the agent determination is not caused by the virtual attribute performance but
 by the user who executes the step (And therefore the agent determination) is missing PLOG authorization. See note 755767.&nbsp; Please add this authorization object to your users and test again.<BR><BR>Regards,<BR>Eddie<BR><BR>From: <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf Of Shai Eyal<BR>Sent: 02 February 2011 11:29<BR>To: sap-wug<BR>Subject: Virtual attributes evaluation and performance<BR><BR>Hi all,<BR><BR>I wanted to ask for you help with the issue in subject. I use virtual attribute quite often and it works OK. However I have one client where I suspect having performance issues with virtual attributes. Example: Simple approval workflow, agent is determined using a rule. Rule container if filled from BOR virtual attribute. Often the workflow goes into
 error for "Agent determination failed". I click "Restart after error" and now all works well. In addition, the problem only happens in production system. To me it feels like sometimes virtual attributes are not calculated immediately. This client posts many transactions every day but I believe SAP should know to handle it<BR>I would also like to mention that the virtual attribute code is quite simple (no select statement or such).<BR><BR>Has anyone experienced something like this before? any recommendations? BTW, working with event queue handles this properly.<BR><BR>Thanks,<BR><BR><BR>Regards,<BR>Shai Eyal<BR><BR>SAP Logistics senior consultant<BR>SAP Workflow &amp; BPM specialist<BR><BR><A href="http://www.linkedin.com/in/shaieyal" target=_blank>http://www.linkedin.com/in/shaieyal</A><BR><BR><BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A
 href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110202/8850b677/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110202/8850b677/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>Message: 5<BR>Date: Wed, 2 Feb 2011 09:26:38 -0500<BR>From: Dale Brown &lt;<A href="mailto:dale.brown@duke.edu" ymailto="mailto:dale.brown@duke.edu">dale.brown@duke.edu</A>&gt;<BR>Subject: RE: Approval Note Update for Shopping Cart&nbsp; on 7.0<BR>To: "<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:FB1133EE689F0B419554C3FE6F31B707031D73F000@EX-MAILBOX-03.win.duke.edu"
 ymailto="mailto:FB1133EE689F0B419554C3FE6F31B707031D73F000@EX-MAILBOX-03.win.duke.edu">FB1133EE689F0B419554C3FE6F31B707031D73F000@EX-MAILBOX-03.win.duke.edu</A>&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Was able to capture the real time action status for the shopping cart line item by enhancing the ONACTIONON_SELECT method with a post exit.&nbsp; <BR>The method is found in webdynpro component /SAPSRM/WDC_UI_SC_DOTC_BD in view&nbsp; V_SC_DOTC_BASIC .&nbsp; We stored the status in ps_us01 field .<BR><BR>Dale R. Brown<BR>DUKE UNIVERSITY<BR>Sr. Analyst, IT <BR>OIT - Application and Database Services<BR>919.684.5341<BR><BR><BR><BR>-----Original Message-----<BR>From: <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf Of <A
 href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR>Sent: Tuesday, January 25, 2011 9:24 AM<BR>To: <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>Subject: SAP-WUG Digest, Vol 74, Issue 41<BR><BR>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&nbsp;&nbsp; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, via email, send a message with subject or body 'help' to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR><BR>You can reach the person managing the list at<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-owner@mit.edu"
 ymailto="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of SAP-WUG digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp; 1. Re: SRM - Approval Note Update for Shopping Cart&nbsp; on 7.0<BR>&nbsp; &nbsp; &nbsp; (Dale Brown)<BR>&nbsp; 2. User decission getting logically deleted (Srinivas Reddy)<BR>&nbsp; 3. Task getting logically deleted (Srinivas Reddy)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Mon, 24 Jan 2011 14:06:50 -0500<BR>From: Dale Brown &lt;<A href="mailto:dale.brown@duke.edu" ymailto="mailto:dale.brown@duke.edu">dale.brown@duke.edu</A>&gt;<BR>Subject: Re: SRM - Approval Note Update for Shopping Cart&nbsp; on 7.0<BR>To: "<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>" &lt;<A href="mailto:sap-wug@mit.edu"
 ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:FB1133EE689F0B419554C3FE6F31B707031D160A6D@EX-MAILBOX-03.win.duke.edu" ymailto="mailto:FB1133EE689F0B419554C3FE6F31B707031D160A6D@EX-MAILBOX-03.win.duke.edu">FB1133EE689F0B419554C3FE6F31B707031D160A6D@EX-MAILBOX-03.win.duke.edu</A>&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Ramki -&nbsp; Thanks for the info.&nbsp; But what I'm looking for is something that can tell me the current status as it comes into the doc_change_badi - not after it has left the doc_change_badi .&nbsp; While&nbsp; I was doing more investigation it seems that if there was something coming in on the item detail that would show me which button was chosen - such as inquire, reject, or approve, that I may could get my code to do as the user wants. I need something that indicates the current screen content as it comes into the
 doc_change_badi when the "submit" is done on the shopping cart. I tried looking at the items - but don't see anything.&nbsp; Is there a function module or method that will show each inidividual item line status. I can loop through the lines and if they are not all set to the approve radio-button, then I can ignore updating the approval note.&nbsp; Do you know of anything else to call?&nbsp; Will something have to be done elsewhere to set the line item status into maybe some zfield of our o!<BR>wn before getting to the doc_change_badi?&nbsp; &nbsp; <BR><BR><BR><BR>Dale R. Brown<BR>DUKE UNIVERSITY<BR>Sr. Analyst, IT <BR>OIT - Application and Database Services<BR>919.684.5341<BR><BR><BR><BR>-----Original Message-----<BR>From: <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On
 Behalf Of <A href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR>Sent: Monday, January 24, 2011 12:18 PM<BR>To: <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>Subject: SAP-WUG Digest, Vol 74, Issue 40<BR><BR>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&nbsp;&nbsp; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, via email, send a message with subject or body 'help' to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR><BR>You can reach the person managing the list at<BR>&nbsp;&nbsp;&nbsp; <A
 href="mailto:sap-wug-owner@mit.edu" ymailto="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of SAP-WUG digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp; 1. Re: SRM - Approval Note Update for Shopping Cart&nbsp; on 7.0<BR>&nbsp; &nbsp; &nbsp; (Ramki Maley)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Mon, 24 Jan 2011 10:56:30 -0500<BR>From: Ramki Maley &lt;<A href="mailto:rmaley@erpworkflow.com" ymailto="mailto:rmaley@erpworkflow.com">rmaley@erpworkflow.com</A>&gt;<BR>Subject: Re: SRM - Approval Note Update for Shopping Cart&nbsp; on 7.0<BR>To: "SAP Workflow Users' Group" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID: &lt;<A href="mailto:4D3DA12E.2030806@erpworkflow.com"
 ymailto="mailto:4D3DA12E.2030806@erpworkflow.com">4D3DA12E.2030806@erpworkflow.com</A>&gt;<BR>Content-Type: text/plain; charset="utf-8"<BR><BR>Dale,<BR><BR>You can call method /sapsrm/cl_wf_apv_facade=&gt;get_current_decision in <BR>the doc_change BAdI to determine the current decision. If it is <BR>'APPROVED' you can update the note as needed.<BR><BR>Cheers,<BR>Ramki.<BR><BR><BR>On 1/21/11 5:55 PM, Dale Brown wrote:<BR>&gt;<BR>&gt; I?m trying to locate the proper place as to where I can place code to <BR>&gt; update the ?approval note? box for 7.0 SRM shopping cart.<BR>&gt;<BR>&gt; I have been trying to use the BBP_DOC_CHANGE_BADI and that works good <BR>&gt; for me when an approval response is done, but when an inquire response <BR>&gt; is done, I?m having issues with what the user is asking for.&nbsp; I?m <BR>&gt; thinking I may have to move my code in order to cover all the <BR>&gt; responses of the work item ? because the ?submit? action(as far as
 <BR>&gt; updating SWWWIHEAD table) for the work item does not happen until <BR>&gt; after it has gone through the BBP_DOC_CHANGE_BADI code.&nbsp; Here?s the <BR>&gt; scenario I?m facing.&nbsp; We have up to a 7 level approvalprocess for a <BR>&gt; shopping cart to be approved.&nbsp; For each time the cart goes to the next <BR>&gt; level for someone to approve it ? our user wants to have in the <BR>&gt; ?approval note? a description of thatparticular&nbsp; level.&nbsp; When the item <BR>&gt; is approved this works ok in the BBP_DOC_CHANGE_BADI, because I just <BR>&gt; add the next level?s description to the ?approval note? box.&nbsp; But for <BR>&gt; inquire or reject ? the next level description does not need to appear <BR>&gt; because the item is going back to the orderer and not the next <BR>&gt; approval level. The BBP_DOC_CHECK_BADI is not the place for me either <BR>&gt; based on my code logic ? which is keying on the standard tasks of the <BR>&gt;
 workflow.&nbsp; Using info from swwwihead to get main workflow id and then <BR>&gt; matching to BALHDR log table for the workflow to get my next level.&nbsp; <BR>&gt; My problem is that on an inquire/reject, the current approval work <BR>&gt; item task is not marked complete, and the new ?Accept Decision? <BR>&gt; standard task is not available until after the BBP_DOC_CHANGE_BADI.&nbsp; <BR>&gt; So I can?t code around not placing the next level comments.&nbsp; It <BR>&gt; happens just like the approve submit action does and places the next <BR>&gt; level comments in the approval note box.&nbsp; Can anyone recommend <BR>&gt; current SAP code that may already be written that is doing what I?m <BR>&gt; trying to accomplish or know of the correct badi that can be changed <BR>&gt; to use our code.&nbsp; Or where would be the proper class/method that could <BR>&gt; be enhanced to place my code.<BR>&gt;<BR>&gt; *Dale R. Brown*<BR>&gt;<BR>&gt; *DUKE
 UNIVERSITY***<BR>&gt;<BR>&gt; *Sr. Analyst, IT<BR>&gt; OIT - Application and Database Services<BR>&gt; 919.684.5341*<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; <A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR>&gt; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110124/2f2eb555/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110124/2f2eb555/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A
 href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>End of SAP-WUG Digest, Vol 74, Issue 40<BR>***************************************<BR><BR><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Tue, 25 Jan 2011 14:01:43 +0530<BR>From: Srinivas Reddy &lt;<A href="mailto:ootasrinivasreddy@gmail.com" ymailto="mailto:ootasrinivasreddy@gmail.com">ootasrinivasreddy@gmail.com</A>&gt;<BR>Subject: User decission getting logically deleted<BR>To: "SAP Workflow Users' Group" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;AANLkTinOdPYh2Nq=3T3KPxNa+FQ8uEEK+<A href="mailto:dD-BpdNfg7j@mail.gmail.com" ymailto="mailto:dD-BpdNfg7j@mail.gmail.com">dD-BpdNfg7j@mail.gmail.com</A>&gt;<BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR>Hi Experts,<BR><BR>In my requirement I have 2 level of
 approvals all the agent determination is<BR>brought from the custom tables. These 2 level of approvals will happen only<BR>on UI screen not in SBWP. So for this I have extended the standard object<BR>BUS2096 with custom events APPROVE , REJECT and SSC_APPROVE and<BR>SSC_REJECT.Now to test I am using the standard t-code SWUE (Create event). I<BR>have also created a blank method in BUS2096&nbsp; with a message " Approval will<BR>happen only fromUWL". For the first step of approval I am calling the<BR>terminating events APPROVE and REJECT working good. For the second level<BR>approval I am calling the terminating events "SSC_APPROVE and SSC_REJECT.<BR>Once the first level of approval is done the second level approval step is<BR>getting logically deleted. Can someone help where it is going wrong.??<BR><BR>-- <BR>Thanks and Regards<BR>Srini..<BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A
 href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110125/69059290/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110125/69059290/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Tue, 25 Jan 2011 19:54:01 +0530<BR>From: Srinivas Reddy &lt;<A href="mailto:ootasrinivasreddy@gmail.com" ymailto="mailto:ootasrinivasreddy@gmail.com">ootasrinivasreddy@gmail.com</A>&gt;<BR>Subject: Task getting logically deleted<BR>To: "SAP Workflow Users' Group" &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;AANLkTi=wAQsQf9fGd1CbAV0c+<A href="mailto:aWthvxq79U--Xkrnry3@mail.gmail.com" ymailto="mailto:aWthvxq79U--Xkrnry3@mail.gmail.com">aWthvxq79U--Xkrnry3@mail.gmail.com</A>&gt;<BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR>Hi Experts,<BR><BR>I have a workflow requirement where the
 workflow should trigger if a user<BR>changes a billing document (t-code VA02) to SUBMIT status.Two level of<BR>approvals is required for the billing document to create,all the agent<BR>determination is done via custom method with export<BR>parameters E_AGENTS referred to SWHACTOR.As the approval process will happen<BR>only from UI screen I did not use user decission task for this<BR>requirement,instead I used a task (Standard task with APPROVE and REJECT as<BR>terminating events) calling a method and raising a message(Decission should<BR>be taken only from UI) if the user clicks on the workitem in SBWP.An<BR>automatic customizing is done to send the workitem lying in SBWP to UI<BR>screen. Once the 1st approval is done following steps will do some database<BR>updates with agent determination step (via custom method)&nbsp; a workitem will<BR>go for the second approval.<BR>I have extended the standard object BUS2096 to ZBUS2096 with custom
 events<BR>APPROVE , REJECT for 1st level approval and SSC_APPROVE and SSC_REJECT&nbsp; for<BR>second level approval and delegated to BUS2096. I have called this custom<BR>events as terminating events for the task (Task calling a method which will<BR>give a message to the user to take action only from UI). For the first level<BR>of approval process I have called APPROVE and REJECT as terminating events<BR>and SSC_APPROVE and SSC_REJECT as terminating events for the second level<BR>approval. While testing the object everything is working fine only until<BR>first level approval,once the first level approval is done the second level<BR>approval task is getting logically deleted.<BR>The testing process I have followed:<BR>1) Change existing sales order in VA02 with the SUBMIT status.<BR>2) Goto t-code SWUE and create event APPROVE for the BUS2096.<BR>After doing this I checked the status of the workflow in SWI1 where the<BR>second approval step is getting
 logically deleted.<BR><BR>Can some one tell me what could be the reason for the secong decission step<BR>getting logically deleted. Fior referance please check the enclosed screen<BR>shot.<BR><BR>Thanks and Regards<BR>Srini..<BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110125/b15ad6d0/attachment.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110125/b15ad6d0/attachment.htm</A><BR>-------------- next part --------------<BR>A non-text attachment was scrubbed...<BR>Name: W0006_Issue.jpg<BR>Type: image/jpeg<BR>Size: 141480 bytes<BR>Desc: not available<BR>Url : <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20110125/b15ad6d0/W0006_Issue.jpg"
 target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20110125/b15ad6d0/W0006_Issue.jpg</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>End of SAP-WUG Digest, Vol 74, Issue 41<BR>***************************************<BR><BR><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>End of SAP-WUG Digest, Vol 75, Issue
 2<BR>**************************************<BR></DIV></DIV></div><br></body></html>