<?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: Regarding BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896783#M1791984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so in that case simply insert or modify or update statement is enough to write our data to DB?&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt; No need to write any statement you have to just execute the BAPI with required Import / Tables parameter , it will update /create data into database. BAPI always updates DB tables unlike BDC where in updation takes place through sequence of screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we are using COMMIT WORK then there is definitely be update function module which takes care of our update to DB?&lt;/P&gt;&lt;P&gt;COMMIT WORK BAPI itself updates records to DB . why you need to worry what statements are written when it solves the purpose. if you really want to know just debug COMMIT WORK and know what it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM: zbapi_mm_create which is RFC enabled.&lt;/P&gt;&lt;P&gt;insert table mara is performed directly without commit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its your own RFC enabled FM then you just need to call BAPI_MATERIAL_SAVEDATA&lt;/P&gt;&lt;P&gt;to create material . also this BAPI does not need COMMIT BAPI to be called in sequence to save material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it is placed in BOR&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; placing it in BOR makes you access this BAPI through third party applications . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Nov 2013 16:53:06 GMT</pubDate>
    <dc:creator>former_member227140</dc:creator>
    <dc:date>2013-11-29T16:53:06Z</dc:date>
    <item>
      <title>Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896775#M1791976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was confused with BAPI and researched so many at last i find some thing gathering all, am posting what i have gathered regarding BAPI in this post .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me if am go wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI is RFC enabled function module to be get connected with other system either it is third party or another SAP system.&lt;/P&gt;&lt;P&gt;BAPI must uses update function moulde to update the database tables during commit work statement or roll back statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update function module are triggered when program sees the commit work statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on the ubove mentioned is right, i have one doubt here. &lt;/P&gt;&lt;P&gt;these update function module wont allow parameters, how can the BAPI send the values to update function module to update the particular value to DB. suppose we are doing BAPI to update material description how can update FM recognize that these are the material number to update the values and these are the material description?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one let me know if my understanding is wrong or if it is correct let me know how the update FM knows that these are the values needs to be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinesh kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 20:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896775#M1791976</guid>
      <dc:creator>former_member525804</dc:creator>
      <dc:date>2013-11-28T20:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896776#M1791977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Update function module allow input parameters but not export or exceptions.So we can give parameters from BAPI to update function module.Another possibility is if bapi and update function module is in same function group then both access the global variable of function group.&lt;/P&gt;&lt;P&gt; Bapi is not only to update data,so it may not use update function module.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sreenivas. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 00:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896776#M1791977</guid>
      <dc:creator>former_member219762</dc:creator>
      <dc:date>2013-11-29T00:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896777#M1791978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose let we take BAPI "BAPI_SALESDOCU_CREATEFROMDATA1" to create sales order. this will update to data base while BAPI_TRANSACTION_COMMIT. let us take this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this use any update FM to update the database? or else any other using to update DB?&lt;/P&gt;&lt;P&gt;if yes, how can we come to know what is the update FM for this BAPI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 06:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896777#M1791978</guid>
      <dc:creator>former_member525804</dc:creator>
      <dc:date>2013-11-29T06:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896778#M1791979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested by sreenivas rao yarru, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of the Update Task&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Operations that change the database must be carried out through the updating process. Otherwise, there’s a risk that both unchecked and unwanted database COMMITs are executed during the RFC call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can follow the below the below link to know more about BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_46c/helpdata/EN/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm" title="http://help.sap.com/saphelp_46c/helpdata/EN/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 07:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896778#M1791979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-29T07:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896779#M1791980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Search for string IN UPDATE TASK there we can find update function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 07:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896779#M1791980</guid>
      <dc:creator>former_member219762</dc:creator>
      <dc:date>2013-11-29T07:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896780#M1791981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few BAPIS require BAPI_TRANSACTION_COMMIT to be called in sequence with your original BAPI. for this you can follow following sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE37 , type your BAPI name ,in menu click on Function Module &amp;gt;&amp;gt;&amp;gt; Test &amp;gt;&amp;gt;&amp;gt; Test sequence &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Give the Main BAPI name on first line and BAPI_TRANSACTION_COMMIT on second line and then TEST the BAPI to create or update data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) while in some scenario its not required to commit BAP to save data /update data to databse tables.&lt;/P&gt;&lt;P&gt;you can simply execute BAPI enter required import / tables parameters and execute it will save the data to DB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you need do some research to check if a separate commit is required or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 08:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896780#M1791981</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2013-11-29T08:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896781#M1791982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An update function module bundles all the database updates and registers itself in a LUW (logical unit of work) in a repository. As soon as it sees a transaction commit or commit work statement it does all the bundled database updates together. The updates may be stored in an internal table or other data types while in the repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the update function modules dont need any parameters to be passed. It has all the updates that you do..for eg in your case if you do a change of material description via a transaction it stores the change in an internal table or something and make the changes to the database only after it sees the commit work statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details refer these links:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_nw04/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm" title="http://help.sap.com/saphelp_nw04/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e5/de86d835cd11d3acb00000e83539c3/content.htm" title="http://help.sap.com/saphelp_nw04/helpdata/en/e5/de86d835cd11d3acb00000e83539c3/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e5/de86d835cd11d3acb00000e83539c3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 10:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896781#M1791982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-29T10:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896782#M1791983</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;As per the above suggestions, i clear that BAPI always does not need COMMIT WORK to commit to DB. &lt;/P&gt;&lt;P&gt;1. so in that case simply insert or modify or update statement is enough to write our data to DB?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; if we are using COMMIT WORK then there is definitely be update function module which takes care of our update to DB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;going more practical.&lt;/P&gt;&lt;P&gt;example for scenario 1: &lt;/P&gt;&lt;P&gt;FM: zbapi_mm_create which is RFC enabled.&lt;/P&gt;&lt;P&gt;insert table mara is performed directly without commit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eample for scenario 2: &lt;/P&gt;&lt;P&gt;FM: zbapi_mm_create which is RFC enabled.&lt;/P&gt;&lt;P&gt;if material is already there then through error in return else BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;inside zbapi_mm_create, we will have update FM zbapi_mm_create_update in update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zbapi_mm_create_update with import parameter matnr.&lt;/P&gt;&lt;P&gt;insert to table mara values matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have explained the above steps to create a bapi. is it correct? is it the process carried in all bapi?&lt;/P&gt;&lt;P&gt;i think now you clearly understood my question. and one more , why it is placed in BOR? what is the use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 10:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896782#M1791983</guid>
      <dc:creator>former_member525804</dc:creator>
      <dc:date>2013-11-29T10:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896783#M1791984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so in that case simply insert or modify or update statement is enough to write our data to DB?&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt; No need to write any statement you have to just execute the BAPI with required Import / Tables parameter , it will update /create data into database. BAPI always updates DB tables unlike BDC where in updation takes place through sequence of screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we are using COMMIT WORK then there is definitely be update function module which takes care of our update to DB?&lt;/P&gt;&lt;P&gt;COMMIT WORK BAPI itself updates records to DB . why you need to worry what statements are written when it solves the purpose. if you really want to know just debug COMMIT WORK and know what it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM: zbapi_mm_create which is RFC enabled.&lt;/P&gt;&lt;P&gt;insert table mara is performed directly without commit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its your own RFC enabled FM then you just need to call BAPI_MATERIAL_SAVEDATA&lt;/P&gt;&lt;P&gt;to create material . also this BAPI does not need COMMIT BAPI to be called in sequence to save material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it is placed in BOR&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; placing it in BOR makes you access this BAPI through third party applications . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 16:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/9896783#M1791984</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2013-11-29T16:53:06Z</dc:date>
    </item>
  </channel>
</rss>

