<?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: BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568951#M1432552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend, I think you got the concepts confused. Remote-Enabled function modules are functions that can be called from other systems, say SAP PI for example. Update Modules are called withing SAP programs using the addition IN UPDATE TASK and the behaviour is defined by the radio buttion you select under "Update module". This can be usefull (for example) if you need to update some tables in a user-exit and you only want them to be updated if the transaction commits, not even before of after that. That's to maintain the consistency. So...please tell me what is your requirement and I'll see if I can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2010 14:02:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-29T14:02:59Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568950#M1432551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frnds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create an Update BAPI, from what I have known till now in SE37 when I create a FM under attributes either I can select &lt;/P&gt;&lt;P&gt;&amp;gt; remote enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant select both so how do I go about this? additionally how can I have a return attribute in the update function module as its not allowed to have one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 11:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568950#M1432551</guid>
      <dc:creator>sujoy_chowdhary</dc:creator>
      <dc:date>2010-01-29T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568951#M1432552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend, I think you got the concepts confused. Remote-Enabled function modules are functions that can be called from other systems, say SAP PI for example. Update Modules are called withing SAP programs using the addition IN UPDATE TASK and the behaviour is defined by the radio buttion you select under "Update module". This can be usefull (for example) if you need to update some tables in a user-exit and you only want them to be updated if the transaction commits, not even before of after that. That's to maintain the consistency. So...please tell me what is your requirement and I'll see if I can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 14:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568951#M1432552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568952#M1432553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Pablo &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for finding time to have a look into the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just got a code snippet which resolved my doubt , well I have still one doubt how a commit in a BAPI works, is it automatically called , as even if I register FM as Update task and dont do an commit work how the FM registered as update task will be called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sujoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 14:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568952#M1432553</guid>
      <dc:creator>sujoy_chowdhary</dc:creator>
      <dc:date>2010-01-29T14:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568953#M1432554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually BAPIs don't do the COMMIT WORK. They used to, but now they don't. You can always take a look at the code and see if there is any commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beware, sometimes you will find something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;a = 2.
IF a = 1.
 COMMIT WORK.
ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that will obviously not do a COMMIT WORK, but if  you are testing in SE37 and want to do a commit, just set a break-point and change the "a" value.  If you are calling the BAPI from another system, you can use BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have helped you. Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 15:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/6568953#M1432554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T15:03:27Z</dc:date>
    </item>
  </channel>
</rss>

