PeopleCode - commit/rollback subprogram without committing or rolling back the data in the main program

Hi,
Is there a way in PeopleSoft/PeopleCode to do some database transactions in a subprogram (peoplecode function or method in Application Package) and commit that transaction without committing the things that are happening in the main program?
you can compare it with a "autonomous_transaction" ( http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/autonotransaction_pragma.htm ) / ( http://oracle-base.com/articles/misc/autonomous-transactions.php )
or with what is happening in the database when using "GetNextNumberWithGapsCommit"
or what happens when you turn on the logging in PeopleTools > Integration Broker > Integration Setup > Routingyou put a button on a page and write some PeopleCode on the FieldChange
you first do a update statement with sqlexec
you call the webservice (data is inserted in the PSIBLOGDATA and PSIBLOGINFO and committed)
you generate a "Error" in PeopleCode
=> result: the update from the sqlexec is not committed, but the logging data (PSIBLOGDATA and PSIBLOGINFO) IS committed
Kind regards, Bart

Hi,
Please take a look at the javadoc for the following BC4J API:
ApplicationModule.passivateStateForUndo(String, byte[], int)
ApplicationModule.activateStateForUndo(String, int)
These APIs may not however be used to manage a DB savepoint -- they assume that all state is managed by the BC4J transaction.
Hope this helps,
JR

Similar Messages

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    Yes, windows to Mac too.
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    Windows users see tip at: https://discussions.apple.com/message/18879381

  • Regarding reading the data from the files without using Stremas

    hai to all of u...
    here i have a problem where i have to read the data from the files without using any streams.
    please guide me how to do this one,if possible by giving with an example
    Thanks & Regard
    M.Ramakrishna

    Simply put, you can't.
    By why do you need to?

  • While installing Acrobat XI Pro, the installation automatically rolls back and I get the message "The wizard was interrupted before Adobe Acrobat XI Pro (11.0.07) could be completely installed. Your system has not been modified. To complete installation a

    While installing Acrobat XI Pro, the installation automatically rolls back and I get the message "The wizard was interrupted before Adobe Acrobat XI Pro (11.0.07) could be completely installed. Your system has not been modified. To complete installation at another time, please run setup again." How to resolve it.
    How do I modify the system.

    Hi Rgardezi,
    The only reason why Acrobat installation fails and throw this error message is when there are some services running in the background causing the installer not to complete the installation. My take is try the following steps and suggest if you were able to install the products or not :
    1) Navigate to control panel and confirm that there is no line Item that talks about Acrobat. If you see Acrobat XI listed there, please remove them.
    2) Perform a selective Start up using the steps mentioned in this link.
    Please suggest if the above mentioned steps were able to resolve the query for you or not.
    Cheers,
    Kartikay Sharma

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • HT1212 device disabled after entering wrong passcode. Please help me in getting this unlocked  without lossing the data as the data is really important for me

    device disabled after entering wrong passcode.
    Please help me in getting this unlocked  without lossing the data as the data is really important for me

    I think you should call via phone or perhaps take it to a phone store. I suggest taking your id, box packaging and other necessities such as the reciept of the phone being purchased.
    Hope this helped

  • I have a external back-up that my iMac (10.6.8) won't mount. Is there a way to mount without intializing and losing back-up data?

    I have a external back-up that my iMac (10.6.8) won't mount. Is there a way to mount without intializing and losing back-up data? I used time machine to back-up to a Seagate Go-flex hard drive. I get a message from my iMac that says it doesn't recognize this drive and wants to initialize. Hope someone can help.

    Try connecting the drive to a Windows machine, then ejecting.  If it won't eject properly, restart the Windows machine, and try again.  Then try connecting it to the Mac.

  • HT4859 How do I recover from Icloud - I want to "roll back" my phone to the 3rd of October

    How do I recover from Icloud - I want to "roll back" my phone to the 3rd of October

    If your device backs up to iCloud, and that would happen every day assuming "conditions" are right, then you probably only have the latest backup available for a restore. You won't have one taken October 3 available.
    I say "latest backup available" because, although Apple mentions up to 3 backups are available for restore, most users report having only one when they try performing a restore. Certainly expecting going back 5 days would be outside the limits.

  • How to change iCloud accounts on an iPhone without erasing the data from the cloud?

    Long story short I am using my sister's iPhone while mine is being repaired. My data from my iPhone is synced with my own iCloud account. My sister and my dad are on the same iCloud account, except I need to put my data on her phone, except it will not let me change the account on the iPhone without deleting my dad's iCloud account. How can I make this work?

    Deleting the iCloud account on your phone only deletes it from your phone, not from iCloud.  The account an it's data will not be touched, and your father's phone will not be effected by this.  Just go to Settings>iCloud and tap Delete Account, then sign back in using your Account.

  • Is it possible to set up a form with a submit button where the data in the fields gets added to an existing excel file, just like 'collect response' but without connecting to the internet?

    I have a form that I want to use to collect peoples information with a submit button. I am trying to get the data that gets inserted to be added to an existing excel doc when the submit button gets hit, the form then resets and someone else can fill in the same form, hit submit and his data gets added to the existing data in the same excel doc. It is basically the same as the 'collecting response' option but without having to be online. The form is going to be used at a boat-show and I am going to get people to fill it out on an iPad. Does anybody know if this is possible?

    You could connect a bunch of 3700s to each computer and do this . 
    Or...since you're the one who monitors the monthly limit, you could restrict an individual's internet access once you see that you guys are coming too close to the cap. 
    I don't work for Cisco. I'm just here to help.

  • Can administrator roll back a task from the process?

    If I have a process deploy to the weblogic, can the weblogic admin or some account can roll back the process from one task to the previous.
    Thank you for advise.

    Administrators can reassign tasks, but they currently can't (in 11.1.1.4) move process token(s) backward/forward to a different activity (including human tasks). That capability, known as "grab", is planned for an upcoming release.

  • I purchased a new ipad 3.  I have all of my apps synced to the new ipad.  Can I now Erase and Delete all of the data off the old ipad without effecting my account?

    I purchased a new ipad3 and have gotten all of my previously purchase apps loaded.  Can I now perform an erase and delete all data on the old ipad without doing harm to my itunes account and my new pad?

    I just bought the new iPad over the weekend. Restored from the old iPad backup - got everything moved onto the new one gave the old one to my daughter - wiped my 4 email accounts off of the old device and then she proceeded to delete all but about 3 apps from the thing. It had no effect on my new iPad.
    You are good to go!

  • How do you delete game center without deleting the data from the games?

    Our family has 4 apple products all assigned to one apple id.  When my son set up his game center account it link all of your games together.  We have tried many times to delete it without any luck.  Is there any way to delete in with out wiping out his data and purchases from the games?

    Game center can not be deleted.  Move it to a folder for unused apps.

  • HT1848 How do i sync my old iphone to new windows laptop which is authorized without losing all the data on the iphone and having to sync only with what is on the laptop??

    I have a new laptop and i have authorized it with my apple ID but I can't sync my iphone with it because it is currently synced to another computer. Every time I try and sync my music it comes up with the message  ' are you sure you want to remove existing music, films, tv programmes,books and tones from this iphone and sync with this itunes library' which i DONOT want to do! Also on my laptop none of my apps are there so I would assume i would lose all of those from my Iphone as well!
    Please help, looked at other threads and all they suggest is to click on 'transfer purchases' but this is not an option anywhere on itunes..!
    Any help would be greatly appreciated!!

    what does "Make sure you have one contact & one event in the supported applications on your computer(iCal & Address Book on a Mac, Windows Address Book or Outlook if using Windows). These entries can be fake, doesn't matter, the important point is that these programs not be empty" mean???

Maybe you are looking for