<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: can we submit 3 programs at a time in a bapi? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024888#M1498497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; So let's read on and check the [BAPI Transaction Model Requirements|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm]:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands. \[..\] Several BAPIs should be able to be combined within one LUW. \[..\] The following commands must not be used:&lt;/P&gt;&lt;P&gt;&amp;gt; - CALL TRANSACTION&lt;/P&gt;&lt;P&gt;&amp;gt; - SUBMIT REPORT&lt;/P&gt;&lt;P&gt;&amp;gt; - &lt;STRONG&gt;SUBMIT REPORT AND RETURN&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here, I don't understand the documentation. I mean: SUBMIT REPORT AND RETURN, alone, does not trigger an implicit database commit (or does it depend on something? I made tests in 7.0, there is no implicit DB commit). It occurs only if a screen is displayed, or RFC is called, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; However, the requirement to use &lt;EM&gt;updates&lt;/EM&gt; (which I read as &lt;EM&gt;update&lt;/EM&gt; function modules) implies that any [implicit commits|http://help.sap.com/abapdocu_70/en/ABENDB_COMMIT.htm] shouldn't have any impact as long as the submitted program doesn't change any data.&lt;/P&gt;&lt;P&gt;Your statement applies only if you call a BAPI once in the LUW. However, BAPIs may be called several times in the LUW by standard programs (IDocs especially, those which allows processing by packets).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; but I think for sake of clarity the BAPI implementation requirements &lt;STRONG&gt;are overly restrictive&lt;/STRONG&gt; and SAP simply tries to avoid explaining odd corner cases...&lt;/P&gt;&lt;P&gt;I agree on that, but only about the SUBMIT REPORT AND RETURN, not the implicit DB commit &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jun 2010 20:11:42 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2010-06-07T20:11:42Z</dc:date>
    <item>
      <title>can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024884#M1498493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we submit the 3 programs at a time in a BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   In BAPI 'ZYYYY'-&amp;gt; submit test1 with selection-screen '100' using selection table rsparam.&lt;/P&gt;&lt;P&gt;                                  submit test2 with selection-screen '100' using selection table rsparam.&lt;/P&gt;&lt;P&gt;                                  submit test3 with selection-screen '100' using selection table rsparam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Devi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jun 2010 13:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024884#M1498493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-06T13:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024885#M1498494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True BAPIs should not have screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jun 2010 20:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024885#M1498494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-06T20:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024886#M1498495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob is correct.. ture purpose of BAPI are to simulate how transaction works and do the task without any screen processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Yes.. you can SUBMIT...though the true meaning of BAPI wont have the justice..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jun 2010 23:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024886#M1498495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-06T23:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024887#M1498496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we submit the 3 programs at a time in a BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sure, but the question might be &lt;EM&gt;&lt;STRONG&gt;should&lt;/STRONG&gt; we submit...&lt;/EM&gt;...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit test1 with selection-screen '100' using selection table rsparam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm not familiar with syntax &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;with selection-screen .. using...&lt;/SPAN&gt;, though I could see [submit using selection-screen .. with selection-table|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_INTERFACE.htm]. Also, you'd have to use the [and return|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm#!ABAP_ONE_ADD@1@] addition (will be obvious once you read the documentation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the more interesting part, is this in compliance with the BAPI interface contract? In the [Introduction to BAPI's|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/e3/cfa21850a711d395f900a0c94260a5/frameset.htm] SAP defines:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Application Programming Interfaces (BAPIs) enable access to SAP functions across formal, stable and &lt;STRONG&gt;dialog-free&lt;/STRONG&gt; interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As your idea seems to be to submit the program &lt;EM&gt;without&lt;/EM&gt; showing a screen we should still be ok. So let's read on and check the [BAPI Transaction Model Requirements|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm]:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands. \[..\] Several BAPIs should be able to be combined within one LUW. \[..\] The following commands must not be used:&lt;/P&gt;&lt;P&gt;- CALL TRANSACTION&lt;/P&gt;&lt;P&gt;- SUBMIT REPORT&lt;/P&gt;&lt;P&gt;- SUBMIT REPORT AND RETURN&lt;/P&gt;&lt;P&gt;\[..\]&lt;/P&gt;&lt;P&gt;Database changes can only be made through updates. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reason&lt;/STRONG&gt;: The RFC executes an implicit database commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Fair enough. We should avoid commits so that users can bundle BAPI's into one LUW. However, the requirement to use &lt;EM&gt;updates&lt;/EM&gt; (which I read as &lt;EM&gt;update&lt;/EM&gt; function modules) implies that any [implicit commits|http://help.sap.com/abapdocu_70/en/ABENDB_COMMIT.htm] shouldn't have any impact as long as the submitted program doesn't change any data. Thus assuming that all BAPI's comply with SAP's requirements (which we know they don't, but that's another story), I don't see a reason why we shouldn't for example submit some legacy program to retrieve for example some data (I know poor design, but most of us deal with lots of existing code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please correct me if I'm missing something substantial here, but I think for sake of clarity the BAPI implementation requirements are overly restrictive and SAP simply tries to avoid explaining odd corner cases...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 09:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024887#M1498496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T09:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024888#M1498497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; So let's read on and check the [BAPI Transaction Model Requirements|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm]:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands. \[..\] Several BAPIs should be able to be combined within one LUW. \[..\] The following commands must not be used:&lt;/P&gt;&lt;P&gt;&amp;gt; - CALL TRANSACTION&lt;/P&gt;&lt;P&gt;&amp;gt; - SUBMIT REPORT&lt;/P&gt;&lt;P&gt;&amp;gt; - &lt;STRONG&gt;SUBMIT REPORT AND RETURN&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here, I don't understand the documentation. I mean: SUBMIT REPORT AND RETURN, alone, does not trigger an implicit database commit (or does it depend on something? I made tests in 7.0, there is no implicit DB commit). It occurs only if a screen is displayed, or RFC is called, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; However, the requirement to use &lt;EM&gt;updates&lt;/EM&gt; (which I read as &lt;EM&gt;update&lt;/EM&gt; function modules) implies that any [implicit commits|http://help.sap.com/abapdocu_70/en/ABENDB_COMMIT.htm] shouldn't have any impact as long as the submitted program doesn't change any data.&lt;/P&gt;&lt;P&gt;Your statement applies only if you call a BAPI once in the LUW. However, BAPIs may be called several times in the LUW by standard programs (IDocs especially, those which allows processing by packets).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; but I think for sake of clarity the BAPI implementation requirements &lt;STRONG&gt;are overly restrictive&lt;/STRONG&gt; and SAP simply tries to avoid explaining odd corner cases...&lt;/P&gt;&lt;P&gt;I agree on that, but only about the SUBMIT REPORT AND RETURN, not the implicit DB commit &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 20:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024888#M1498497</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-07T20:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024889#M1498498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to find a table that is being accessed in all the tcodes?&lt;/P&gt;&lt;P&gt;for example: we have MARA table, how to find that this table is accessed in different transactions like&lt;/P&gt;&lt;P&gt;MM0&lt;STRONG&gt;,CV0&lt;/STRONG&gt;,CA0* etc. Help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Devi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - This is an entirely different question - one question per thread please

