<?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: what is the difference between synchronus &amp; asynchronus methods? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131572#M743944</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;b&amp;gt;1.what is the difference between synchronus &amp;amp; asynchronus methods?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Synchronous&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;With synchronous updating, we can check SY-SUBRC to determine the success of the transaction and the actual update to the database.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;    PERFORM FILL_BDC_TAB.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION &amp;#145;FK02&amp;#146;&lt;/P&gt;&lt;P&gt;	USING 	BDC_TAB&lt;/P&gt;&lt;P&gt;	MODE	&amp;#145;N&amp;#146;&lt;/P&gt;&lt;P&gt;	UPDATE	&amp;#145;S&amp;#146;.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt; &amp;gt; 0.&lt;/P&gt;&lt;P&gt;	WRITE: /&amp;#145;ERROR&amp;#146;.	&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Asynchronous&amp;lt;/b&amp;gt;With asynchronous updating, we can check SY-SUBRC to determine the success of the transaction only,  not the actual update to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;    PERFORM FILL_BDC_TAB.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION &amp;#145;FK02&amp;#146;&lt;/P&gt;&lt;P&gt;	USING 	BDC_TAB&lt;/P&gt;&lt;P&gt;	MODE	&amp;#145;N&amp;#146;&lt;/P&gt;&lt;P&gt;	UPDATE	&amp;#145;A&amp;#146;.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt; &amp;gt; 0.&lt;/P&gt;&lt;P&gt;	WRITE: /&amp;#145;ERROR&amp;#146;.	&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2.call transaction uses synchronus or synchronus method?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BY DEFAULT IT IS Asynchronus METHOD YOU CAN CHOOSE synchronus OR Asynchronus &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;3.session method uses synchronus or synchronus method?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT USES synchronus METHOD AND WE DON'T HAVE OPTION TO CHANGE IT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;4.Can you call a bdc from a report program?&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Report RSBDCSUB which is a Report program to Process all the sessions, you can call this report program using Submit as we do to call any report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Nov 2007 06:03:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-25T06:03:06Z</dc:date>
    <item>
      <title>what is the difference between synchronus &amp; asynchronus methods?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131569#M743941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some ques related bdc, plz reply them,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.what is the difference between synchronus &amp;amp; asynchronus methods?&lt;/P&gt;&lt;P&gt;2.call transaction uses synchronus or synchronus method?&lt;/P&gt;&lt;P&gt;3.session method uses synchronus or synchronus method?&lt;/P&gt;&lt;P&gt;4.Can you call a bdc from a report program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 04:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131569#M743941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T04:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between synchronus &amp; asynchronus methods?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131570#M743942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Synchronus method updates the database and creates the document number and then gives you back the message.&lt;/P&gt;&lt;P&gt;Asynchronus method gives you the message like "document is generated" and simuntenoulsy updates the database and cretes the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You have to specify the by CALL TRANSACTION 'MM01' using BDCDATA UPDATE 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Session method uses the Synchornus method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Yes We can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 04:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131570#M743942</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-24T04:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between synchronus &amp; asynchronus methods?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131571#M743943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1A.Asynchronous Method:&lt;/P&gt;&lt;P&gt;Your program doesn't wait for the called transaction to be completed.As soon as your program calls a transaction it will start carrying out other works.This will result in faster execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synchronous Method:&lt;/P&gt;&lt;P&gt;Your program wait for the called transaction to be completed.Unless the called transcation is completed your program wont resume processing.Processing will be slow compared to asynchrounous approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2A. Sync and Async.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3A. sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4A. Yes, you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 04:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131571#M743943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T04:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between synchronus &amp; asynchronus methods?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131572#M743944</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;b&amp;gt;1.what is the difference between synchronus &amp;amp; asynchronus methods?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Synchronous&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;With synchronous updating, we can check SY-SUBRC to determine the success of the transaction and the actual update to the database.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;    PERFORM FILL_BDC_TAB.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION &amp;#145;FK02&amp;#146;&lt;/P&gt;&lt;P&gt;	USING 	BDC_TAB&lt;/P&gt;&lt;P&gt;	MODE	&amp;#145;N&amp;#146;&lt;/P&gt;&lt;P&gt;	UPDATE	&amp;#145;S&amp;#146;.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt; &amp;gt; 0.&lt;/P&gt;&lt;P&gt;	WRITE: /&amp;#145;ERROR&amp;#146;.	&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Asynchronous&amp;lt;/b&amp;gt;With asynchronous updating, we can check SY-SUBRC to determine the success of the transaction only,  not the actual update to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;    PERFORM FILL_BDC_TAB.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION &amp;#145;FK02&amp;#146;&lt;/P&gt;&lt;P&gt;	USING 	BDC_TAB&lt;/P&gt;&lt;P&gt;	MODE	&amp;#145;N&amp;#146;&lt;/P&gt;&lt;P&gt;	UPDATE	&amp;#145;A&amp;#146;.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt; &amp;gt; 0.&lt;/P&gt;&lt;P&gt;	WRITE: /&amp;#145;ERROR&amp;#146;.	&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2.call transaction uses synchronus or synchronus method?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BY DEFAULT IT IS Asynchronus METHOD YOU CAN CHOOSE synchronus OR Asynchronus &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;3.session method uses synchronus or synchronus method?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT USES synchronus METHOD AND WE DON'T HAVE OPTION TO CHANGE IT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;4.Can you call a bdc from a report program?&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Report RSBDCSUB which is a Report program to Process all the sessions, you can call this report program using Submit as we do to call any report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 06:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-synchronus-asynchronus-methods/m-p/3131572#M743944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-25T06:03:06Z</dc:date>
    </item>
  </channel>
</rss>

