TRFC internals - how does the async processing happen?

tRFC internals - how does the async processing happen?
Dear all,
With the document "[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694]" there is an excellent place to read about SAP RFCs (remote function calls).
Pages 94 to 96 describe in detail how tFRC (transactional RFC) works.
However, there is still something unclear for me with the following sentence on page 94:
"The truly exciting part happens when the program
issues a COMMIT WORK command. The recorded calls
are executed asynchronously in a special set of tRFC
processing sessions created for each transaction ID..."
Maybe someone can answer the following questions:
a) what does exactly trigger and execute the tRFC?
b) is it the ABAP runtime system itself, spawning the additional task in DIA?
c) if multiple tRFC LUWs have been recorded, they are all executed in parallel by this procedure!?
d) does the execution try to utilize all available DIA processes?
e) how do the rdisp/rfc_... parameter come into the game?
   are they evaluated? We have seen all DIA occupied by the tRFCs executed!
Best regards,
Peter
P.S.: if someone has answers to these ones, more related to error handling, would be great as well
f) the jobs ARFC*, do they also use parallel processing?
   or is every ARFC* job responsible only for one single LUW?
   (note https://service.sap.com/sap/support/notes/366807 did not give a perfect answer)
g) and how does the report RSARFCEX work compared to immediate execution?