IF the original question is solved, please assign po1nts to helpful answers and mark it as solved and start a new thread with the new question&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 8, 2010 9:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 21:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024889#M1498498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T21:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024890#M1498499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT REPORT AND RETURN, alone, does not trigger an implicit database commit (or does it depend on something? I made tests in 7.0, there is no implicit DB commit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You are absolutely right. I must admit that I'm a bit surprised, but when I tested it I also &lt;STRONG&gt;didn't&lt;/STRONG&gt; get any implicit commit. I think the help is a bit misleading, because even though the &lt;EM&gt;submit&lt;/EM&gt; statement is not mentioned for [implicit commits|http://help.sap.com/abapdocu_70/en/ABENDB_COMMIT.htm], the help on [commit work|http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm] states:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within an update function module started using COMMIT WORK, the execution of statements that lead to a database commit is not permitted. In particular, the following are forbidden:&lt;/P&gt;&lt;P&gt;\[..\]&lt;/P&gt;&lt;P&gt;SUBMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Even though it doesn't explicitly state that the commands are forbidden, because of an implicit commit, I was always assuming that this is what it's trying to tell me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; However, the requirement to use updates (which I read as update  function modules) implies that any implicit commit shouldn't have any impact as long as the submitted program doesn't change any data.&lt;/P&gt;&lt;P&gt;&amp;gt; Your statement applies only if you call a BAPI once in the LUW. However, BAPIs may be called several times in the LUW by standard programs (IDocs especially, those which allows processing by packets).&lt;/P&gt;&lt;P&gt;Sorry, I don't understand what you mean. I was trying to say that as long as all BAPI's do any persistent changes via &lt;EM&gt;update function modules&lt;/EM&gt; any &lt;EM&gt;implicit commit&lt;/EM&gt; would not trigger those updates and thus the transactional model would still work. I.e. you could call the BAPI several times and despite implicit commits triggered in the BAPI you could still either commit or rollback everything once your transaction is done. I would appreciate if you could elaborate where my thinking is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the corrections, it's always good to learn/understand the inner workings of ABAP better...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 23:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024890#M1498499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T23:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024891#M1498500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Sorry, I don't understand what you mean. I was trying to say that as long as all BAPI's do any persistent changes via &lt;EM&gt;update function modules&lt;/EM&gt; any &lt;EM&gt;implicit commit&lt;/EM&gt; would not trigger those updates and thus the transactional model would still work. I.e. you could call the BAPI several times and despite implicit commits triggered in the BAPI you could still either commit or rollback everything once your transaction is done. I would appreciate if you could elaborate where my thinking is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad. I was still thinking that previously called BAPIs could do direct updates, this is a too much recent concept for me (I discovered it yesterday, owing to you, so my ideas are not clear about it yet)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found another reason to say that BAPIs must not do database commits, that seems rather obvious when said like that: SAP doesn't say how we must call BAPIs, so I assume it's free: if your program executes direct updates and calls a BAPI, you should have the guarantee that you can rollback the whole updates (here, yours especially, plus update function modules) if you want/need to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; it's always good to learn/understand the inner workings of ABAP better...&lt;/P&gt;&lt;P&gt;I like that too, what I do is I &lt;EM&gt;watch&lt;/EM&gt; people who post interesting remarks &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;I found something interesting too: according to [sap library - Transaction Model for Developing BAPIs|http://help.sap.com/saphelp_nw2004s/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm], and BC417 (training for BAPI development, 2008, page 17), BAPIs are allowed to trigger COMMIT WORK, but it must be indicated in their documentation, so always read it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I deduce that BAPIs could do the following, &lt;STRONG&gt;if this is documented&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- do a simple database commit*&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;do direct updates&lt;/STRONG&gt; : if there can be a commit work in a BAPI, why couldn't there be a direct update!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note about the importance of BAPI documentation about the presence of a commit:&lt;/P&gt;&lt;P&gt;&amp;gt; Abstract of [SAP Library - Designing the BAPI|http://help.sap.com/saphelp_nw70/helpdata/EN/43/b46c1e53c111d395fa00a0c94260a5/frameset.htm]: &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Since BAPIs represent business interfaces and not technical ones, the following &lt;STRONG&gt;central requirement&lt;/STRONG&gt; for developing BAPIs arises:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; In an external application, users must be able to correctly implement a BAPI call using their knowledge of the application &lt;STRONG&gt;and the BAPI documentation alone. Users are not expected to have any knowledge of SAP, so that they can view the SAP System as a "black box".&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 16:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024891#M1498500</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-08T16:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024892#M1498501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;1) as the SAP library is unclear, I looked at the BC417 (2008, page 204), one of the first lines of the Update chapter: "Database updates are always done via update processes" (now that's clear!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Note that we still find in BC417: "A BAPI must not trigger further LUWs. Therefore don't use \[...\] SUBMIT &amp;lt;report&amp;gt; \[AND RETURN\]. I wonder if it has changed with recent kernel, can someone test with a 4.6C or 6.20 release? Or is it a profile parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Example of a "bad" BAPI: BAPI_CASE_CREATE uses direct update (ECC 6). If it is called via RFC, the updates will be committed even if you later use BAPI_TRANSACTION_ROLLBACK! The BAPI documentation does not contain this important information (though it should!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Standard BAPIs which use COMMIT WORK are indicated in Note 131838 - Collective note for BAPIs w/ 'Commit Work' command (as I know SAP, maybe this note is not up to date, there are probably other ones, or these ones are corrected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) I wonder if we are allowed to call a BAPI from the update task (though I think there is no interest to do so)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 16:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024892#M1498501</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-08T16:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: can we submit 3 programs at a time in a bapi?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024893#M1498502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandra, very nice write-up - I think we're making good use of this thread... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the commit work I prefer usage of the programming principle of &lt;EM&gt;least surprise&lt;/EM&gt; and thus the strict recommendation given in the [BAPI Transaction Model Requirements|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm] I quoted earlier:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 2 of your comments is also still a mystery to me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Note that we still find in BC417: "A BAPI must not trigger further LUWs. Therefore don't use \[...\] SUBMIT &amp;lt;report&amp;gt; \[AND RETURN\]. I wonder if it has changed with recent kernel, can someone test with a 4.6C or 6.20 release? Or is it a profile parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I fail to see why it's bad to start a new LUW as long as no explicit commit is triggered. Obviously whatever code is executed in the new LUW cannot do any updates (well, even more strict, it should not have any functionality that requires implicit or explicit commits) to comply with the (stricter) transaction requirements I quoted. I'm not aware of any [profile parameters|http://help.sap.com/saphelp_nw70ehp2/Helpdata/EN/c2/b1bf3dce8f4895a8bd7379506ed932/frameset.htm] influencing LUW behavior or implicit commits related to SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) I wonder if we are allowed to call a BAPI from the update task (though I think there is no interest to do so)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In theory I'd say it should be ok, though I think it would be a stretch to call anything that does updates. However, in practice I'm with you as I don't see use cases for this: Within an update module I'd say one focuses on performing database updates, so data should be checked already. Probably there are some BAPI's out there that still might be useful, but in general I doubt that one would call a BAPI in an update module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 19:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-submit-3-programs-at-a-time-in-a-bapi/m-p/7024893#M1498502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T19:39:40Z</dc:date>
    </item>
  </channel>
</rss>

