<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
Upon reflection there are some BAPIs I could not live without - function group CVBAPI for DMS stuff, for example.&nbsp; And, yes, don't do BDCs with popups or tablecontrols or arrays of checkboxes.&nbsp; I just object to the "everything including the kitchen sink" design philosophy behind most BAPIs.<BR>
&nbsp;<BR>
BTW, have you tried writing&nbsp;a&nbsp;BAPI call&nbsp;in CRM and had to call a BAPI not resident in the CRM system - especially a very complex BAPI?&nbsp; The BDC is really no more help here but the interface is simpler.<BR>
&nbsp;<BR>
Regards,<BR>
Ed<BR>
<BR><BR>&gt; Date: Tue, 12 Jun 2007 17:23:28 +0100<BR>&gt; Subject: RE: Commit Work<BR>&gt; From: asap@workflowconnections.com<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; Hmmm... well, my experience has always been the opposite :)<BR>&gt; The last time I had a chance to argue with BDCs because there were no<BR>&gt; BAPIs was with MIRO and that little PO selection button and it's resulting<BR>&gt; popup. I remember it clearly as we spent several days on that brick wall.<BR>&gt; <BR>&gt; Agreed, sometimes bapis may seem (!) a little more work up front, but one<BR>&gt; trick here is to only use the bit that you need. Think of it like the ABAP<BR>&gt; equivalent of taking the little bit of time to code something into a<BR>&gt; function module so that it can be reused elsewhere. The hidden benefits<BR>&gt; are enormous and often only apparent later - when you upgrade or have to<BR>&gt; change something. You can drop a BAPI into a portal environment and don't<BR>&gt; care whether it talks to your old EBP system or a shiny new ECC6.<BR>&gt; <BR>&gt; As to updates, I've always found the transactions (i.e. BDC) to be the<BR>&gt; less reliable :-) See my other post with the SAP doco link regarding the<BR>&gt; commit logic.<BR>&gt; <BR>&gt; Cheers,<BR>&gt; Mike<BR>&gt; <BR>&gt; On Tue, June 12, 2007 4:05 pm, Edward Diehl wrote:<BR>&gt; &gt;<BR>&gt; &gt; Hi Mike, et al,<BR>&gt; &gt; OK! OK! I said my understanding was defective (perhaps). As for reasons,<BR>&gt; &gt; I have never, ever had a problem with BDCs (using the function module<BR>&gt; &gt; generator from SHDB) and I also use them a lot to usher the user through<BR>&gt; &gt; one or more screens on dialog tasks that call standard transactions (CALL<BR>&gt; &gt; FUNCTION ..USING) so I am comfortable with them. The new SHDB handles the<BR>&gt; &gt; subscreens very well and that was not always the case.<BR>&gt; &gt;<BR>&gt; &gt; I find many BAPIs so complex as to be incomprehensible; e.g. the BAPI for<BR>&gt; &gt; creating a sales order. User friendly??? I can create a SHDB function<BR>&gt; &gt; for creating a new material (MM01) faster that I can figure out how to use<BR>&gt; &gt; the BAPI to do the same thing.<BR>&gt; &gt;<BR>&gt; &gt; I know BDCs are old technology and the BAPI returns a lot of good<BR>&gt; &gt; information in BAPIRET and are probably more robust, but it is just my<BR>&gt; &gt; preference. AND, I have had no problems getting my new objects saved in<BR>&gt; &gt; the database in time for my next workflow step. Perhaps the update<BR>&gt; &gt; process sorts BAPIs to the bottom - :)<BR>&gt; &gt;<BR>&gt; &gt; With greatest repect,<BR>&gt; &gt; Ed<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; Date: Tue, 12 Jun 2007 14:26:52 +0100&gt; Subject: RE: Commit Work&gt; From:<BR>&gt; &gt;&gt; asap@workflowconnections.com&gt; To: sap-wug@mit.edu&gt; &gt; Hi Ed,&gt; No no no...<BR>&gt; &gt;&gt; By all means post your understandings and reasons, but BAPIs&gt; are most<BR>&gt; &gt;&gt; very very definitively surely absolutely positively (can you see&gt; a<BR>&gt; &gt;&gt; theme here) certainly unquestionably and beyond a shadow of a doubt the&gt;<BR>&gt; &gt;&gt; better alternative to creating/changing objects in background.&gt; They are<BR>&gt; &gt;&gt; stable, upgrade-friendly, simpler, more versatile.&gt; &gt; That said, I have<BR>&gt; &gt;&gt; to admit I'm curious what your several reasons are...?&gt; &gt; Cheers,&gt; Mike&gt;<BR>&gt; &gt;&gt; &gt; On Tue, June 12, 2007 1:43 pm, Edward Diehl wrote:&gt; &gt;&gt; &gt; Hi Alon,&gt; &gt; I<BR>&gt; &gt;&gt; try to always use a BDC function to create a new object rather than a&gt; &gt;<BR>&gt; &gt;&gt; BAPI. A BAPI, if it is not called as an RFC, required an explicit<BR>&gt; &gt;&gt; COMMIT&gt; &gt; WORK. It may be some defect in my understanding, but I am not<BR>&gt; &gt;&gt; a big fan&gt; &gt; of BAPIs for several reasons and this is just one of them.&gt;<BR>&gt; &gt;&gt; &gt;&gt; &gt; Regards,&gt; &gt; Ed Diehl&gt; &gt;&gt; &gt;&gt; &gt; Subject: Commit WorkDate: Mon, 11 Jun<BR>&gt; &gt;&gt; 2007 17:09:57 -0400From:&gt; &gt; araskin@3i-consulting.comTo:<BR>&gt; &gt;&gt; sap-wug@mit.edu&gt; &gt;&gt; &gt; A colleague of mine is having an issue and I<BR>&gt; &gt;&gt; wanted to see if anyone has&gt; &gt; seen this before. I have seen this issue<BR>&gt; &gt;&gt; creep up on different&gt; &gt; implementations so I am sure I am not the first<BR>&gt; &gt;&gt; to handle this.&gt; &gt;&gt; &gt;&gt; &gt;&gt; &gt; Step 1 creates a new document (doesn't<BR>&gt; &gt;&gt; matter what it is, its IS-U) by&gt; &gt; calling a BAPI&gt; &gt;&gt; &gt; The BAPI returns<BR>&gt; &gt;&gt; the ID of the new object which can be seen in the&gt; &gt; container of the<BR>&gt; &gt;&gt; Workflow&gt; &gt;&gt; &gt; Step 2 then calls SYSTEM.GenericInstantiate to get an<BR>&gt; &gt;&gt; instance of the&gt; &gt; newly created document&gt; &gt;&gt; &gt; Step 2 errors claiming<BR>&gt; &gt;&gt; that the object does not exist.&gt; &gt; I suggested to him to uncheck the<BR>&gt; &gt;&gt; Advance with Dialog step as I thought&gt; &gt; that this would 'force' the WF<BR>&gt; &gt;&gt; sub-system to do a COMMIT WORK between&gt; &gt; steps but this did not seem to<BR>&gt; &gt;&gt; work. I was sure that the Workflow&gt; &gt; sub-system always executes a<BR>&gt; &gt;&gt; COMMIT WORK between steps. Is that not the&gt; &gt; case? We did a test, and<BR>&gt; &gt;&gt; created a method where all it did was execute a&gt; &gt; COMMIT WORK. We<BR>&gt; &gt;&gt; inserted this step in between the BAPI and the&gt; &gt;<BR>&gt; &gt;&gt; System.GenericInstantiate and everything worked beautifully. So it is&gt; &gt;<BR>&gt; &gt;&gt; definitely a commit issue. Perhaps WF treats methods marked as BAPIs&gt; &gt;<BR>&gt; &gt;&gt; differently to standard methods and doesn't not do an explicit COMMIT&gt; &gt;<BR>&gt; &gt;&gt; WORK? If so, how do people get around this?&gt; &gt; Regards,&gt; &gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; Alon Raskin&gt; &gt; _______________________________________________&gt; &gt;<BR>&gt; &gt;&gt; SAP-WUG mailing list&gt; &gt; SAP-WUG@mit.edu&gt; &gt;<BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug&gt; &gt;&gt; &gt; &gt; -- &gt; Mike<BR>&gt; &gt;&gt; Pokraka&gt; Senior Consultant&gt; Workflow Connections&gt; Mobile: +44(0)7786<BR>&gt; &gt;&gt; 910855&gt; &gt; _______________________________________________&gt; SAP-WUG<BR>&gt; &gt;&gt; mailing list&gt; SAP-WUG@mit.edu&gt;<BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug_______________________________________________<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>