Nested perform on commit error

hi all,happy new year 2006
in my custom transaction upon save,
iam calling a Func module in update task passing all the internal tables which contain the update data.
inside this FM iam doing table updates without commit and also calling change document funcs ( open,single/multiple case/close) to update the CDHDR and CDPOS tables.
iam also calling BAPI_SALESORDER_CHANGE inside this update task FM. after the call iam calling BAPI_TRANSACTION_COMMIT.
Iam getting an update task termination message saying that there are nested perform on commit statements happenening in some some SAP prog call and therefore it causes a dump. i have seen that the fm 'CHANGEDOCUMENT_CLOSE' calls a 'perform on commit'.
but not able to figure out where exactly is the problem.
any suggestions.
thanks a lot.

Hi KP!
I'm sure you can't call BAPI_TRANSACTION_COMMIT in an update task - there a commit is a forbidden statement.
I had a short look at CHANGEDOCUMENT_CLOSE:
*    don't call this form on COMMIT when you are already in a form on
*    commit
    IF sy-oncom = 'P'.
      PERFORM swe_event_create_changedocumnt.
    ELSE.
      PERFORM swe_event_create_changedocumnt ON COMMIT.
    ENDIF.
At least here (and on release 640, ERP 5.0) a different coding for update tasks is executed.
Do you have a shortdump, where you can check exact place of the nested call? Or is this a generation error -> again try to check exact place.
Regards,
Christian

