<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>Albina,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I can think of two simple ways to&nbsp;achieve you requirement:</DIV>
<DIV>1. Single workflow template, approval within a loop (until predefined condition is fulfilled).</DIV>
<DIV>2. Single workflow template - in runtime the workflow starts for each approver.</DIV>
<DIV>&nbsp;</DIV>
<DIV>In addition, in both ways, the best way to determine the approving user is via rule.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Good luck.<BR>&nbsp;</DIV>
<P><FONT face="verdana, helvetica, sans-serif" color=#00007f size=2><STRONG>Regards,<BR>Shai Eyal</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG>SAP Logistics senior consultant<BR>SAP Workflow specialist<BR></STRONG></FONT></P>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma, new york, times, serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: "sap-wug-request@mit.edu" &lt;sap-wug-request@mit.edu&gt;<BR>To: sap-wug@mit.edu<BR>Sent: Friday, 15 June, 2007 2:01:23 AM<BR>Subject: SAP-WUG Digest, Vol 31, Issue 38<BR><BR>
<DIV>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp;&nbsp;sap-wug@mit.edu<BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&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;&nbsp;sap-wug-request@mit.edu<BR><BR>You can reach the person managing the list at<BR>&nbsp;&nbsp;&nbsp;&nbsp;sap-wug-owner@mit.edu<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;&nbsp; 1. Approving work items (Albina Fernando)<BR>&nbsp;&nbsp; 2. RE: Commit Work (Paul.Bakker@osr.treasury.qld.gov.au)<BR>&nbsp;&nbsp; 3. RE: Workflow development standards (Dart, Jocelyn)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Fri,
 15 Jun 2007 02:02:48 +0530<BR>From: Albina Fernando &lt;Albina.Fernando@lntinfotech.com&gt;<BR>Subject: Approving work items<BR>To: sap-wug@mit.edu<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;OF4F05F40C.4A97CA60-ON652572FA.0070DDB2-652572FA.0070DDD8@lntinfotech.com&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20070615/863d33c1/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20070615/863d33c1/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Fri, 15 Jun 2007 06:38:29 +1000<BR>From: Paul.Bakker@osr.treasury.qld.gov.au<BR>Subject: RE: Commit Work<BR>To: "SAP Workflow Users' Group"
 &lt;sap-wug@mit.edu&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;OF53DAF750.2F2E0028-ON4A2572FA.0070D3DC-4A2572FA.00716113@treasury.qld.gov.au&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Mike,<BR><BR>Let me crawl out on a limb and say that in 4 years of doing workflow (over<BR>half a dozen sites), I have never found a workflow problem that couldn't be<BR>explained logically.<BR><BR>Perhaps that is because I've never been to a real high-volume site like<BR>yours.. I don't know.<BR><BR>Overall, I've always found SAP workflow to be a very stable, predictable<BR>system. As someone else noted, most problems are due to those pesky users.<BR>:-)<BR><BR>cheers<BR>Paul from Brisbane<BR><BR><BR><BR>|---------+----------------------------&gt;<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Mike Gambier"&nbsp;&nbsp; |<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;madgambler@hotma|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; il.com&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sent by:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sap-wug-bounces@m|<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; it.edu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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p;&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;|<BR>|---------+----------------------------&gt;<BR>&nbsp;&nbsp;&gt;---------------------------------------------------------------------------------------------------------------------|<BR>&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;&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;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sap-wug@m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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; |<BR>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject:&nbsp;&nbsp;RE: Commit
 Work&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp;&gt;---------------------------------------------------------------------------------------------------------------------|<BR><BR><BR><BR><BR>Andy,<BR><BR>We see a lot of COMMIT issues in our system when it comes to Workflow in<BR>4.6c, and when I mean a lot I mean all sorts of issues, not just simple<BR>steps.<BR><BR>We see the following on occasion, sometimes often:<BR><BR>1. Events that are raised but never heard, even though the event
 listener<BR>is<BR>out there, waiting.<BR><BR>2. Steps completing but the DB updates not being fast enough for the<BR>Workflow (even with COMMIT WORK AND WAIT explicitly stated in the Method<BR>code, of course LUW concept is boken here).<BR><BR>3. Branches of forks not shutting down when they should (WF becomes<BR>completely frozen)<BR><BR>4. Loops not terminating when their end condition is set (WF becomes<BR>completely frozen)<BR><BR>5. Sub-WFs completing but their Parents still waiting for them to finish<BR>(WF<BR>becomes completely frozen)<BR><BR>6. Deadlines that end but the WF does nothing afterwards (WF becomes<BR>completely frozen)<BR><BR>7. Event containers going 'missing'.<BR><BR>All of these really are down to the Workflow service jobs, SWEQSRV, SWERRE<BR>and SWWDHEX encountering various types of problems (and probably issuing<BR>ROLLBACK statements) and/or the LUW handling being incorrect with partial<BR>commits taking place that Workflow can't
 handle.<BR><BR>Things like screen messages, short dumps, WF syntax/definition glitches and<BR><BR>unexpected Commits inside code all have a nasty tendancy to interrupt these<BR><BR>programs and therefore expose the whole process chain to unrecoverable<BR>breaks.<BR><BR>The phrase often quoted around here about Workflow is that it is 'flaky'<BR>and<BR>needs constant attention. To be honest we have literally tens of thousands<BR>of WFs in trouble system-wide and it's often really tough to know what to<BR>do<BR>next, particularly after time has elapsed. For most of our WFs we have had<BR>to turn off the technical log due to our volumes so we have all become<BR>familiar with the underlying tables to find out waht's going on.<BR><BR>Thankfully, as we all should know, SAP do give us some handy Transactions<BR>to<BR>help: SWIA, SWPR, SWPC (in increasing order of severity). But, often these<BR>programs require the Workflow entries to be in a consistent state to<BR>qualify<BR>for
 selection and/or reprocessing. So 'adjustment' of the tables is<BR>sometimes required... And sometimes direct calling of the Workflow Admin<BR>Functions becomes inevitable...<BR><BR>We've recently gone back to SAP and asked them to provide us with a better<BR>tool to analyse the health of our running WF instances. Will publish here<BR>any progress on that front.<BR><BR>Knowing what to do and when is all part of the skill required to look after<BR><BR>Workflow I suppose.<BR><BR>Mike GT<BR><BR>&gt;From: "Catherall, Andy M" &lt;andy.m.catherall@csplc.com&gt;<BR>&gt;Reply-To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt;To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt;Subject: RE: Commit Work<BR>&gt;Date: Thu, 14 Jun 2007 06:25:09 -0600<BR>&gt;<BR>&gt;Hi<BR>&gt;<BR>&gt;To expand this 'Commit Work' debate a little further (sorry), I'm<BR>&gt;curious to understand better the implications of Commits in background<BR>&gt;work items.<BR>&gt;<BR>&gt;I've
 had problems where the code in a background step has errored poorly<BR>&gt;(SAP standard, too!), which has caused the WF to stall quietly, awaiting<BR>&gt;the return from a method that will never complete. Finally, I receive<BR>&gt;the notification from the batch job to say that the Work Item is at<BR>&gt;status 'started'.<BR>&gt;<BR>&gt;A quick look in SM58 shows the error on the RFC that spawned the<BR>&gt;background job. The underlying cause of the error is corrected<BR>&gt;(sometimes, it is little more than an object locked by a user) and the<BR>&gt;RFC can be resubmitted.<BR>&gt;<BR>&gt;What I have discovered is that you cannot assume the LUW is correct, or<BR>&gt;that the workflow will resume correctly - or even at all.<BR>&gt;<BR>&gt;My theory is this that the code being run as a separate session via RFC<BR>&gt;is frequently not *designed* specifically for this, and has Commits in<BR>&gt;places that destroy the LUW. Based on this theory, it would
 be<BR>&gt;preferable to use BAPIs where possible, and only commit at appropriate<BR>&gt;logic points.<BR>&gt;<BR>&gt;Thoughts...?<BR>&gt;<BR>&gt;I'm also curious to know if there is any wisdom on restarting background<BR>&gt;tasks that have errored... On 4.6c<BR>&gt;<BR>&gt;<BR>&gt;Thanks<BR>&gt;Andy<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;-----Original Message-----<BR>&gt;From: sap-wug-bounces@mit.edu@CADSCHW On Behalf Of "Alon Raskin"<BR>&gt;&lt;araskin@3i-consulting.com&gt;<BR>&gt;Sent: 12 June 2007 14:21<BR>&gt;To: SAP Workflow Users' Group<BR>&gt;Subject: RE: Commit Work<BR>&gt;<BR>&gt;Hi Mikey,<BR>&gt;<BR>&gt;I completely understand your point of view. There is just something<BR>&gt;about doing my own COMMIT WORK (and wait) in the method that makes me<BR>&gt;feel uncomfortable. It means that I am going to end the LUW myself and<BR>&gt;not give the caller (the workflow sub-system) a chance to do its own<BR>&gt;COMMIT WORK or ROLLBACK.<BR>&gt;<BR>&gt;To be honest I have only
 seen a COMMIT WORK 'break' things once. It was<BR>&gt;on an IS-U implementation in Sydney, and the workflow just hung. When we<BR>&gt;removed the COMMIT WORK all was well. I guess the COMMIT WORK was<BR>&gt;leaving the workflow tables in some sort of inconsistent state.<BR>&gt;<BR>&gt;I am sure there has to be a better way...<BR>&gt;<BR>&gt;Perhaps the answer is to never call BAPIs directly from a Workflow but<BR>&gt;rather wrap the BAPI in a 'standard' method. 'The Good Book' (not the<BR>&gt;one with Abraham and Moses but the one with Rickayzen and Dart) even<BR>&gt;mentions it is a good idea to wrap BAPI calls in standard methods but it<BR>&gt;suggests this for different reasons then the one I am thinking of.<BR>&gt;<BR>&gt;Ps. I am coming to the UK in 2nd and 3rd week of July. Any chance of a<BR>&gt;Poker game with the boys?<BR>&gt;<BR>&gt;Alon Raskin<BR>&gt;e: araskin@3i-consulting.com &lt;mailto:araskin@3i-consulting.com&gt;<BR>&gt;p: +1 207 523 3489<BR>&gt;c: +1 207
 409 4983<BR>&gt;f:&nbsp;&nbsp;+1 806 403 4983<BR>&gt;<BR>&gt;<BR>&gt;________________________________<BR>&gt;<BR>&gt;From: sap-wug-bounces@mit.edu on behalf of Mike Gambier<BR>&gt;Sent: Tue 6/12/2007 04:04<BR>&gt;To: sap-wug@mit.edu<BR>&gt;Subject: Re: Commit Work<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;Hey Gavin &amp; Alon,<BR>&gt;<BR>&gt;On that same UK project (which is still going on by the way, only now<BR>&gt;it's live with 16 million customers and going to be upgraded to ERP 2005<BR>&gt;at some point), we still occasionally see DB update issues every now and<BR>&gt;then, even with explicit COMMIT WORK AND WAIT statements littered (as<BR>&gt;you say) inside the BOR Methods.<BR>&gt;<BR>&gt;After more analysis the problems seem to be related to timing issues<BR>&gt;with object instances that have their own buffering (and when the<BR>&gt;buffers are refreshed), buffering at the DB level for SQL performance<BR>&gt;and V1 and V2 updates actually being carried out at the DB
 level.<BR>&gt;<BR>&gt;Simply put Workflow can sometimes be too quick to proceed to the next<BR>&gt;step, particularly when the system its on as a whole has a lot of<BR>&gt;traffic.<BR>&gt;<BR>&gt;My advice to anyone who absolutely positively needs to have performed<BR>&gt;the update in a previous step first is to:<BR>&gt;<BR>&gt;a) Consider adding explicit COMMIT WORK AND WAIT statements driven by<BR>&gt;optional importing parameters to their methods - more load on the system<BR>&gt;and delays to the Workflow but a greater chance of success. You can then<BR>&gt;experiment by setting the parameters on certain sensitive steps to see<BR>&gt;if this helps. If it doesn't you can always remove the flag setting in<BR>&gt;the binding later.<BR>&gt;<BR>&gt;b) remember to refresh buffered instances after the data has been<BR>&gt;updated.<BR>&gt;Often overlooked this one. Same goes for the binding to between the step<BR>&gt;and the Workflow. If you have specified the binding make
 sure any<BR>&gt;updated instances are actually passed back to the WF container.<BR>&gt;<BR>&gt;c) build in to the WF definition decent error handling and possible<BR>&gt;retries (e.g. temporary exceptions). Think about how certain you have to<BR>&gt;be that the previous DB update has actually worked to carry on with the<BR>&gt;WF. Sometimes after several tries you may actually want to stop the WF<BR>&gt;altogether because it would be too risky to carry on.<BR>&gt;<BR>&gt;Regards,<BR>&gt;<BR>&gt;Mike GT<BR>&gt;<BR>&gt; &gt;From: "Gavin Mooney" &lt;gavinmooney@gmail.com&gt;<BR>&gt; &gt;Reply-To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt; &gt;To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt; &gt;Subject: Re: Commit Work<BR>&gt; &gt;Date: Mon, 11 Jun 2007 19:11:41 -0300<BR>&gt; &gt;<BR>&gt; &gt;Hey Alon,<BR>&gt; &gt;<BR>&gt; &gt;When I was looking into this issue once on 4.6C (for a project in the<BR>&gt; &gt;UK that you may remember) I found
 that the code was littered with<BR>&gt; &gt;explicit COMMIT WORK statements, including after the execution of each<BR>&gt; &gt;step. I don't know if this has changed in the newer releases but my<BR>&gt; &gt;guess is that by being a COMMIT WORK and not a COMMIT WORK AND WAIT<BR>&gt; &gt;statement, you can still have update problems.<BR>&gt; &gt;<BR>&gt; &gt;We didn't see this just with BAPIs though. As far as I remember we<BR>&gt; &gt;resolved it either by creating a custom wrapper method that called the<BR>&gt; &gt;standard one and then executed a (SAP authorised) COMMIT WORK or by<BR>&gt; &gt;using async methods and terminating events.<BR>&gt; &gt;<BR>&gt; &gt;I'd be interested to see what experiences other members of the group<BR>&gt; &gt;have had....<BR>&gt; &gt;<BR>&gt; &gt;Regards,<BR>&gt; &gt;Gavin<BR>&gt; &gt;<BR>&gt; &gt;2007/6/11, Dave Weston &lt;Dave.Weston@clockwork.ca&gt;:<BR>&gt; &gt; &gt; Alan, in step 1 are you also calling BAPI_TRANSACTION_COMMIT at
 the<BR>&gt; &gt; &gt; end<BR>&gt; &gt;to do the commit and apply the changes to the db ? you can also use the<BR>&gt;<BR>&gt; &gt;WAIT parameter to wait for the update to take place as well.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Dave<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; -----Original Message-----<BR>&gt; &gt; &gt; From: sap-wug-bounces@mit.edu on behalf of Alon Raskin<BR>&gt; &gt; &gt; Sent: Mon 6/11/2007 5:09 PM<BR>&gt; &gt; &gt; To: SAP Workflow Users' Group<BR>&gt; &gt; &gt; Subject: Commit Work<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; A colleague of mine is having an issue and I wanted to see if anyone<BR>&gt;<BR>&gt; &gt; &gt; has<BR>&gt; &gt;seen this before. I have seen this issue creep up on different<BR>&gt; &gt;implementations so I am sure I am not the first to handle this.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; *<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Step 1 creates a new document (doesn't
 matter what it is,<BR>&gt; &gt; &gt; its<BR>&gt; &gt;IS-U) by calling a BAPI<BR>&gt; &gt; &gt; *<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The BAPI returns the ID of the new object which can be seen<BR>&gt; &gt; &gt; in<BR>&gt; &gt;the container of the Workflow<BR>&gt; &gt; &gt; *<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Step 2 then calls SYSTEM.GenericInstantiate to get an<BR>&gt; &gt; &gt; instance<BR>&gt; &gt;of the newly created document<BR>&gt; &gt; &gt; *<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Step 2 errors claiming that the object does not exist.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; I suggested to him to uncheck the Advance with Dialog step as I<BR>&gt; &gt; &gt; thought<BR>&gt; &gt;that this would 'force' the WF sub-system to do a COMMIT WORK between<BR>&gt; &gt;steps but this did not seem to work. I was sure that the Workflow<BR>&gt;
 &gt;sub-system always executes a COMMIT WORK between steps. Is that not the<BR>&gt;<BR>&gt; &gt;case? We did a test, and created a method where all it did was execute<BR>&gt; &gt;a COMMIT WORK. We inserted this step in between the BAPI and the<BR>&gt; &gt;System.GenericInstantiate and everything worked beautifully. So it is<BR>&gt;definitely a commit issue.<BR>&gt; &gt;Perhaps WF treats methods marked as BAPIs differently to standard<BR>&gt; &gt;methods and doesn't not do an explicit COMMIT WORK? If so, how do<BR>&gt; &gt;people get around this?<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Regards,<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Alon Raskin<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; &gt; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt;
 &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt;_______________________________________________<BR>&gt; &gt;SAP-WUG mailing list<BR>&gt; &gt;SAP-WUG@mit.edu<BR>&gt; &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>&gt;_________________________________________________________________<BR>&gt;Need a break? Find your escape route with Live Search Maps.<BR>&gt;<A href="http://maps.live.com/default.aspx?ss=Restaurants~Hotels~Amusement%20Park" target=_blank>http://maps.live.com/default.aspx?ss=Restaurants~Hotels~Amusement%20Park</A><BR>&gt;&amp;cp=33.832922~-117.915659&amp;style=r&amp;lvl=13&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;scene=<BR>&gt;1118863&amp;encType=1&amp;FORM=MGAC01<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;SAP-WUG mailing list<BR>&gt;SAP-WUG@mit.edu<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>&gt;P please don't print this e-mail unless you really need to.<BR>&gt;<BR>&gt;-----------------------------------------<BR>&gt;<BR>&gt;This email (including any attachment) is confidential and may contain<BR>&gt;privileged information. If you are not the intended recipient or receive<BR>it<BR>&gt;in error, you may not use, distribute, disclose or copy any of the<BR>&gt;information contained within it and it may be unlawful to do so. If you<BR>are<BR>&gt;not the intended recipient please notify us immediately by returning this<BR>&gt;e-mail to us at mailerror@csplc.com and destroy all copies.<BR>&gt;Any views expressed by individuals within this e-mail do not necessarily<BR>&gt;reflect the views of Cadbury Schweppes Plc or any of its subsidiaries' or<BR>&gt;affiliates'. This email does not constitute a binding offer, acceptance,<BR>&gt;amendment, waiver or other agreement, unless such intention is
 clearly<BR>&gt;stated in the body of the email.&nbsp;&nbsp;Whilst we have taken reasonable steps to<BR><BR>&gt;ensure that this e-mail and attachments are free from viruses, recipients<BR>&gt;are advised to subject this mail to their own virus checking, in keeping<BR>&gt;with good computing practice.<BR>&gt;Please note that e-mail received by Cadbury Schweppes Plc or its<BR>&gt;subsidiaries or affiliates may be monitored in accordance with applicable<BR>&gt;law.<BR>&gt;<BR>&gt;Cadbury Schweppes plc registered in England, Company Number 00052457<BR>&gt;whose Registered Office is at 25 Berkeley Square, London, W1J 6HB United<BR>&gt;Kingdom<BR>&gt;Telephone:+44 (0) 20 7409 1313 Fax:+44 (0) 20 7830 5200<BR>&gt;-----------------------------------------<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;SAP-WUG mailing list<BR>&gt;SAP-WUG@mit.edu<BR>&gt;<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
 target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>_________________________________________________________________<BR>Like puzzles? Play free games &amp; earn great prizes. Play Clink now.<BR><A href="http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2" target=_blank>http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2</A><BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<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><BR><BR>******************************************************************************************************************************************************<BR><BR>Only an individual or entity who is intended to be a recipient of this e-mail may access or use the information contained in this e-mail or any of its attachments.&nbsp;&nbsp;Opinions contained in this e-mail or any of
 its attachments do not necessarily reflect the opinions of Queensland Treasury.<BR><BR>The contents of this e-mail and any attachments are confidential and may be legally privileged and the subject of copyright.&nbsp;&nbsp;If you have received this e-mail in error, please notify Queensland Treasury immediately and erase all copies of the e-mail and the attachments.&nbsp;&nbsp;Queensland Treasury uses virus scanning software.&nbsp;&nbsp;However, it is not liable for viruses present in this e-mail or in any attachment.&nbsp;&nbsp;<BR><BR>******************************************************************************************************************************************************<BR><BR><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Fri, 15 Jun 2007 08:00:31 +0800<BR>From: "Dart, Jocelyn" &lt;jocelyn.dart@sap.com&gt;<BR>Subject: RE: Workflow development standards<BR>To: "SAP Workflow Users' Group"
 &lt;sap-wug@mit.edu&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;2EAD340DEF223745B1AC9A10B49FBB4756902D@sgsine13.sin.sap.corp&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Nice ... but hopefully next time they will have updated to use ABAP OO<BR>for Workflow as well. <BR><BR><BR>Regards, <BR>Jocelyn Dart <BR>Senior Consultant <BR>SAP Australia Pty Ltd. <BR>Level 1/168 Walker St. <BR>North Sydney <BR>NSW, 2060 <BR>Australia <BR>T&nbsp;&nbsp; +61 412 390 267 <BR>M&nbsp;&nbsp; + 61 412 390 267 <BR>E&nbsp;&nbsp; jocelyn.dart@sap.com <BR><A href="http://www.sap.com/" target=_blank>http://www.sap.com</A> &lt;<A href="http://www.sap.com/" target=_blank>http://www.sap.com/</A>&gt;&nbsp;&nbsp;<BR><BR>The information contained in or attached to this electronic transmission<BR>is confidential and may be legally privileged. It is intended only for<BR>the person or entity to which it is addressed. If you are not the<BR>intended recipient, you are hereby notified that
 any distribution,<BR>copying, review, retransmission, dissemination or other use of this<BR>electronic transmission or the information contained in it is strictly<BR>prohibited. If you have received this electronic transmission in error,<BR>please immediately contact the sender to arrange for the return of the<BR>original documents. <BR><BR>Electronic transmission cannot be guaranteed to be secure and<BR>accordingly, the sender does not accept liability for any such data<BR>corruption, interception, unauthorized amendment, viruses, delays or the<BR>consequences thereof.<BR><BR>Any views expressed in this electronic transmission are those of the<BR>individual sender, except where the message states otherwise and the<BR>sender is authorized to state them to be the views of SAP AG or any of<BR>its subsidiaries. SAP AG, its subsidiaries, and their directors,<BR>officers and employees make no representation nor accept any liability<BR>for the accuracy or completeness of the
 views or information contained<BR>herein. Please be aware that the furnishing of any pricing information/<BR>business proposal herein is indicative only, is subject to change and<BR>shall not be construed as an offer or as constituting a binding<BR>agreement on the part of SAP AG or any of its subsidiaries to enter into<BR>any relationship, unless otherwise expressly stated. <BR><BR><BR><BR>________________________________<BR><BR>From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<BR>Of Sue Doughty<BR>Sent: Thursday, 14 June 2007 9:41 PM<BR>To: SAP Workflow Users' Group<BR>Subject: RE: Workflow development standards<BR><BR><BR>Michelle,<BR><BR>Attached is a presentation -- Workflow - A Journey in Discovery -- that<BR>was given at ASUG this year.&nbsp;&nbsp;They had a great spreadsheet that<BR>contained all the steps of a workflow project and what needed to be done<BR>for each phase.&nbsp;&nbsp;Their email addresses are on the last page....you
 could<BR>ask them to send you the spreadsheet.<BR><BR>Hope this helps.<BR>Sue Doughty<BR><BR>________________________________<BR><BR>From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<BR>Of Michelle Van Patten<BR>Sent: Wednesday, June 13, 2007 4:31 PM<BR>To: sap-wug@mit.edu<BR>Subject: Workflow development standards<BR><BR><BR><BR>Good afternoon, <BR><BR>Does anyone have development standards for workflow they could share?&nbsp;&nbsp;I<BR>have been tasked with creating them for our company.<BR><BR>Thanks, <BR>Michelle <BR><BR>________________________________<BR><BR>NOTICE: This e-mail message and any attachments are confidential and<BR>intended solely for use of the intended recipient. If you are not the<BR>intended recipient, you should not review, retransmit, convert to hard<BR>copy, copy, use or disseminate this e-mail or any attachments to it. If<BR>you have received this e-mail in error, please immediately notify us by<BR>return e-mail and delete
 this message and any attachments from your<BR>computer system. Please note that if this e-mail message contains a<BR>forwarded message or is a reply to a prior message, some or all of the<BR>contents of this message or any attachments may not have been produced<BR>by the sender. This notice is automatically appended to each e-mail<BR>message leaving the sender's e-mail domain. Thank you.<BR><BR><BR>**************************** <BR>CONFIDENTIALITY NOTICE: The information contained in this message may be<BR>confidential, privileged, proprietary, or otherwise legally exempt from<BR>disclosure. If the reader of this message is not the intended recipient,<BR>or an employee or agent responsible for delivering this message to the<BR>intended recipient, you are hereby notified that you are not authorized<BR>to read, print, retain, copy or disseminate this message, any part of<BR>it, or any attachments. If you have received this message in error,<BR>please delete this message and
 any attachments from your system without<BR>reading the content and notify the sender immediately of the inadvertent<BR>transmission. Thank you for your cooperation. <BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20070615/5c019f1c/attachment.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20070615/5c019f1c/attachment.htm</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<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 31, Issue 38<BR>***************************************</DIV></DIV><BR></DIV></div><br>
      <hr size=1> 
Yahoo! Answers - Get better answers from someone who knows. <a
href="http://uk.answers.yahoo.com/;_ylc=X3oDMTEydmViNG02BF9TAzIxMTQ3MTcxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU">Try
it now</a>.</body></html>