<?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: Synchronous Vs  ASynchronous in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238681#M482433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viajaya Laxmi,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can go the easy way..Just check below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;#1 : &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;what are Synchronous and ASynchronous updates in BDC ?&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; &amp;lt;i&amp;gt;PS:&amp;lt;/i&amp;gt;  Session Methods&amp;lt;/b&amp;gt; use &amp;lt;b&amp;gt;Synchronous&amp;lt;/b&amp;gt; updates and &amp;lt;b&amp;gt;Call Transaction Methods&amp;lt;/b&amp;gt; use &amp;lt;b&amp;gt;Asynchronous&amp;lt;/b&amp;gt; updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Session method&amp;lt;/b&amp;gt;: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Call Transaction method&amp;lt;/b&amp;gt;: The records are immediately added to the database table. sy-subrc is returned to 0 if succesful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;#2 : &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;what is the differences between Synchronous and ASynchronous updates ?&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Asynchronous Update&amp;lt;/b&amp;gt; &amp;#150;The program does not wait for the work process to finish the update. Commit Work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Synchronous Update&amp;lt;/b&amp;gt; &amp;#150; The program wait for the work process to finish the update. Commit Work and Wait&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this would be clear enough ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Reward points if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KumarR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2007 11:56:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-26T11:56:51Z</dc:date>
    <item>
      <title>Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238676#M482428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, can any one explain ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are Synchronous and ASynchronous updates in BDC ?&lt;/P&gt;&lt;P&gt;what is the differences between Synchronous and ASynchronous updates ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls dont give any links for other sites, explain it clearly,&lt;/P&gt;&lt;P&gt;full points for clear explanations....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238676#M482428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238677#M482429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Synchronous Update : This means say if u have 10 records to update and the processing is going on in a loop the Synchronous update will wait till each update is actually done in the data base and then it will move on the next record's updation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asynchronous : In This mode, the updates are lined one after the other and the system doesn't wait for the updates to actually happen. These updates are then triggered by an internally scheduled job which then actually updates the data in the databse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238677#M482429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238678#M482430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Laxmi,&lt;/P&gt;&lt;P&gt;    I will take a n example of call transcation statement.&lt;/P&gt;&lt;P&gt;In general a call transaction will update the database tables of that transaction.&lt;/P&gt;&lt;P&gt;If you specify the update mode as Synchronous, then the control would not come to the calling program until and unless all the related tables are updated completed.&lt;/P&gt;&lt;P&gt;In Asynchrouns updates, the control wil not wait for the data base tables to be updated. &lt;/P&gt;&lt;P&gt;Obviously it is faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238678#M482430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238679#M482431</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;&lt;/P&gt;&lt;P&gt;  Here you go with the answers in detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Synchronus data processing is that in which the program calling the update task waits for the update work process to finish the update before it continues processing.&lt;/P&gt;&lt;P&gt;In Asynchronus update the callng program does not wait for update work process to finish the update and continues as normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A BDC done with sessions is always synchronus.&lt;/P&gt;&lt;P&gt;A BDC with call transaction is by default asynchronus&lt;/P&gt;&lt;P&gt;unless you define it explicitly as &lt;/P&gt;&lt;P&gt;call transaction 'XXXX' ...... update 'S'.&lt;/P&gt;&lt;P&gt;( If you donot define update option it is defaulted to "A" ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The update method is of importance when one transaction locks data which may be required by a subsequent transaction . The subsequent transaction will fail if data is locked from previous one. An example would be you are creating sales order for same material in succession ( with asynchronus update ). Quite likely that some of transactions would fail due to material locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For large volume of data Call Transaction will be faster but you have no restart capability here. Suppose from 1000 transactions 100 fails . You will have to run the BDC program again exclusing the ones which wrere successful. However with session method you have the option to process the error transactions again in SM35 . So if you are sure that errors will not occur use call transaction else use session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few more informations: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In batch session interface: - Asynchronous processing means Transfers data for multiple transactions - Synchronous database update means during processing, no transaction is started until the previous transaction has been written to the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CALL TRANSACTION: - Synchronous processing means Transfers data for a single transaction. Synchronous and asynchronous database updating both possible The program specifies which kind of updating is desired. Separate LUW for the transaction The system performs a database commit immediately before and after the CALL TRANSACTION USING statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ranjita Kar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238679#M482431</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-04-26T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238680#M482432</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;In Synchronous updating, the called transaction (CT) waits until all the updates have been completed. So processing is slower than with synchronous updating. The called transaction can however report any updating errors to the program, which makes error analysis/correction easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Asynchronous updating, the called transaction does not wait until the database has been updated, it simply forward the updates to the SAP update service. This usually speeds up the CT  program. This processing mode is NOT recommended for large data sets as the called transaction does not receive a completion message from the update module. The calling CT program therefore cannot tell if the transaction has been successfully completed. You should use the updating administration function (transaction SM13) to determine whether updating was terminated early. The error analysis /correction functions for are less helpful than with synchronous updating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238680#M482432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238681#M482433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viajaya Laxmi,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can go the easy way..Just check below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;#1 : &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;what are Synchronous and ASynchronous updates in BDC ?&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; &amp;lt;i&amp;gt;PS:&amp;lt;/i&amp;gt;  Session Methods&amp;lt;/b&amp;gt; use &amp;lt;b&amp;gt;Synchronous&amp;lt;/b&amp;gt; updates and &amp;lt;b&amp;gt;Call Transaction Methods&amp;lt;/b&amp;gt; use &amp;lt;b&amp;gt;Asynchronous&amp;lt;/b&amp;gt; updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Session method&amp;lt;/b&amp;gt;: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Call Transaction method&amp;lt;/b&amp;gt;: The records are immediately added to the database table. sy-subrc is returned to 0 if succesful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;#2 : &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;what is the differences between Synchronous and ASynchronous updates ?&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Asynchronous Update&amp;lt;/b&amp;gt; &amp;#150;The program does not wait for the work process to finish the update. Commit Work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Synchronous Update&amp;lt;/b&amp;gt; &amp;#150; The program wait for the work process to finish the update. Commit Work and Wait&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this would be clear enough ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Reward points if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KumarR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238681#M482433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous Vs  ASynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238682#M482434</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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Synchronous Update:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;In synchronous update, you do not submit an update request using CALL FUNCTION... IN&lt;/P&gt;&lt;P&gt;UPDATE TASK. Instead, you use the ABAP statement COMMIT WORK AND WAIT. When the&lt;/P&gt;&lt;P&gt;update is finished, control passes back to the program. Synchronous update works in the same&lt;/P&gt;&lt;P&gt;way as bundling update requests in a subroutine (PERFORM ON COMMIT). This kind of update&lt;/P&gt;&lt;P&gt;is useful when you want to use both asynchronous and synchronous processing without having&lt;/P&gt;&lt;P&gt;to program the bundles in two separate ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is an example which you could use in asynchronous update:&lt;/P&gt;&lt;P&gt;DATA CONTEXT_NAME LIKE RS33F-FRMID.&lt;/P&gt;&lt;P&gt;CONTEXT_NAME = 'DOCU_TEST1'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONTEXT_BUFFER_DELETE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTEXT_ID = CONTEXT_NAME&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 0.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Asynchronous Update:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;A typical R/3 installation contains dialog work processes and at least one update work process.&lt;/P&gt;&lt;P&gt;The update work processes are responsible for updating the database. When an ABAP program&lt;/P&gt;&lt;P&gt;reaches a COMMIT WORK statement, any function modules from CALL FUNCTION... IN&lt;/P&gt;&lt;P&gt;UPDATE TASK statements are released for processing in an update work process. The dialog&lt;/P&gt;&lt;P&gt;process does not wait for the update to finish. This kind of update is called asynchronous update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 19:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-vs-asynchronous/m-p/2238682#M482434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T19:50:16Z</dc:date>
    </item>
  </channel>
</rss>

