ASYNCHRONOUS updates

Hi SAP Gurus,
I have an idea about this, but I wanted to confirm with the experts. Asynchronous updates is something in which, "Messages can be persisted," and not, "Acknowledgment can be sent back," I am thinking this second option is more for Synchronous updates since it becomes a, "Blocking Mode." Am I right about this.
Thanks,
Adnan Abbasi

Hi,
Check these threads
Synchronous Vs  ASynchronous
Asynchronous and Synchronous
Asynchronous Update – The program does not wait for the work process to finish the update. Commit Work.
Synchronous Update – The program wait for the work process to finish the update. Commit Work and Wait.
Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
DataBase Commit:
This statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement.
An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.
COMMIT WORK: ( Asynchronous)
Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK
Reward points if helpful.
Regards,
Soumya

Similar Messages

  • Asynchronous update of Flash chart error in IE

    Hi gurus,
    I had a post a while ago about an update command for a flash chart:
    [Asynchronous update of flash chart when select list value changes|http://forums.oracle.com/forums/thread.jspa?messageID=3491745]
    The goal was when I clicked a button or changed a select list the flash chart should update. Here is the command to update the flash chart:
    apex_RefreshChart ($v('pFlowStepId'), $v('Pxx_REGION_ID').substr(1), navigator.language );This worked really well in Firefox but IE always created an error:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:16:52 UTC
    Message: Object doesn't support this property or method
    Line: 1
    Char: 31991
    Code: 0
    URI: http://apex.oracle.com/i/javascript/apex_3_1.jsTry this example:
    [http://apex.oracle.com/pls/otn/f?p=65555:23|http://apex.oracle.com/pls/otn/f?p=65555:23]
    I found out that IE used another function to get the client language. I fixed that but an error still occurs:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:27:02 UTC
    Message: Unkown error.
    Line: 49
    Char: 5
    Code: 0
    URI: http://SERVER:8080/apex/f?p=150:1:10579031101899::NO::P1_I_ID,P1_INSTANCE_NAME:1,DB1That is the javascript I used now:
    //check the Browser type to set the right browser language
    function fnc_checkBrowserLanguage()
    var nav_lng="en"; //default language string
    if(navigator.language)nav_lng=navigator.language;
    if(navigator.browserLanguage)nav_lng=navigator.userLanguage;
    if(navigator.systemLanguage)nav_lng=navigator.systemLanguage;
    if(navigator.browserLanguage)nav_lng=navigator.browserLanguage;
    if(navigator.userLanguage)nav_lng=navigator.userLanguage;
    if(window.navigator.language)nav_lng=window.navigator.language;
    return nav_lng;
    // return 'en-us';
    function fnc_setTablespaceItem (pItem)
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
    // alert('Item '+pItem+' Session State set to '+$x(pItem).value+'!');
      var v_flow_id = $v('pFlowStepId');
      var v_region_id = new String($v('P1_REGION_ID_TU').substr(1));
      var v_browser_lang = fnc_checkBrowserLanguage();
      //alert(v_flow_id);
      //alert(v_region_id);
      //alert(v_browser_lang);
      var vOriginal_apex_RefreshChart = apex_RefreshChart;
      apex_RefreshChart = function(v_flow_id,v_region_id,v_browser_lang)
        vOriginal_apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      get = null;
    }If I set the alert boxed all variables have a value. Firefox works well. And I have no idea what I could do next???
    Tobias

    I just found out that the original time based flash update option creates the same error I get all the time. It can be configured under:
    Chart attributes > Refresh: Asynchronous Update = YES and Update Interval (Seconds) = 10
    Error: (line 49) (JScript - script block):
    function __flash__addCallback(instance, name) {
      instance[name] = function () {
        return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
      }By the way I use the newest APEX version: "Application Express 3.2.1.00.10"
    Seems more like a general error? Everybody should be able to rebuild this under IE 8 or IE 7. I use IE8!
    Created source code:
    &lt;script type="text/javascript" language="javascript">
    function chart_r2258227549390282_InitRefresh(pNow) {
      setTimeout("chart_r2258227549390282_InitRefresh(true)",10000);
      if (pNow){apex_RefreshChart (1, '2258227549390282', 'de');}
    apex_SWFFormFix('c2258227549390282');
    &lt;/script>It still works well with Firefox.
    Tobias
    Edited by: Tobias Arnhold on Oct 6, 2009 2:37 PM

  • Can I use asynchronous update on a chart I generate from my own DB Package?

    I have created a database package that will generate a stacked bar graph in SVG with dynamically generated series based on a requirement I have been given.
    I would like to know if it is possible to take advantage of the asynchronous update mechanism available on Application Express for its own SVG charts?
    That is, as long as the package as a callable URL, can it be made to refresh as if it were a native SVG component of Application Express?

    Hello,
    Do not split your posts up across different threads askign for the same thing, it confuses the subject and makes it harder for people to help you.
    Asking a question should not be like a shotgun more like a sniper rifle, guess whos been playing first person shooters latley ;)
    Use this code in your plsql package to link in the correct javascripts.
    htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgInit.js"/>');
    htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgNodes.js"/>');
    htp.prn('<script type="text/ecmascript">');
    htp.prn('<![CDATA[');
    htp.prn('function htmldb_Load(evt){');
    htp.prn(' myTimer = setTimeout('svgSync();','5000');');
    htp.prn('}]]>');
    htp.prn('</script>');
    and add attribute to the top level &lt;svg> tag
    onload="htmldb_Load(evt)"
    that will reload yoru svg every 5 seconds
    Carl

  • Asynchronous update and View customization

    Hello!
    I faced with an issue: I have a custom view of the some list with about 9 columns with long header title. For best viewing in properties of header cells we unchecked No Wrap option. And that view became looks good. After that we enabled Asynchronous update
    option with refresh interval, and after that action my view in browser was looking like I don`t unchecked No Wrap option. But when I open that view in SP Designer for editing it looks properly, instead browser.
    When I disable Asynchronous update my view became looks properly (with word wrapping in header cell). Can you advise to something to help me solving this issue.
    Thank You in advance!

    Hi,
    See you can develop reports of fetch it from standard transactions.
    Also for your info, you can fetch it from tables. Ir you run tables like VBRK, VBRP by entering revelant data you can find the previous as well as current sales data.
    For finding returns sales data, you need to pass the necessary return document type (returns memo etc) in the above said tables.
    Hope this helps you
    Regards,
    Dhananjay

  • Flash Chart with Asynchronous Update

    Hello all,
    I'm trying to use the Asynchronous Update option of the chart's, but in different version of APEX it doens't work.
    In my local DB I have APEX v. 4.0.1.00.03 and it works fine, loads the graphic and keep updating, but in the server the graphic is loaded but when it goes refreshing the chart disappear instead, the version is 4.0.0.00.46 .
    Both charts have the same configuration and the standard query:
    SELECT sum(case when COMM is null
                         then 0
                    when COMM = 0
                         then 0
                    else 1
                    end) value,
           count(*) max_value
                FROM EMP Something I did noticed that is different at the source code is that one have the function apex_RefreshFlashChart and the other have apex_RefreshChart Is it really related to the version, or am i missing something?
    Thanks,
    Alan Martini.

    Hi,
    it was a bug, corrected in patch 4.0.1 (bug 9868860), see http://www.oracle.com/technetwork/developer-tools/apex/application-express/401-patch-166923.html#BABJCAFA.
    It's why it don't works with APEX 4.0.0.

  • Ecatt synchronous and asynchronous update

    Hi,
        I want some details about ECATT. In the UI control tab of test configuration there are around six start modes .What is the difference between
    process in background synchronous local, process in background synchronous not local and process in background asynchronous update.
    Regards,
    Charumathi.B

    Hi Kumar,
    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.
    In Asynchronus update the callng program does not wait for update work process to finish the update and continues as normal.
    A BDC done with sessions is always synchronus.
    A BDC with call transaction is by default asynchronus
    unless you define it explicitly as
    call transaction 'XXXX' ...... update 'S'.
    ( If you donot define update option it is defaulted to "A" ).
    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.
    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.
    Please also check this link for differences between call transaction and batch input method
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/097015543b11d1898e0000e8322d00/frameset.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Synchronous and asynchronous updates

    hi evry1,
    When we say that asynchronous updates and synchronous updates are possible in any method like call transaction what do we mean by this statement ?
    Thanks .

    hi,
    synchrronous update means do all or nothing. when a call transaction is used in bdc then updation is done at once. i.e. all updates to database are done or roll backed and we have to do it from scratch.
    ex: call transaction method in bdc is done in synchronous manner.
    asychronous update means step by step updation. if any thing goes wrong then we can start from that point only. not from first.
    ex: idocs transfers data in asynchronous manner.
    if helpful reward some points.
    with regards,
    suresh.

  • Synchronous and Asynchronous  update

    Dear Abapers  ,
    which of the following command are synchronous and which of the asynchronous ??
    a) modify ztable from wa.
    b) update ztable set field1 = '123'.
    c) update ztable from ztable.
    d) insert wa into ztable.
    e) call function 'update_table' in update task
    Also list some other updates which are asynchronous and synchronous
    Moderator message - Please do not ask or answer interview type questions - post locked and answer deleted
    Edited by: Rob Burbank on Sep 1, 2009 9:09 AM

    hi,
    For Update you have
    A - asynchronus - does not wait for next update in the queue
    S - Synchronus - waits until the previous update is completed before a new request is considered
    L - Local update - Uses a different work process to trigger call function in update task.
    In synchronus method until one record process takes place into database next record will not be processed.
    In asynchronus immedate updation of data into database table.
    Check this link for more detailed information:
    http://fuller.mit.edu/tech/sync_asynchronous.html
    'A', 'S' and 'L' are the update modes in CALL transaction method.
    I will give you a simple example to explain this.
    Suppose that there are 30 records in total and an error has occured in the 5th record.
    In asynchronous, update is done for every 30 records while in synchronous one,
    update is done only upto the 4th record.
    So only after the record in the fifth one is eliminated, remaining others are processed.
    Have a look at this URL from SAP Help:
    http://help.sap.com/saphelp_46c/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm
    Regards
    Anversha

  • Synchronous and Asynchronous updating in LIS

    Dear experts
    What is the difference between
    Synchronous and Asynchronous updating in LIS ? 
    There are three radio buttons for ASYNCHRONOUS UPDATING [1],[2],[3]
    What is the significanse of each of them?
    Regards
    Siddharth

    Hi siddarth
    Difference between synchronous update & asynchronous update
    Synchronous update -Immediate start, i.e., when an event takes place that triggers an update
    Asynchronous update - Delayed start, i.e., updating is slightly delayed after an event that triggers an update
    Regards
    Srinath

  • Synchronous asynchronous update

    what is difference between synch and asynch update???
    how it affects database update???

    hi,
    For Update you have
    A - asynchronus - does not wait for next update in the queue
    S - Synchronus - waits until the previous update is completed before a new request is considered
    L - Local update - Uses a different work process to trigger call function in update task.
    In synchronus method until one record process takes place into database next record will not be processed.
    In asynchronus immedate updation of data into database table.
    Check this link for more detailed information:
    http://fuller.mit.edu/tech/sync_asynchronous.html
    'A', 'S' and 'L' are the update modes in CALL transaction method.
    I will give you a simple example to explain this.
    Suppose that there are 30 records in total and an error has occured in the 5th record.
    In asynchronous, update is done for every 30 records while in synchronous one,
    update is done only upto the 4th record.
    So only after the record in the fifth one is eliminated, remaining others are processed.
    Have a look at this URL from SAP Help:
    http://help.sap.com/saphelp_46c/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm
    Regards
    Reshma

  • Synchronous or asynchronous update?

    how tables are effected by taking synchronous or asynchronous update?

    Hi,
    Synchronous Update – The program wait for the work process to finish the update. Commit Work and Wait.
    Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
    Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
    If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
    Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
    Thanks,
    Kasiraman R

  • Diff between synchronous & asynchronous updates of database with call trans

    Hi Everyone,
               I want to know the difference how synchronous and asynchronous
    database update in call transaction method.
    thanks

    Hi,
    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.
    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.
    Difference between Synchronous and Asynchronous processing?
    Re: synchronous........
    Suggest you to Search in <b>SDN with key - Synchronous or asynchronous .</b>
    Will get few more useful related Posts.
    Reward points if this Helps.
    Manish

  • How to send asynchronous updates to Visual Webpart?

    Hi Guys, 
    I have a visual webpart which does set of tasks on a single button is click event. So at the end of each task I need to update the status of that task back to the UI. How to do this?
    Thanks in advance.
    nasayoo

    Hi nasayoo,
    I suggest you can use asynchronous web part to achieve this.
    Here are some demos for your reference:
    More information about Asynchronous web part:
    http://blogs.msdn.com/b/pavankumar/archive/2009/02/16/code-sample-for-a-asynchronous-webpart.aspx
    http://sadomovalex.blogspot.com/2012/07/create-asynchronous-web-parts-for.html  
    Best regards,
    Zhengyu Guo
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you
    have feedback for TechNet Subscriber Support, contact [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Asynchronous Update - Business Transaction - SAP Library

    To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
    You can also go back to the SAP help page.

    Hi Vikram,
    I appreciate your quick response. I went over the document that you've mentioned. However, nothing in there seemed to help.
    Just FYI, i need to create/change approx. 25,000 Business Partners in SOLMAN 7.1 by 1)creating system users in SOLMAN and 2) execute report AI_SDK_USER_BP_GEN to generate/update BP IDs accordingly.
    My question was, lets say if i needed to enter profit center, cost center and division info into each BP. In what BP role and fields, besides the standard BUP001 (Contact Person) & BUP003 (Employee), that I can use to enter those type of information?
    For example, profit center - 88KUL186; cost center - 88KUL186; division - KLIA.
    Thanks in advance.

  • Differences between Synchronous and Asynchronous updates

    can any one tell me the differences between these updates

    Hi
    Look at this tread it can help:
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/search%21default.jspa%3FforumID%3D131%26threadID%3D67445

Maybe you are looking for