Similar Messages

  • Nested perform on commit

    How do I figure out where the program is being commited at?
    Technical information about the message:
    Message class....... 00
    Number.............. 081
    Variable 1.......... "NESTED_PERFORM_ON_COMMIT"
    Variable 2.......... "caller: SAPLCRM_BUPA_CRMD_DIALOG"
    Variable 3.......... "program: SAPLCRM_BUPA_CRMD_DIALOG"
    Variable 4.......... "form: BAPI_SAVE_BUFFER"

    I don't have access to CRM System, but my guess is the abort happens somewhere within CALL METHOD lv_global_memory->save_to_database chain. I'd try to do the following:
    1) go to SE91 and do a where used list for message number 081 of message class 00; you should find two uses in program SAPMSSY0; it's the first one, in subroutine %_order_form_level, that is of interest;
    2) set the break-point on the message x081(00) with mpar1 mpar2 mpar3 mpar4 statement or just before it (it's the line number 89 of program SAPMSSY0 in my system);
    3) enable System Debugging and Update Debugging via Debugger menu Settings->Change Debugger Profile/Settings
    4) run the logic that triggers shortdump; debugger should open just before shortdump and hopefully you should be able to figure out the call chain that leads to this error
    What's MSA? Edit in: Ok, I found what's MSA Does that mean you will not be able to debug what's happening in CRM..? Then I'm out of ideas, unfortunately...
    cheers,
    Janis

  • My Time Capsule has stopped backing up.  I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message: "The backup was not performed because an error occurred while copying files to the backup disk.

    My Time Capsule has stopped backing up.
    I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message:
    "The backup was not performed because an error occurred while copying files to the backup disk."
    I have gone into Mac Help and followed this down to stage 4:
    under shared it lists my time capsule and my husband's iMac - both use the time machine but we have switched his off temporarily.  Clicking on my Time capsule I get "Connected" and "Sharepoint" - I didn't have to enter connect or password
    I don't understand stage 5: how and where do I select the disk or volume that contains Time Machine backups ?  How do I know which it is? My disk utility lists 160.04 TOSHIBA MK... with sub-heading Macintosh HD.  It also lists (with a "CD" icon) HL-DT-ST DVDRW GS22N
    Under stage 6, how and where do I Locate your backup ? I try dragging my Time capsule from Finder to the Disk Utility side panel but it won't go.  What is my computer's name?
    Please someone help!  I'm completely stumped.
    Thanks,
    Maggie
    Mac Help says:
    If you back up to a Time Capsule or network disk:
    Open the Time Machine pane of System Preferences, and slide the switch to Off.
    Open Time Machine preferences
    Open Disk Utility, which is in the Utilities folder in the Applications folder. 
    Open Disk Utility
    Make sure the Time Capsule or network disk is turned on and available. 
    Open a Finder window, select your Time Capsule or network disk in the Shared section of the sidebar, and click Connect. If necessary, enter your user name and password. 
    On the Time Capsule or network disk, select the disk or volume that contains Time Machine backups. Depending on how your Time Capsule is set up, there may be one or more disks or volumes. 
    Locate your backup, and drag it to the Disk Utility sidebar.You can identify your backup by looking for your computer’s name in the backup’s filename.

    Hello,
    Thanks to the great Pondini...
    http://pondini.org/TM/C3.html

  • "Comm Error" message when connecting to car stereo

    When connecting my 80G IPod to the port in my car, the IPod screen rolls horizontally, then says "OK to disconnect", and the stereo displays the "Comm Error" message. I was able to connect to the stereo before but don't know what happened to cause this. Re-setting the IPod did not resolve the problem. Has anyone else seen this? Please help!
    5th Generation IPod   Windows XP  

    I’ve got a 30gb ipod doing the same thing. I know it’s not the car as my friends nano works fine on it. Have you have any success?

  • Time Machine Error: The backup was not performed because an error occurred

    G'day (from Queensland, Australia)
    Not for the first time Time Machine has broken down - originally in September 08 (I just can't recall how I fixed it!!).
    Now it has failed after 14 months of faultless performance.
    There seems to be little help available, but searching for solutions finds plenty of problems.
    I get the message "The backup was not performed because an error occurred while copying to the backup disk.
    The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair you backup disk."
    (I have a Time Capsule as my backup disk)
    Disk Utility runs and finds-
    Verifying volume “Backup of xxxxxx’s iMac”
    2010-01-25 12:16:09 +1000: Starting verification tool:
    2010-01-25 12:49:21 +1000: The volume Backup of xxxxxx’s iMac appears to be OK.
    2010-01-25 12:49:21 +1000: Repair tool completed:
    So I search and find "Fix for broken Time Machine backups under Snow Leopard"
    (http://www.andrewgrant.org/2009/09/22/fix-for-broken-time-machine-backups-under- snow-leopard.html) - downgrading to 7.4.1 of the Airport Extreme / Time Capsule firmware.
    But still have the same Time Machine error!
    On to http://forums.macosxhints.com/showthread.php?t=103919&highlight=TimeMachineError
    and try-
    "... suggesting would be something like renaming the existing TimeMachine file on your backup disk - e.g. add a date to the end of it.
    And then go onto Time Machine preferences and set it up as if it were the first time you used it. (Renaming the file on the backup disk should make Time Machine think that you are starting fresh.)"
    So, using Finder, I opened my Time Capsule and renamed "xxxxxx’s iMac_00224135e6fb.sparsebundle" as "091222xxxxxx’s iMac_00224135e6fb.sparsebundle091222"
    And finally, this worked - I have my backups to 22 December and a complete backup as at today and hopefully for at least another 14 months!

    pjh42 wrote:
    G'day (from Queensland, Australia)
    Not for the first time Time Machine has broken down - originally in September 08 (I just can't recall how I fixed it!!).
    Now it has failed after 14 months of faultless performance.
    There seems to be little help available, but searching for solutions finds plenty of problems.
    On the contrary. At the top of this forum are four *User Contributed Tips,* including one on Troubleshooting that would have saved you a great deal of time.

  • The backup was not performed because an error occurred while copying files

    One Time Capsule, Two MacBook's, OS10.6.6
    One MacBook can backup no problem, The other cannot backup says: the backup was not performed because an error occurred while copying files to the backup disk.
    Using a Time Machine Buddy widget gives:
    Starting standard backup
    Attempting to mount network destination using URL: afp://Rachel%[email protected]/Data
    Mounted network destination using URL: afp://Rachel%[email protected]/Data
    QUICKCHECK ONLY; FILESYSTEM CLEAN
    Disk image /Volumes/Data/Rachel Feuchtwang’s MacBook.sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    No pre-backup thinning needed: 4.70 GB requested (including padding), 721.52 GB available
    Indexing a file failed. Returned 200 for: /Applications/Dashboard.app, /Volumes/Time Machine Backups/Backups.backupdb/Rachel Feuchtwang’s MacBook/2011-01-12-115852.inProgress/F82EB140-616F-4213-9B4A-072C2C98B556/MAC/A pplications/Dashboard.app
    Aborting backup because indexing a file failed.
    Stopping backup.
    Copied 5 files (84 bytes) from volume MAC.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image.
    Ejected Time Machine network volume.
    Who would be so kind to point me in the direction to make thsi work again?
    Thanks! Hugo

    This could very well have to do with ACLs.
    I bumped into the same problem:
    5/8/11 10:43:22 PM          com.apple.backupd[7126]          Error: (-41) SrcErr:NO Copying /Users/SA/Public/Drop Box/HandBrake.app/Contents/Frameworks/Sparkle.framework/Versions/A/ Resources/de.lproj/SUAutomaticUpdateAlert.nib/classes.nib to /Volumes/Local Backup/Backups.backupdb/Server/2011-05-08-221524.inProgress/88ACE716-0660-44C8- A128-CF01046FC2F8/Macintosh HD/Users/SA/Public/Drop Box/HandBrake.app/Contents/Frameworks/Sparkle.framework/Versions/A/ Resources/de.lproj/SUAutomaticUpdateAlert.nib
    Using DD or CCC is no option for me, I don't want downtime and I want incremental backups. So I started to investigate.
    I repartitioned my external Time Machine drive, did the backup again. It didn't work. Then I blocked the culprit file mentioned in the logs from being backed up with TM. That helped, only to find that a bit later it found another file with issues.
    So i looked at the files an found they had ACLs on them that somehow prevented them from being copied.
    SOLUTION:
    remove the ACL from the file.
    If you want to remove all ACLs in a directory, use Terminal and navigate to that directory. Then issue this command:
    sudo echo | sudo chmod -R -E ./*
    If you would like to remove ACLs from a single file or package (e.g. an application), issue this:
    sudo echo | sudo chmod -R -E <nameoffile>
    You might have to this several times since there might be multiple files affected. Unlike previous solutions, this one does not require you to delete the file.
    I got the command to remove ACLs from http://osxadmin.blogspot.com/2008/01/chmod-acl-removal.html

  • The backup was not performed because an error occured while copying files to the backup disk

    I continually see the error message "The backup was not performed because an error occured while copying files to the backup disk" when my time capsule attempts to backup. I have been receiving this message since 14/08/13. I have attempted to locate the file which is preventing the back up and I have not been able to locate it. Any help will be appreciated
    Thanks

    Do a verify on the local disk and on the TC..
    See the info here.
    A5 http://pondini.org/TM/Troubleshooting.html

  • Using Time Machine to back up two systems, OS10.8.3, and OS 10.6.8. Sometimes it backs them up, sometimes I receive this: Backup was not performed because an error occurred while copying files to the backup disc. The problem may be temporary...

    Using Time Machine to back up two systems, OS10.8.3, and OS 10.6.8. Sometimes it backs them up, sometimes I receive this: Backup was not performed because an error occurred while copying files to the backup disc. The problem may be temporary...

    Hello,
    Thanks to the great Pondini...
    http://pondini.org/TM/C3.html

  • Re: perform on commit

    Hello Friends,
    I want to write perform on commit. 
    but can anyone tell me what is the syntax whils writing it as perform?
    and while writing form and endform.
    it's urgent , plz.

    In your BADI submit a function module [IN BACKGROUND TASK|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=inBACKGROUNDTASK&adv=false&sortby=cm_rnd_rankvalue] to update the second infotype via FM [HR_INFOTYPE_OPERATION|https://www.sdn.sap.com/irj/scn/advancedsearch?query=hr_infotype_operation&cat=sdn_all] (create a RFC enabled Z-FM that call the standard FM)
    Regards

  • BI ABAP Issue regarding perform on commit statement

    Hi,
    I have a requirement like below.
    I have a test to see if SAP issues a COMMIT WORK at the end of the datapacket, and allows update tasks to be executed .and check whether the second datapacket succeed in getting the lock, or fail because it has not been dequeued.
    For this i have written code in the end routine of DTP like below.
    1. Called enqueue fm
    2. Created a custom table and taken loop at result_package and get the values to the internal table.
    3. I have created an updated function module to call perform on commit inside the function module. Since we canu2019t directly call the commit work in the end routine of DTP. And in the form endform i am updating the custom table from internal table.
    4. Called dequeued fm.
    But the issue is i am notable to bedug the code (perform <form name> on commit) (cursor is not going to the inside the perform) inside the function module even though i enabled the update task in debugger setting and used F9 to set the FM for debug.
    Can any body help me on this
    Thanks,
    Nagendra

    did you try by setting a manual break-point inside the code and then going step by step (by pressing F5) ?

  • Issue regarding perform on commit statement

    Hi,
    I have a requirement like below.
    I have a test to see if SAP issues a COMMIT WORK at the end of the datapacket, and allows update tasks to be executed .and check whether the second datapacket succeed in getting the lock, or fail because it has not been dequeued.
    For this i have written code in the end routine of DTP like below.
    1. Called enqueue fm
    2. Created a custom table and taken loop at result_package and get the values to the internal table.
    3. I have created an updated function module to call perform on commit inside the function module. Since we canu2019t directly call the commit work in the end routine of DTP. And in the form endform i am updating the custom table from internal table.
    4. Called dequeued fm.
    But the issue is i am notable to bedug the code (perform <form name> on commit)  (cursor is not going to the inside the perform) inside the  function module even though i enabled the update task in debugger setting and used F9 to set the FM for debug.
    Can any body help me on this
    Thanks,
    Nagendra

    did you try by setting a manual break-point inside the code and then going step by step (by pressing F5) ?

  • Perform ON COMMIT doesn't work (Try it)

    Has anyone tried a PERFORM ON COMMIT within a BADI? It doesn't work and i don't know why.
    I am working with the HR Module, and i have a BADI, which is fired when the user hits the 'SAVE' button (PA30 Transaction).. when this happens, i execute a PERFORM ON COMMIT and the subroutine is never called...
    Does anyone know anything about this?
    Regards

    In your BADI submit a function module [IN BACKGROUND TASK|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=inBACKGROUNDTASK&adv=false&sortby=cm_rnd_rankvalue] to update the second infotype via FM [HR_INFOTYPE_OPERATION|https://www.sdn.sap.com/irj/scn/advancedsearch?query=hr_infotype_operation&cat=sdn_all] (create a RFC enabled Z-FM that call the standard FM)
    Regards

  • Epson Artisan 810 comm error

    When scanning with the 810 from its control panel for "scan to email",as soon as I push on the scan to email via USB on the panel it gives a comm error and says to check if computer is connected.
    This is the second 810 to do the same thing. Unistalled/reinstalled drivers, no luck. The scan from the computer to the scanner works OK without error but want to use the control panel for fast and easy scan to emails.
    Tried different usb cable, same results.
    Really am stumped. Epson tech blames IMAC software, Apple support says its in the all in one pntr/scanner. Epson says they have not heard of this problem before.
    Am using new Snow Leopard on 1 year old computer

    I have the same problem. Everything works fine, except that from the printer console, the only option for scan to Email/PDF/PC only gives the option for USB Connection (which is inconvenient for me to use). My MacBook Pro does not show up in the list like the photos in the instructions.
    I tried installing "Drivers and Utilities Combo Package - Network" dated 1/04/10, from Epson's site, file epson13616.dmg, to no avail.
    The Artisan 810 is connected by ethernet to my Time Capsule (internal network) and the MBP is connected by wireless to the same network. It will scan fine from the application on the Mac, but not from the unit's console. Really disappointing, since instead of putting something on the printer, and punching a couple buttons, you have to put it on there, go to the computer (on the other side of the room for me), pull up the software, scan, then go back to the printer to remove the item (or flip the page!)

  • Performance counter updating error

    Hello,
    We are getting flooded with alerts event code 106. Is there a problem with the counters. We also get these on our mailbox server also. The servers are exchange 2013 on prem. The we have 2 CAS and 4 mailbox servers. 
    Application:MSExchange Common:106
    Performance counter updating error. Counter name is Client-side Calls, category name is MSExchange Active Manager Client. Option
    Performance counter
    updating error. Counter name is Unique servers queried, category name is MSExchange Active Manager Client. Optional code: 3. Exception: The exception thrown is : System.InvalidOperationException: The requested Performance Counter is no
    Performance counter updating error. Counter name is Client-side Calls, category name is MSExchange Active Manager Client. Optional code: 2. Exception: The exception thrown is : System.InvalidOperationException:
    The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. at System.Diagnostics.PerformanceCounter.InitializeImpl() at System.Diagnostics.PerformanceCounter.get_RawValue() at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.get_RawValue()
    Last worker process info : System.ArgumentException: Process with an Id of 1832 is not running. at System.Diagnostics.Process.GetProcessById(Int32 processId) at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.GetLastWorkerProcessInfo() Processes running
    while Performance counter failed to update: 7020 splunk-perfmon 588 services 976 svchost 384 TrustedInstaller 1368 svchost 6620 rdpclip 1168 rundll32 1560 inetinfo 5300 XenDpriv 1160 svchost 2144 XenGuestAgent 2340 Microsoft.Exchange.Directory.TopologyService
    8444 conhost 956 LogonUI 2528 w3wp 2724 WmiPrvSE 6884 explorer 5472 nvwmi64 544 winlogon 3104 w3wp 772 nvvsvc 3292 MSExchangeFrontendTransport 2108 WMSvc 7228 w3wp 332 smss 1312 spoolsv 3872 rundll32 4856 WmiApSrv 6704 w3wp 5444 winlogon 3864 svchost 1104
    VSSVC 6404 ccSvcHst 10552 vds 504 csrss 5032 Smc 6804 dwm 696 svchost 496 wininit 4632 rundll32 888 svchost 6600 w3wp 492 w3wp 2264 Ec2Config 1672 MSExchangeHMHost 2064 svchost 9512 splunkd 7972 w3wp 1860 SMSvcHost 872 svchost 5792 csrss 5592 MSExchangeHMWorker
    1452 ruby 1840 svchost 6764 w3wp 1048 svchost 456 csrss 7152 w3wp 1388 bedbg 3996 Microsoft.Exchange.UM.CallRouter 4380 splunk-wmi 2812 WmiPrvSE 2024 ccSvcHst 3792 Microsoft.Exchange.ServiceHost 600 lsass 796 nvwmi64 5756 w3wp 1580 msdtc 2796 svchost 428 svchost
    820 nvSCPAPISvr 1016 svchost 1996 svchost 1600 Microsoft.Exchange.Diagnostics.Service 4356 nvxdsync 4352 taskeng 608 lsm 4936 svchost 2964 beremote 6312 taskhost 1976 svchost 4 System 10640 conhost 0 Idle Performance Counters Layout information: FileMappingNotFoundException
    for category MSExchange Active Manager Client : Microsoft.Exchange.Diagnostics.FileMappingNotFoundException: Cound not open File mapping for name Global\netfxcustomperfcounters.1.0msexchange active manager client. Error Details: 2 at Microsoft.Exchange.Diagnostics.FileMapping.OpenFileMapping(String
    name, Boolean writable) at Microsoft.Exchange.Diagnostics.PerformanceCounterMemoryMappedFile.Initialize(String fileMappingName, Boolean writable) at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.GetAllInstancesLayout(String categoryName)

    Hi,
    Please try the following steps:
    1. Stop all the exchange-related services on the server
    2. Open the command prompt by “Run as an Administrator”
    3. Go to "C:\Program files\Microsoft\Exchange Server\V15\Setup\Perf"
    4. To Unload Counter
    ===============
    C:\Program files\Microsoft\Exchange Server\V15\Setup\Perf>unlodctr "MSExchaneg Active Manager Client"
    5. To Load Counter
    =============
    C:\Program files\Microsoft\Exchange Server\V15\Setup\Perf>lodctr ActiveManagerClientPerfmon.ini
    Then check whether the issue persists. The solution above is referred to the following similar thread:
    https://social.technet.microsoft.com/Forums/exchange/en-US/58692b89-d83e-4f3a-b991-9bb38b8ccad0/performance-counters-update-errors-exchange-active-manager-client-ones?forum=exchange2010
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • Perform on commit

    Hi,
    can you show me an example of "perform on commit" with variables.

    Hi,
    PERFORM ON COMMIT routines are not executed in the dialog module.
    You must ensure that any subroutines called using ON COMMIT can be delayed until the next COMMIT WORK in the calling program. Remember that the global data of the dialog module is destroyed along with the internal session when control returns to the calling program. Consequently, subroutines called using PERFORM ON COMMIT must not use this global data.
    The statement PERFORM ON COMMIT calls a subroutine in the dialog work process. However, it is not executed until the system reaches the next COMMIT WORK statement. Here, as well, the ABAP statement COMMIT WORK defines the end of the SAP LUW, since all statements in a subroutine called with PERFORM ON COMMIT that make database changes are executed in the
    database LUW of the corresponding dialog step.
    The advantage of this bundling technique against CALL FUNCTION... IN UPDATE TASK is better performance, since the update data does not have to be written into an extra table. The disadvantage, however, is that you cannot pass parameters in a PERFORM... ON COMMIT statement. Data is passed using global variables and ABAP memory. There is a considerable danger of data inconsistency when you use this method to pass data.
    You can also put the CALL FUNCTION IN UPDATE TASK into a subroutine and call the subroutine with:
    <b>PERFORM SUBROUT ON COMMIT.</b>
    If you choose this method, the subroutine is executed at the commit. Thus the request to run the function in the update task is also logged during commit processing. As a result, the parameter values logged with the request are those current at the time of the commit.
    Ex.
    a = 1.
    PERFORM F ON COMMIT.
    a = 2.
    PERFORM F ON COMMIT.
    a = 3.
    COMMIT WORK.
    FORM f.
    CALL FUNCTION 'UPD_FM' IN UPDATE TASK EXPORTING PAR = A.
    ENDFORM.
    In this example, the function module UPD_FM is carried out with the value 3 in PAR. The update task executes the function module only once, despite the two PERFORM ON COMMIT statements. This is because a given function module, logged with the same parameter values, can never be executed more than once in the update task. The subroutine itself, containing the function module call, may not have parameters.
    Regards,
    Bhaskar

Maybe you are looking for

  • Problem with JNDI and JSP in Tomcat

    Hi, Basically, what I've done is to use the Tomcat administration web application to create the DataSource, which looks like it populated the server.xml (see below). I then try to access the testconn.jsp, and am getting that "Name java:comp is not bo

  • Macintosh HD Permission errors

    I am receiving several errors after running "Verify Disc" for Macintosh HD. After verifying disc permissions, I receive the following errors. Group differs on "Library/Printers/InstalledPrinters.plist";should be 80;group is 0 Permissions differ on Li

  • Mountain Lion Golden Master Edition. Do I Need to Purchase?

    Hi. I installed OSX Mountain Lion 10.8 via Golden Master Edition. Do I need to purchase the new version available in the App Store today? Is there any difference? Please advise.

  • What is a good way to load 80 million documents in DocumentDB?

    I am having problems loading a large set of data.  We want to load 80 million documents.  We are trying to do testing for an IOT solution that will end up having a lot of data in it.  I followed the instructions to use a stored procedure to do a bulk

  • Pdf File Adapter

    Hi All, What should be done to send a PDF file by File adpater? Edited by: Alfredo Rivera on Aug 18, 2010 10:35 PM