<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
Hi Mike, et al,<BR>
OK! OK!&nbsp; I said my understanding was defective (perhaps).&nbsp; As for reasons, I have never, ever had a problem with BDCs (using the function module generator from SHDB) and I also use them a lot to usher the user through one or more screens on dialog tasks that call standard transactions (CALL FUNCTION ..USING) so I am comfortable with them.&nbsp; The new SHDB handles the subscreens very well&nbsp;and that was not always the case.&nbsp; <BR>
&nbsp;<BR>
I find many BAPIs so complex as to be incomprehensible; e.g. the BAPI for creating a sales order.&nbsp; User friendly???&nbsp; I can create a SHDB function for creating a new material (MM01) faster that I can figure out how to use the BAPI to do the same thing.&nbsp; <BR>
&nbsp;<BR>
I know BDCs are old technology and the BAPI returns a lot of good information in BAPIRET and are probably more robust, but it is just my preference.&nbsp; AND, I&nbsp;have&nbsp;had no problems getting my new objects saved in the database in time for my next workflow step.&nbsp; Perhaps the update process sorts BAPIs to the bottom - :)<BR>
&nbsp;<BR>
With greatest repect,<BR>
Ed <BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<BR>&gt; Date: Tue, 12 Jun 2007 14:26:52 +0100<BR>&gt; Subject: RE: Commit Work<BR>&gt; From: asap@workflowconnections.com<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; Hi Ed,<BR>&gt; No no no... By all means post your understandings and reasons, but BAPIs<BR>&gt; are most very very definitively surely absolutely positively (can you see<BR>&gt; a theme here) certainly unquestionably and beyond a shadow of a doubt the<BR>&gt; better alternative to creating/changing objects in background.<BR>&gt; They are stable, upgrade-friendly, simpler, more versatile.<BR>&gt; <BR>&gt; That said, I have to admit I'm curious what your several reasons are...?<BR>&gt; <BR>&gt; Cheers,<BR>&gt; Mike<BR>&gt; <BR>&gt; On Tue, June 12, 2007 1:43 pm, Edward Diehl wrote:<BR>&gt; &gt;<BR>&gt; &gt; Hi Alon,<BR>&gt; &gt; I try to always use a BDC function to create a new object rather than a<BR>&gt; &gt; BAPI. A BAPI, if it is not called as an RFC, required an explicit COMMIT<BR>&gt; &gt; WORK. It may be some defect in my understanding, but I am not a big fan<BR>&gt; &gt; of BAPIs for several reasons and this is just one of them.<BR>&gt; &gt;<BR>&gt; &gt; Regards,<BR>&gt; &gt; Ed Diehl<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Subject: Commit WorkDate: Mon, 11 Jun 2007 17:09:57 -0400From:<BR>&gt; &gt; araskin@3i-consulting.comTo: sap-wug@mit.edu<BR>&gt; &gt;<BR>&gt; &gt; A colleague of mine is having an issue and I wanted to see if anyone 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;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Step 1 creates a new document (doesn't matter what it is, its IS-U) by<BR>&gt; &gt; calling a BAPI<BR>&gt; &gt;<BR>&gt; &gt; The BAPI returns the ID of the new object which can be seen in the<BR>&gt; &gt; container of the Workflow<BR>&gt; &gt;<BR>&gt; &gt; Step 2 then calls SYSTEM.GenericInstantiate to get an instance of the<BR>&gt; &gt; newly created document<BR>&gt; &gt;<BR>&gt; &gt; Step 2 errors claiming that the object does not exist.<BR>&gt; &gt; I suggested to him to uncheck the Advance with Dialog step as I 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; &gt; case? We did a test, and created a method where all it did was execute a<BR>&gt; &gt; 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; &gt; definitely a commit issue. Perhaps WF treats methods marked as BAPIs<BR>&gt; &gt; differently to standard methods and doesn't not do an explicit COMMIT<BR>&gt; &gt; WORK? If so, how do people get around this?<BR>&gt; &gt; Regards,<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Alon Raskin<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Mike Pokraka<BR>&gt; Senior Consultant<BR>&gt; Workflow Connections<BR>&gt; Mobile: +44(0)7786 910855<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR><BR></body>
</html>