BCS Email and Commit Work

I created a small email class that is basically a wrapper around the BCS document classes.  Everything works fine when used in normal programs.  Then, I tried to update some code that was behind a smartform for our order confirmations.  When I tried to test this, I got a dump because of the Commit Work after the send.  The error I got was that I was doing a commit work during an update task, which SAP doesn't like.  Apparently the commit work is needed for the BCS send method.  Does anyone have any ideas I can get around this?  Any idea would be appreciated.
Thanks in advance,
Curtis

What i understand is that your code is getting executed in an Update Work Process & as you've guessed SAP doesn't allow COMMIT WORK to be used inside an Update Task.
What Gaurav is trying to suggest is may be there are some Implicit Commits later on which might trigger your email.
Without further inputs it's difficult to analyse.
BR,
Suhas

Similar Messages

  • Lock and Commit work in INBOUND IDOC

    Hi Experts,
    Problem is about lock and commit work
    i need to receive idoc for Good receipt for purchase order.
    For one Purchase Order i can receive many good receipt Idoc at the same time and when first came in Lock the Purchase Order and further idoc came after give Errors becouse purchase Order is lock.
    Problem is not the serialization (the sequence is correct), but is the lock.
    Any idea on how to fix this issue? (maybe there is some std settings??)
    Cheers
    Boris

    Hello Guys
    the packetsize is already set to 1 but the problem still again..... and where i can find this setting   "in Customizing choose Engineering Change Management ® Define statuses for master record". ?
    Any way i try in function module in inbound to check the lock object with this sample code:
          DO 30 TIMES.
            CALL FUNCTION 'ENQUEUE_EMEKKOS'
             EXPORTING
               mode_ekko            = 'S'
               mandt                = sy-mandt
               ebeln                = goodsmvt_item-po_number
               _scope               = '2'
             EXCEPTIONS
               foreign_lock         = 1
               system_failure       = 2
               OTHERS               = 3.
            IF sy-subrc <> 0.
              WAIT UP TO 1 SECONDS.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
    but also with this....problem syill again...
    thanks
    Boris

  • Can't sync ical on my iphone and imac. email and note work but not ical.  can anyone help.

    can't sync ical on my iphone and imac. email and note work but not ical.  can anyone help.
    thanks
    bmoreimac

    So how can i make it work that way, i asked one of my friends, and she says it works like that...when she delete the email on her iphone it is deleted on the mac too, what do i do to change this?....my mail it's hotmail, i don't know if its relevant

  • HT5621 I changed my ID Apple with another email, i received the confirmation, i changed my password and also received the confirmation but when i try to download something on my iPhone it still shows me my okd email and nothing works ! ahhhhh what and how

    I changed my ID Apple with another email, i received the confirmation, i changed my password and also received the confirmation but when i try to download something on my iPhone it still shows me my old email and nothing works ! ahhhhh what and how do i solve this ?

    On your iPhone go to Settings > Store.
    Select the Apple ID at the bottom.
    Select Sign Out at the menu selection provided.
    Follow this by signing in with your new Apple ID/iTunes store account.
    All apps - all paid and free apps include DRM protection which is tied to the iTunes account that was used to download the apps. In order to install an app update for the apps downloaded with your previous Apple ID/iTunes account, you will need to use that account and password.

  • Differences between commit work and commit work & wait

    Hi people,
    I have a theory question:
    What differences are there between commit work and commit work & wait?
    Thx

    Hi,
    <b>COMMIT WORK:</b>
    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.
    <b>COMMIT WORK and WAIT</b>: (Synchronous)
    Whereas For <b>COMMIT WORK and WAIT</b>, the system waits for the acknowledgment, and then moves to the next statement.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Skydrive and skydrive pro now same email and not working

    Hi,
    I have tried posting this on a few of the forums and keep getting sent somewhere else.  Can anyone here help me?
    For the last couple of weeks we have been setting up our new Office 365 during this time we have been using skydrive and skydrive pro without any problems.  Last Friday we set up our Outlook and change our login from onmicrosoft to our
    actual emails eg *** Email address is removed for privacy ***.  We are now able to receive our emails and login without any problem.  However our SkyDrive and SkyDrive Pro are not syncing with our computers.  If we open a file in our SkyDrive
    PRO folder it will not save to our online file.  If we try to login it will go no further than the screen to accept our email login.  You hit NEXT and nothing happens or it says that it does not recognise that account.  If we log into the dashboard
    we can view our skydrive pro but it is no longer able to sync with our computers.  Is it because we now have an email address doing both accounts?

    You'd better post the question to Office 365 forum. I've found the thread with the similar topic on that forum:
    http://community.office365.com/en-us/forums/154/p/185309/547354.aspx
    You can try to re-establish the connection between your SkyDrive Pro to your local copy. Please note that this action will create a completely new set of synced file locally and may take time to load
    depending on the amount of files to be synced.
    1. Right click on the SkyDrive Pro icon from the taskbar > click
    Stop syncing a folder > select the folder you are currently syncing on (or choose all), then click Stop Syncing. 
    2. Open a web browser and navigate to the library you want to sync or go to your SkyDrive Pro tab from the blue menu, click the
    Sync icon on the upper right corner of the page to start syncing the file. Then check if your files started to sync in your locally.
    Hope this helps.
    Tony Chen
    TechNet Community Support

  • Browser not connecting after returning from sleep, but email and imessage working fine

    My Browsers are not able to access the Internet after returning from sleep. This effects other browsers (Firefox & Chrome) as well. The connectivity from mail and iMessage is working fine. I am also hardwired and not using WiFi.

    I have the same problem since updating to Yosemite, works fine after restarting but once it goes in to sleep it affects email as well as browsers, I have a broadband connection. Also accessing the app store is hit and miss, it's either working or simply not not working.
    It also affects other devices trying to connect to the internet over wifi via the airport time capsule, the problems started after installing Yosemite.

  • HT201209 I downloaded 2 iTunes cards to the same email and 1 worked and 1 didn't

    It's an iPad air. Now I can not even use the $30.00 I downloaded, this is the worst setup ever

    Hi diavonex,
    Thanks for the advice, I just tested it out and still no joy :-( highly frustrating as the iPad is only new and I wanted to avoid a factory reset if I could.
    An update from my first post:
    I turns home sharing off on my iPad, logged onto my comp to find it still on so I switched it off. I removed the email account off of my iPad and re-added it and now I get a new error message but none the less it still doesn't work.
    Would it have anything t do with my Internet settings? We have the wifi 3G iPad and have the sim in but connected to a home router also. Would it help to download the ap again and remove the account before removing the app?

  • I have tried everything but iphoto won't export to snapfish.  It says check network connection, but I am clearly connected to the internet, email and everything works.  I have updated the software reset the PRAM, restarted a million times, please help me!

    every time I try to export photos from mac mini iphoto to snapfish is says check network connection, but the internet is working great.  I have updated everything i can think of please help.

    Several people including myself are having the same issue and have contacted HP and Apple. Quite frankly, I'm surprised it's been an issue for so long being that photos uploaded to Snapfish = $$$.  Lets hope they can work this one out, as of now, there apparently is no solution.
    Here are a few more threads on the same topic.
    https://discussions.apple.com/thread/3317987
    https://discussions.apple.com/message/16278246#16278246
    https://discussions.apple.com/message/16160533#16160533
    Here's a photo of the same issue for the experts troubleshooting the problem out there.

  • Anybody know how to 'change' original ID username with OLD deleted email account on my iPad 2? New email and password work on website, but can't access iPad - thanks.

    Does anyone know how I can change original e-mail / user ID on the iPad II itself?  On the website, I can use new email/user ID and password; but NOT on the iPad!? Thanks for any assistance.

    Hi,
    In order to fix the problem regarding Adobe ID you can follow the steps as suggested below.
    1) Open Adobe Digital Editions and connect your Reader
       Press the keys Ctrl + Shift + E  on your keyboard.
       Now a Deauthorize screen will come up asking you to deauthorize your Reader.
       Follow the screen instructions and unauthorize the Reader.
       Now Press the keys Ctrl + Shift + D  on your keyboard.
        Now a Deauthorize screen will come up asking you to deauthorize your Computer.
        Follow the screen instructions and unauthorize the computer.
    Click Start>>Run and Type "Regedit" without quotes in the box
         A window will open with name Registry Editor
         Search for ADEPT in given location.
         HKEY_CURRENT_USER>Software>Adobe>Adept
         Delete the full folder
         Now open Digital Editions and it will ask you to authorize enter your New Adobe ID and password.
         Now connect your Reader and it will again ask you to authorize enter your Adobe ID and password.
    Please Note : Your Adobe ID and password which you are entering while authorizing your Reader should match with the ID which you are using with Adobe Digital Editions.
    Now for your second problem that your Reader is not getting recognized by your computer I would suggest you to contact sony support in order to fix it. They might have some firmware update for your Reader.
    I hope this will help you!!!
    Regards
    Rizwan

  • Can't browse web but email and Nimbuzz working

    Yesterday on my E72, the native web browser, Opera mini, and the Gmail app connected to the interent but Nokia Messaging couldn't. Also Fring and Nimbuzz wouldn't connect to the internet, saying that I didn't have an internet connection.
    Today I accidentally clicked on some network settings and suddenly Nokia Messaging, Fring and Nimbuzz started working, however, the native web browser, Opera and and other apps that could connect to the internet before now say that I don't have an internet connection.
    What's the problem? This is really frustrating. Please help! Thank You.

    I guess I have solved the problem by making two different access points with different apn's. Is there any way to make them one so that I don't have to always click on "more" and then "choose other access point" when I open Opera mini?

  • Regarding WS_DELIVERY_UPDATE_2 and COMMIT WORK AND WAIT

    Hi Experts,
    My problem is, when I try to update 1 record more than 1 time, the data(Item delivery quantity)getting cleared  after 2 or 3 attempts. Sometimes it was happening for 5 time and so on..
    If i do debugg, it was not happening.
    I was using Z F.M. i.e. - ZWM_SAISIE_PAL_LIV. This F.M has WS_DELIVERY_UPDATE_2.
    Below i have mentioned my code.
    Thanks & Regards,
    Sree.
    Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
    Edited by: Rob Burbank on Sep 20, 2011 10:58 AM

    s

  • I just downloaded Mountain Lion and both my email and safari do not work.  Help please

    I just downloaded Mountain Lion on my IMAC and now neither my email or Safari are working.  Do not believe I can find anything that came with the computer it is about four years old.  Can anyone help me??  I am on my ipad doing this. 

    After ALL updates were completed both email and safari working just fine.

  • Email and Internet add on

    hi, i hope that someone can help me,
    i have a blackberry curve 9300 and none of the blackberry add ons such as app world, email and bbm work. I have contacted my network provider and i am paying for the internet and email add on that should allow me to do these things. I have been told by my service provider to ask blackberry as i am paying. When i try to use these services the phone tells me that it is having toruble connecting and i need to verify my network connections. I have checked and it says that these items are not connected, how do you connect them?
    thank you

    Hello !
    Is your phone showing you EDGE or 3G or BlackBerry Logo on your homescreen near your Network Signal?
    If yes, then ask your service provider that you are facing problem with your BlackBerry Internet Service(BIS) plan (if you have activated).
    Hope this resolves your Problem!
    If your problem has been resolved then would request you to Click on "Like" and accept as "Solution" so that other Advisors doesnt invest there time on this Message anymore.
    Thanks.

  • Commit work while debugging

    Hi,
    In the old debugger, there was only one session and commit work used to take place after every step of execution. In the new debugger, debugging takes place in two sessions. Will the commit work take place here too after every step of execution ?
    Best Regards,
    Raghu

    Hi,
    Just to clear some things. For debuger to make it possible to hold its state, there has to be reserved work proces for this need (normally when gui is launched wp is lost - there is no need to occupay it since application server has no job to do - it's waiting for user input). That's why there is a specific amount (can be changed) of wp defined for this purpose. So yes it is possible that you'll get commit after every step under debugger when this pool of free debuger wp is empty (many people are debugging in the same time). Explanation for this "commit every step" is that without dedicated wp that would be waiting for you, everytime you get back to your debugger, dynpro is being shown to you and as a result you lose wp,  LUV is ended and so is your connenction between aplication server wp and DB wp. System has to do something with your changes - rollback or commit. SAP decided that it will be commit. I hope this is of any help
    Best regards
    Marcin Cholewczuk

Maybe you are looking for

  • Calling all Apple and Mac owners! HP Expert Day - Aug 15th, '12

    Thank you for coming to Expert Day – the event has now concluded. **To find out about future HP Expert Day events, check out this page** On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us.  We hope you will

  • Helping fixing a script

    I was looking for a script that would relink 18 images to 18 new images in a different folder. I ran accross this script but the file names need to be the same and I'm getting an error line 21 (placedFiles.push(placedItems[i].file.name);). Could some

  • Transport Manually

    Hi Friends, Recenlty i made some changes in dev to transport, but i tried with several changes with several request and i released all those request. Now the problem is i don't know what is my acutal request no to transport. The changes i have done a

  • OIM 11g Approvals

    Hi all I am working on Assign Roles workflow with custom SOA approvals. If we raise the request for more than one role in single template. OIM generating more than one request. I want single request for all roles. Is it possible. Can anybody help on

  • MacBook Pro & Photoshop RAM New Problem

    I'm using MacBook Pro (13-inch, 2011); Graphics Inel HD Graphics 3000 384 MB I've been using Photoshop CS5.1 for quite some time (since I bought the computer, I believe) and everything has been running smoothly.  Two weeks ago it would shut down abou