That's the problem, it won't.
internal static string GetAvailabilityGroupFromConnection(SPDatabase db)
if (!UsesAvailabilityConnection(db))
return null;
string dataSource = db.ConnectionString.DataSource;
string cmdText = string.Format(CultureInfo.InvariantCulture, "\r\n SELECT name FROM sys.availability_groups g\r\n JOIN sys.availability_group_listeners l ON g.group_id = l.group_id\r\n WHERE dns_name = '{0}'\r\n ", new object[] { dataSource });
string str3 = null;
using (SqlCommand command = new SqlCommand(cmdText))
ULS.SendTraceTag(0x302263, ULSCat.msoulscat_WSS_Database, ULSTraceLevel.Medium, "Looking up availability group for listener: {0}", new object[] { cmdText });
using (SqlDataReader reader = GetSessionFromDatabase(db).ExecuteReader(command))
while (reader.Read())
str3 = reader.GetString(0);
ULS.SendTraceTag(0x302280, ULSCat.msoulscat_WSS_Database, ULSTraceLevel.Medium, "Found group {0} for listener {1}", new object[] { str3, dataSource });
This piece of code looks at the SPDatabase's connection string (the SQL alias, for example) and executes a T-SQL query looking for that name within SQL Server. Since the SQL alias does not exist within the SQL Server's configuration, it will return a null
value, and you won't be able to set up the AG config using the AG cmdlets.
Also, since mobility exists by the very nature of using an AG Listener, using a SQL Alias is redundant.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • How does the sync process work?

    Hello all,
    I want to know what will happen if both the local and network homes have been modified for a period of two weeks and then the user chooses to synch? Will the sync process ask which 'home' is the most recent or will it replace older files with newer files?
    How does the sync process manage the task of keeping both sides the same?
    Thanks,
    -Andrew G

    If a file exists on both the local and the network directory it will pop up with a conflict and ask how to resolve it.
    If the file is only on the local machine and in a place you have not excluded from syncing it just syncs.
    If the file has been previously synced but there has been no change to the file since last sync I think it just rewrites the file to the server homedir... (Don't quote me on this one... it might not even bother with it, I'm not sure how smart the sync service is)
    You can set automatic conflict resolution within WGM but as far as I know you have to do it by clicking on preferences then switching to the details tab, then click on Home Sync....com.apple.homesync. Click on the Always drop down and click the add new key button then change the new key to either Login or Logout Non-Preference sync conflict resolution and or Background sync conflict resolution and decide if MobileHome or NetworkHome Wins...or copy. In most cases I would think that you would want the MobileHome to Win.. of course there is always potential for someone to make a huge mistake on a file and pray its still fine on the server but... your call.

  • How does the GR processing time affect the scheduling of the process order & the latest start date in the operation.

    Hi
    Can anyone explain  how does the GR processing time affect the scheduling of the process order & the latest start date in the operation overview.

    Hi
    GR processing time means number of workdays required after receiving the material in storage.
    Check this link:GR Processing time
    Regards,
    Anupam Sharma

  • How does the repair process work

    how does the repair process work, currently broke my iPhone, water damage, and still have a warranty until july 30.

    http://www.apple.com/support/iphone/repair/other/

  • How does the communication will happened between SOA-Composer(where DVM file resides) and EM console (Where composite resides)?

    How does the communication will happened between SOA-Composer(where DVM file resides) and EM console (Where composite resides)?
    And also i would like to how A business rule(Which will be resides in SOA_COMPOSER) will be communicated to Soa Composite(Resides in EM Console)?

    whenever you deploy a new composite it gets stored in the MDS data
    store, i.e. the metadata service and not the dehydration store (the
    SOAINFRA database).
    Composer works directly with the MDS schema.
    EM reads the same schema (MDS) to see what composite are deployed on the
    partitions.
    All runtime instance data is stored in the SOAINFRA database.
    Hope this helps,
    Anatoli

  • How does the boot-process assemble the raid?

    Hi everyone,
    I just switched from Debian and CentOS to archlinux on all my machines and I really love it so far!
    Now I feel that I can really customize my OS the way I want.
    But I was thinking about one thing that I don't really understand yet, and of what I have
    read on this forum I'm certain that someone knows the answer.
    On my primary machine I have an mdadm-raid.
    And the partitions looks like this:
    /dev/sda                          /dev/sdb
    Disk1                              Disk2
    /dev/sda1                        /dev/sdb1
    100mb ext2 (boot)            100mb empty (I did empty partition so that the disks looks the same.)
    /dev/sda2  <- RAID0 ->   /dev/sdb2            /dev/md0
    2500MB ext3 (root)          2500MB ext3
    /dev/sda3  <- RAID0 ->   /dev/sdb3            /dev/md1
    2250MB (swap)                2250MB swap
    /dev/sda4  <- RAID0 ->   /dev/sdb4            /dev/md2
    245150MB ext3 (home)    245150MB ext3
    So there was a little tricky to get it installed and assemble the raid at boot, but now it's working like a dream again.
    And what I did what except loading mdadm-hook of course I used the kernel parameter: ro root=/dev/md0 md=0,/dev/sda2,/dev/sdb2 a.s.o. to
    tell the initrd how to assemble the raid at boot.
    But before archlinux i've done this setup in the installer, and after I've installed for example Debian, the system boots correctly and
    assemble the raid at boot, but without the kernel-parameters, how does the system know how the raid should be assembled?
    I've tried to include the mdadm.conf but with no success, does the initrd contain the raid information is some way?

    To obtain that file, run:
    abs
    This will provide the abs tree of core,extra, and community in /var/abs.
    Then you can get the file:
    # vim: set ft=sh:
    run_hook ()
        input="$(cat /proc/cmdline)"
        mdconfig="/etc/mdadm.conf"
        # for partitionable raid, we need to load md_mod first!
        modprobe md_mod 2>/dev/null
        # if no config file is present create one from command line parameters
        if ! [ -e $mdconfig ]; then
            #Create initial mdadm.conf
            # scan all devices in /proc/partitions
            echo DEVICE partitions > $mdconfig
            for i in $input; do
            case $i in
                    # raid
                    md=[0-9]*,/*)
                        device="$(/bin/replace -s,/ "$i" "=" "")"
                        array="$(/bin/replace -s/ "$device" "," " devices=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                    # partitionable raid
                    md=d[0-9]*,/*)
                        device="$(/bin/replace -s=d "$i" "md=" "md_")"
                        array="$(/bin/replace -s/ "$device" "," " devices=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                    # raid UUID
                    md=[0-9]*,[0-9,a-z]*)
                        device="$(/bin/replace -s,/ "$i" "=" "")"
                        array="$(/bin/replace -s/ "$device" "," " uuid=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                    # partitionable raid UUID
                    md=d[0-9]*,[0-9,a-z]*)
                        device="$(/bin/replace -s=d "$i" "md=" "md_")"
                        array="$(/bin/replace -s/ "$device" "," " uuid=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                esac
            done
        else
            RAID_FOUND=1
        fi
        if [ "$RAID_FOUND" = 1 ]; then
            # assemble everything
            /sbin/mdassemble.static
        fi
    The above is what is provided in mine............

  • How does the login process works with a bind to AD?

    Hi there,
    I am trying to bind our mac to our Active Directory. Before doing I'd like to understand well how the login process works. Is there any reference I could look up to?
    For what I've understood until now with an example user "testAccount" and no automount and no AD extension and the ADplugin set as:
    a) if mobile is set, then a /Users/testAccount is created and if UNC is set then a smbHome is mounted "on desktop". If UNC is not set, do nothing more
    b) if force is set, then a /Users/testAccount is created and if UNC is set then a smbHome is mounted "on desktop". If UNC is not set, do nothing more
    c) if force is NOT set:
    --c1) if UNC is not set and cannot map NFSHomedirectory at all, then login the user with such a temporary home
    --c2) if UNC is set mount SMBhome and use it as mounted home folder (NFSHomeDirectory-->SMBhome "/Network/Servers/my.server.com/users/testAccount")
    --c3) if UNC is not set then retrieve the homeDirectory-NIS's attribute in AD (NFSHomeDirectory--> "/homes/testAccount") and create /homes/testAccount
    my doubt now is point c2) after I login in with a "#mount" I get:
    trigger on /Network/Servers/my.server.com/users (autofs, automounted)
    //[email protected]/users on /Network/Servers/my.server.com/users (smbfs, nodev, nosuid, automounted, mounted by testaccount)
    but my SMBhome is not correctly mounted on remote server (but the Library folder and MCX files are created!) and I get home errors because the system is looking for "/homes/testAccount", which I don't know where it is coming out from given that a
    #dscl /Active\ Directory/my.server.com -read /Users/testaccount |grep homes gives only out dsAttrTypeNative:unixHomeDirectory: /homes/testAccount
    thanks,
    a.

    Is there any reference I could look up to?
    http://www.macwindows.com

  • How does the purchase process of SAP C4C work?

    Hello,
    we need some information about the purchase process of the SAP C4C System.
    Now we have access to our own C4C System and we are trying to configure it.  But what are the next steps? How do we get the productive system? How does SAP transfer the test data to the productive system? where do we get our development system? ....
    Does anybody have any experience with the first C4C implementation?
    The information we get from SAP confused even more than helped.
    Thanks and regards
    Suita

    HI Suita
    If you are still looking for help, we specialise in Cloud for Customer implementations and have been through this process. You can contact me at [email protected]
    There are a number of assets available on the service marketplace. While you may need advice, I do not believe that consulting services are a mandatory part of the C4C setup, having said that SAP ideally will have discussed some options during the software selection process.
    Are you implementing SAP C4C standalone or with integration to any other system?
    Regards
    James.

  • How does the Login process work?

    Hello,
    How exactly does the default 'Login' process on the login page work?
    When the following code is executed:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P1_USERNAME,
    P_PASSWORD => :P1_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':2'
    Does the execution continue to the code below or is it halted and the user is redirected to the flow page?
    I need to set the username and the user id (from SQL query WHERE username = :P1_USERNAME) ONLY IF the authentication has been successful, otherwise NULL them. What's the best way to do this?
    After the wwv_flow_custom_auth_std.login(...), how can I check if the user has been authenticated?
    Thanks :)
    Pavel

    hi pavel--
    wwv_flow_custom_auth_std.login sets :APP_USER and then redirects to p_flow_page upon successful login. when you say, "I need to set the username and the user id (from SQL query WHERE username = :P1_USERNAME) *ONLY IF* the authentication has been successful, otherwise NULL them" i'm guessing that you really want your user to not be logged in upon unsuccessful credential verification. if so, that would already be handled by wwv_flow_custom_auth_std. a good way to see this in action is to examine how the Sample Application handles authentication. the login page 101 does call wwv_flow_custom_auth_std with the supplied credentials, but if you don't pass the Authentication Function check specified in the Sample Application's custom authentication scheme, the session is still invalid, and the user is still on page 101. i'm pretty sure that's the behavior you want, but please clarify if not.
    thanks,
    raj

  • How does the Approvals process work in Oracle Hyperion Planning v 11.1.2

    Hi,
    I have recently upgraded to Oracle Hyperion Planning v 11.1.2 and the way that the application handles budget / Forecast approvals appears to have changed.
    Is anyone able to direct me to a user manual or provide me with some guidance on how to set up the approvals process in the upgrade Oracle Hyperion Planning v 11.1.2.
    Currently I have the approvals hierarchy set to allow all approvals and have the approvals template set to bottom up, I have not put any values on the hierarchy and sub hierarchy tab as I want to drive approvals by entity only. I have set the correct Scenario and assigned the owners/approvers however when I start the approvals process the current owner is let sitting at no owner? Should this not pull though the owner set up under assign owners.
    When I log in as the owner of the planning unit I do get the option to promote the unit as set out in the assign owner hierarchy however when I attempt to do this I get the following error:
    Failed: Unauthorized New Owner
    I am relatively new to planning so any help you can provide me with would be much appreciated.
    Edited by: Bestie 279 on Aug 9, 2011 4:16 PM

    You might want to have a look at "Hyperion Planning Process Management Features explained By Example [Document 1226783.1]" in MOS.
    HTH-
    Jasmine.

  • HT1386 How does the sync process work on the latest version of iTunes?

    I used to be able to drag songs I wanted to sync to an iPod touch.  Now I can't figure out how to do it in the latest update.

    kdavis hi,
    From the main iTunes window, select 'music' from the drop down menu at the top left side. Then, simply drag and drop your music files onto the window. iTunes should then bring in the tunes which will be loaded onto you iPod when you next sync (as long as you have 'Entire music library' selected in the iTunes iPod tab.

  • EDI-How does the Inbound File process work?

    Hi
    How does the Inbound process work in EDI
    When a file is put in the Inbound EDI directory of the App server how does the system start the process?
    Which programs are called/triggered?
    How does the Inbound process work?
    Please be brief and precise.

    Hi
    Check the links
    Check these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    Please check this PDF documents for ALE and IDoc.
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    Reward points if useful
    Regards
    Anji

  • How does the VCA-DCV online exam work? What happens if I got disconnected?

    Hello guys,
    How does the online exam work?
    What happens if I my internet got disconnected in the middle of the exam? Does it pause / can I resume it later? Or is it gone forever and I am considered as "failed" ?

    You can take the exam from any location that has the required internet access, and from any system that meets the system requirements:
    VMware Certification
    You could email [email protected] if you have further concerns.

  • How the excise  process  happen in SAP.

    Hi All !
    Please tell me ,how to find out diffrence amount for given problem:-
    Opening Balances of Excise duty payable accounts as on 31.3.2009  are coming in to picture  in T- Code FAGLB03 is showing  a  credit balance Which actually should show zero balances. In same way cenvat  Credit balances both in RG23 A part II and RG 23 C part II   are also not matching.
    for FAGLB03 ,some entry is passed with sa document type with FB50.
    And explain me  how the excise  process  happen in SAP.
    Thanks and Regards
    Archana Sharma

    Hi!
    Please give the details of process and tell me how I will update in given table J_2IACCBAL.
    Thanks & Regards
    Archana Sharma

  • How the excise  process  happen in SAP. FAGLB03 is showing  a  credit ba.

    Hi All !
    Please tell me ,how to find out diffrence amount for given problem:-
    Opening Balances of Excise duty payable accounts as on 31.3.2009  are coming in to picture  in T- Code FAGLB03 is showing  a  credit balance Which actually should show zero balances. In same way cenvat  Credit balances both in RG23 A part II and RG 23 C part II   are also not matching.
    for FAGLB03 ,some entry is passed with sa document type with FB50.
    And explain me  how the excise  process  happen in SAP.
    Thanks and Regards
    Archana Sharma

    Hi,
    Reverse FB50 Document & post through J1IH.
    Ramesh

Maybe you are looking for