Why we cannot commit inside BAPI and what if we call workflow inside BAPI?

hi,
can anyone tell me why we cannot use Commit statement inside BAPI ?
Also what if in my BAPI ,i have triggered my workflow and through that can i commit??
Regards,
Mayank

Hi,
it is a part of the BAPI programming model that BAPIs use a certain transaction model. This transaction model says that one BAPI has to follow the so called ACID (atomar, consistent, isolated, durable) principle. To ensure that a BAPI is atomar you cannot put a commit work just anywhere in mid of a BAPI as this would violate the modell. Furthermore BAPIs shall allow external commit handling that means it has to be possible to include several BAPI calls in one LUW. For this there are BAPIs which are only for committing or rolling back a transaction. For more detailed information you can check as usual the SAP help [click me|http://help.sap.com/saphelp_nw04/helpdata/EN/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm]
If would suppose that when you throw a workflow event it is triggered once the LUW is closed. At least SAP should work that way. But I have to admit in newer ABAP OO developments SAP often just calls the Event raising function module with the option to not wait for the DB commit. Seems there are some problems with the newer LUW concepts / OO and the old workflow technology. This can lead in worst case to events raised for objects which were rolled back later but SAP seems to accept that so it is in my oppinion an acceptable solution.
Hope that helps a bit
Roman

Similar Messages

  • HT5313 I have been trying for weeks to download update 10.7.5 and cannot do so.  I do get a message at the end - "connection reset by peer".  Can anyone shed any light on why I cannot download this update and what the message may mean?  Thanks.

    I have been trying for weeks to download update 10.7.5 and cannot do so.  I do get a message at the end - "connection reset by peer".  Can anyone shed any light on why I cannot download this update and what the message may mean?  Thanks.

    Take a look at this discussion and the ones listed under "more like this" in the right column:
    https://discussions.apple.com/thread/4166820?start=0&tstart=0

  • When i was waiting for an hour for itunes to grading my 2nd generation ipod touch to a 4.2.1 and it was about done, it suddenly said the network connection timed out and that made the upgrading a fail. Why does it do that? and what does it mean?

    When i was waiting for an hour for itunes to grading my 2nd generation ipod touch to a 4.2.1 and it was about done, it suddenly said the network connection timed out and that made the upgrading a fail. Why does it do that? and what does it mean?

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

  • HT1933 WHY DONT APPLE CHARGERS LAST LONG AND WHAT CAN I DO TO MAKE IT LADT LONGER ?

    WHY DONT APPLE CHARGERS LAST LONG AND WHAT CAN I DO TO MAKE IT LADT LONGER ?

    Not sure what the issue is.
    I have never had an issue with a  charger, nor has anyone I know personally.
    All of my old chargers still work just fine.
    If yours are failing within the waranty period, then you should be able to get a free replacement.

  • After installing the new IOS my iphone 4s won't charge and less I restart it. Why is appl this happening? and What is apple doing about this?

    After installing the new IOS my iphone 4s won't charge and less I restart it. Why is appl this happening? and What is apple doing about this?

    The iPhone has a hardware problem - with the battery or something else.
    The iPhone includes a one year warranty. If purchased new in October of 2012, it remains under warranty. Call AppleCare or make an appointment at an Apple Store if there is one nearby.

  • I recently got the iPhone 4S and for some reason the Settings button for the home screen has a little red 1.If anyone know why their is little red number1 and what I have to do it would be fantastic! Thanks :)

    I recently got the iPhone 4S and for some reason the Settings button for the home screen has a little red 1.If anyone know why their is little red number1 and what I have to do it would be fantastic! Thanks :)

    Hallo. I did it this several times and I have the latest update to iOS 6.0.1, but still the red mark 1 at the Settings icon. Do you have any other idea?
    Thank's.

  • Do you know why I cannot access the scheduling and rescheduling features of onetoone? This is over several days.  Either I am not able to fill in the ID/password boxes from an Apple email appointment reminder, or if I go through Apple onetoone via Safari,

    Do you know why I cannot access the scheduling and rescheduling features of onetoone? This is over several days.  Either I am not able to fill in the ID/password boxes from an Apple email appointment reminder, or if I go through Apple onetoone via Safari, I get perpetual spinning after I fill in and click. Help! Thanks.

    Call the store in question:
    http://www.apple.com/retail/
    Extension 5 in the stores in my area has usually led me to getting ahold of a real person.  It may differ by store.

  • I have downloaded a tune and it has com as an MP4 file i wanted MP3 why has it come as MP4 and what can i do it is no good to me as an MP4 file

    i have downloaded a tune and it has com as an MP4 file i wanted MP3 why has it come as MP4 and what can i do it is no good to me as an MP4 file

    Tracks sold by the iTunes Store have been AAC since the Store first opened. They've never sold tracks in MP3 format. You can convert the tracks, though, if you need them as MP3. See:
    http://support.apple.com/kb/HT1550
    Regards.

  • Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called?

    Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called? It's just annoying that I have to reach high for it!

    Menu bar. Are you in Full Screen Mode?
    OS X Mavericks: Take apps full screen
    In all apps?

  • Can i get app for iCloud for my android phone?and what is it called?

    can i get app for iCloud for my android phone?and what is it called?

    For contacts and calendars, take a look at SmoothSync for Cloud Contacts and SmoothSync for Cloud Calendars.  For your iCloud email account, set it up with these settings: http://support.apple.com/kb/HT4864.

  • Why have I been charged twice and what for?

    I have been charged two amounts, I presume for my landline to skype service. I would like to know why, and what this payment has been taken for? I Have been using this service since 2011 and cannot remember this happening before.
    PayPal states that [email protected] is to be used as the customer service email, which has an auto responder stating that the email address is no longer in use. The message directs me to manually find and use a contact form which I could not find.
    This has left me incredibly frustrated, to the point that I would like to cancel this subscription immediately.
    Please contact me as soon as possible.

    Those are just the system checking that there is a valid account in the bank and that there are funds available. Those are only pending charges, they will not be completed and no funds will actually be removed from your account.

  • I had something that help me find the last pages and recentpages I visited but I had to reinstall fox fire and it's gone how do i get it back and what was it call

    I open a new tab and recent pages, last pages and most visited pages, would be displayed but I had to uninstall fox fire then reinstall and now it gone. How do I get that back? What was it call.

    You have probably simply opened a blank Layout template which has no default text area. In Layout documents you need to add textboxes to the page.
    Just start over from the Tempalet Chooser and pick a Word Processing document (see the sidebar titles) or a template with actual content in it already.
    Peter

  • What is it and what do you call it.

    Since I purchased my iMac two weeks ago, I have had a spinning colored symbol appear on the window a couple of times. I do not know what it is called or how to get it off the screen when this happens. I am sure there is an answer to this some place on the forum but I do not know what to ask since I don't know what this symbol is called or what it means. I have attempted to search but have been unable to find anything that addresses this problem. Any help will be very much appreciated. A new Apple user - John

    That icon is the spinning beachball, and it appears whenever the cursor is over an application which isn't responding to incoming requests. The application may be busy processing something, or it may be stuck, in which case it needs to be force quit by use of the Force Quit command in the Apple menu, or it may be in the process of unexpectedly quitting.
    (20166)

  • Why your backups are so slow and what you can do about it.

    So you know your backup us slow and want to know what's wrong.
    Here it is:
    1) Transferring files from the iPad to your computer happens at an unacceptably slow rate of ~100 KBytes per second, even though it is connected via USB2. (You are using a USB2 port, right?)
    2) The iPad/iTunes backup process introduces a multiple second pause between each and every file that gets backed up. Ugh!
    As bad as problem #1 is, it's really problem #2 that is causing everyone serious problems.
    Here's what happens: Some applications create many very small files. The free NPR app is one. If you have lots of photos, that can be another. When you back up these tiny files, even though they may be only 1 KB in size, they can take up to 5 seconds each to transfer. In the case of NPR, each jpeg is stored separately and is backed up separately. If you have 500 jpegs, each one is only 2K in size, but there is a 5 second lag between files, you have to wait an extra 2500 seconds (41 minutes!) to back up that 1 megabyte of data.
    Why this lag between files? Only Apple knows for sure. My guess is that it is due to the creation of the metafiles sent to the computer during the backup process. If the iPad is generating the metadata as an actual file in flash, the delays might be caused by read-modify-write cycles in flash. I want to say to Apple, why hasn't this been fixed? This problem is obvious to anyone who bothers to take a close look at the backup process. I can't believe they don't know about it. Do you really need so much of a lag between transmitting files? But I digress.
    The real question is, what to do about it? The answer is that you have 3 choices:
    1) Do nothing and live with it.
    2) Turn off backups. There are several apps out there that can do this, just Google it.
    3) Figure out which applications are guilty of producing large numbers of files and can them.
    To go about #3, get a copy of AppleSlowBackupLiveView from http://files.m4ko.de/applesync/
    Start a backup, figure out what folder the backup is being written to, then paste that folder into AppleSlowBackupLiveView and hit the "Check This Backup" program.
    Each time a new file is being backed up a new line will appear. If you see the same application appearing over and over and over again, you know that this application is partly to blame. You can hit the Remove Duplicates button to combine all of the entries for a given application into one line and then look at the "Total s" column to see how long it took to back up that application.
    Apple really needs to address these two issues, especially the second one as it should be very easy to fix. Simply find out what the iPad is doing between file transmissions and eliminate that problem. If it is prep work, start a new thread on the NEXT file to be backed up while the current one is being transmitted. There are ways to fix this. Please do!

    Thank you for this info!
    However, you are only communicating with other users, like yourself, here and not anyone from Apple.
    If you wish Apple to see and possiblly work toward resolving this issue, you can try sending them feedback here.
    http://www.apple.com/feedback/ipad.html

  • IPhone 4 battery life, Why does it die so fast and what can I do?

    I have had an iPhone 4 for a little over two years now and feel like recently, my battery is dying so fast.
    When I go out for the day it always dies before I get home, what I think it is, could be that I take a lot of pictures and use many picture apps, but I don' think that it has always been this bad. NO matter what I do, when I go out to shoot at the park, it dies within a few hours. I hardly use it for other things besides that and it still dies. Yesterday when I left the house at 12, and came home at 5, it was dead.
    I did all of the things I read about that I need to do, like closing the apps, etc.
    I don't get it, is it me, or the battery being old or what? Should I buy a portable charger or do I need a new phone?
    I have a question about charging the battery as well. A coworker of mine told me that you need to let your battery die out every time, and then charge it, but I never do that. Is that neccessary to save the battery?
    Thank you.
    (*not sure what the difference is between CDMA and GSM? sorry)

    Thank you, I am going the Apple store today for a genius appointment. L
    ast night I let it die, and charged it to 100%, then I unplugged it and went to sleep. at 530am it was at 98% - I used it quite a lot for texting, and taking and editing pictures and use of the internet. it just died at 1:30pm, so it lasted exactly 8 hours.
    Thanks again.

Maybe you are looking for

  • I have an HP Laserjet M1319f MFP scanning problem

    I have an HP Laserjet M1319f MFPand ever since I moved from Windows XP to window7 it won't give me the option to scan to PDF

  • Help Downloading a file from a server using FTP with only URL methods

    Hi All I have written this code and it is not working I dod not know why the download is not working please help is there anything that's missing? * Download the file public void download(String fileName, String destination)        BufferedInputStrea

  • Reg - Work Flow Program ( ABAP )

    Hi, Pls advise Where i get the Program ( ABAP Code ) in the Work Flow. Example : I need to add one more plant in the WorkFlow .. Thanks Roy..

  • Data corruption with SSD after hard reset

    Hi, I'm using a Mac Mini for a car product and I MUST shut it down each time the hard way, i.e. by cutting the power. I am perfectly aware that this is definitely NOT the recommended way to shut down OSX because it might lead to data corruption but a

  • Ad Block Plus is not blocking ads

    I downloaded ad block plus 3 years ago and it worked perfectly. Suddenly, it stopped blocking ads. I have tried to use the troubleshooting advice, and have followed the parts I understand. But it still does not work, although it seems to have been do