I need to have COMMit WORK with in a FM, which is calling in UPDATE task

Hello
I am sending out the custom IDOC from SAP to partner application by writing a custom my_OB_IDOC_FM, well.
With in this my_OB_IDOC_FM, for some functionality, i am using a standard SAP FM and I need to use a COMMIT WORK immediately after this standard SAP FM call.
But, all my IDOC is calling in update task, so once am triggering IDOC (inturn my_OB_IDOC_FM is calling in UPDATE task) am getting dump because of that inside used COMIT WORK statement!
So, pls. let me know how can replace this COMMIT WORK  or hoe can i fix my issue? can i do like CALL FUNCTION standard_SAP_FM in background task/seperate task? so that i can use COMMIT WORK?
Thank you

I've dealt with something similar before.
You could make a new z-program and run in a background job... like this:
* create the job
CALL FUNCTION 'JOB_OPEN'
      EXPORTING
          JOBNAME          = mv_JOBNAME
      IMPORTING
          JOBCOUNT         = mv_JOBCOUNT
      EXCEPTIONS
          CANT_CREATE_JOB  = 1
          INVALID_JOB_DATA = 2
          JOBNAME_MISSING  = 3
          OTHERS           = 4.
* submit the program to the job
    SUBMIT ZPROGRAM
      WITH i_ebeln in mr_ebeln
      WITH updall = 'X'
      WITH wq_simul = ''
      TO SAP-SPOOL
        DESTINATION sv_output_device
        IMMEDIATELY ''
        KEEP IN SPOOL 'X'
        WITHOUT SPOOL DYNPRO
      USER sy-uname
      VIA JOB mv_jobname NUMBER mv_jobcount
      AND RETURN.
* submit the job
CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
        JOBCOUNT             = mv_JOBCOUNT
        JOBNAME              = mv_JOBNAME
        STRTIMMED            = 'X'
    EXCEPTIONS
        CANT_START_IMMEDIATE = 1
        INVALID_STARTDATE    = 2
        JOBNAME_MISSING      = 3
        JOB_CLOSE_FAILED     = 4
        JOB_NOSTEPS          = 5
        JOB_NOTEX            = 6
        LOCK_FAILED          = 7
        OTHERS               = 8.

Similar Messages

  • I have an ipod touch and just updated my software to ios 7.1.2. Now I get the message that my adapter, accessory does not support my device. Is there a new adapter that I need to buy that works with the ios 7.1.2?

    i have an ipod touch and just updated my software to ios 7.1.2. Now I get the message that my adapter, accessory does not support my device. Is there a new adapter that I need to buy that works with the ios 7.1.2?

    This is not my problem. However, I think it may be related to an old speaker. I was using the 30 pin adapter for about a week after the upgrade to 7.1.2. But I think with the update the speaker won't work anymore. I will try with a new speaker system. Thank you for trying to assist.

  • I have been working with adobe  (case

    I have been working with adobe  (case #0213942809) to provide the information I need to get the serial number for my purchase in 2013 of Photoshop11. I now have the information but I do not know where to send it. Can you give me that information?

    Thanks for your suggestions.  I only found one patch to apply:
    Adobe RoboHelp 7.0.1 - English, French, German, and Japanese
    REgarding item 40 on your Snippets, when I atempt to open RoboHelp for Word, I get an error mesage that reads RoboHElp explorer is unable to start Word.  I have uninstalled RoboHelp X5 and the upgrade to RoboHelp 7 and reinstalled both.  Also had IT provide me with a new profile.  Unfortunately, these steps did not resolve the issue of being unable to open xpj files.
    Yes, Clownfish project and the project I am attempting to open are on my local drive not on a network drive.
    When trying to open the hhp file, I get the following error message:
    error message when uninstalling and reinstalling and trying to create a new project:
    error when deleted xpj and cpd files and attempting to edit the hhp file

  • Since downloading Yosmite on my MAC I have not been able to download photos to LR 5. Error message: "the following files were not imported because they could not be read (335).I have been working with several forums and have dtried going into preference

    LR 5 - using it on a MAC-
    Error message: "the following files were not imported because they could not be read (335).
    I have been working with several forums and have tried all recommendations and none have worked.
    I have tried reloading new LR 5 - and it worked for a short time and then stopped.
    Very frustrated that I cannot talk with someone at Adobe.
    The folks that have made recommendations are great but once their suggestions dont work they drop the link,
    Is there someone or someplace I can take my computer to fix this issue.
    It seems to be a problem between LR and Yosemite.

    The permissions have been changed on the destination folder where the photos are to be copied into.
    You must make sure that the permissions are set to Read and Write.
    Or perhaps the destination folder has been changed accidentally to something else, and you need to change it back to whatever it used to be.

  • I m coming from linux platform ... now need my g   to work with vim ... how to install g   which supports C  0x ... why does  not it has repository with apple ... its so easy rather than going to UI ...

    i m coming from linux platform ... now need my g   to work with vim ... how to install g   which supports C  0x ... why does  not it has repository with apple ... its so easy rather than going to UI ...

    tom i have been using ubuntu for c++ project
    i use lambda and atomic (c++0x) but now as I am working on MAC not able to use them
    installed xcode(4.3) and changed compiler settings to LLVM3.1 but still both features are not available
    to compile wanted to have g++ which supports c++0x features ...
    new to MAC (2-3 days) so was in rush to solution
    let me know if you have some suggestion ...
    else will try with eclipse cdt .... 

  • Can I email photos w/o templates Iphoto provides? I used to be able to choose a few photos and email them. Now I have to work with these templates and can barely see what I'm writing!

    I used to be able to choose a few photos and email them. Now I have to work with these templates and often do no want to. Could someone tell me the process for choosing to send photos without the templates?

    Like Larry pointed out in iPhoto's General Preferences pane:
    Click to view full size
    OT

  • Is there any where that I can voice why I returned my beloved new Ipad? I was told I could move my Keynote presentations to it and then use it for my business presentations. Unfortunately that turned out to not be true. I need the IPad to work with a remo

    Is there any where that I can voice why I returned my beloved new Ipad? I was told I could move my Keynote presentations to it and then use it for my
    business presentations. Unfortunately that turned out to not be true. I need the IPad to work with a remote.
    The Ipad is on a short cable to my projector. I am usually on a podium 30 feet away. No infra red receiver on the IPad and
    the Iphone remote needs wi fi which is not always available in all the locations I do my teaching and lecturing in.
    If you can build a remote into the Ipad in the future I would really like to use an Ipad to replace my heavier lap top for business travel. Thank You Kathy McNeil.

    "The Ipad is on a short cable to my projector."
    Get a longer cable?

  • WF error: There are no workflows that have already worked with this object

    Hello all,
        I am getting the error "There are no workflows that have already worked with this object" when I go to IQS23--> enter notification number --> workflow overview. I tried to find information related to this error message but could not find anything. If anyone happen to know anything about this error, please let me know.
    Thanks.
    Mithun

    Hello,
    As the error message says, it can't find any workflows that have dealt with the instance of the object you're inquiring about.
    If you know this isn't true, or if you don't know what object this concerns, the you could try debug to see which object is being searched for.
    regards
    Rick Bakker
    Hanabi Technology

  • Does any one have experience working with Apache Open Office?  I have OS X 10.6

    does any one have experience working with Apache Open Office?  I have OS X 10.6

    So the answer to your extremely vague query is Yes, some users have experience with OpenOffice.
    Now Zoom in on EXACTLY the issues that are on your mind, and post them here.

  • We are using CS 5.5. If I update to OS 10.9 can I download the latest version of Adobe Drive and have it work with CS 5.5?

    We are using CS 5.5. If I update to OS 10.9 can I download the latest version of Adobe Drive and have it work with CS 5.5?

    For older Macs that aren't supported in Firefox 4.0, try TenFourFox for PowerPC's running Mac 10.4.11 & 10.5.8 . <br />
    http://www.floodgap.com/software/tenfourfox/
    Or you can revert to 3.6.16. <br />
    http://www.mozilla.com/en-US/firefox/all-older.html

  • I have a problem with my 4s camera which has come up recently. Everytime I take a picture and look it up via the 'Photos' app, it shows as blank. But when I click on edit on the blank picture, it comes up and I am able to save it back on my photo album.

    I have a problem with my 4s camera which has come up recently. Everytime I take a picture and look it up via the 'Photos' app, it shows as blank. But when I click on edit on the blank picture, it comes up and I am able to save it back on my photo album as a proper image. Besides, I have also experiences the camera working a bit wiered (slow and often blanks out the moment I am ready to take a photo). Any help on this pls?

    Hi Noob Søren
    There are a few things that are confusing in your question.
    As far as I know, you dont have to install Time Machine on this OS as it is already installed for you. You only need to connect a hard drive to your computer via firewire or usb, click on the Time Machine icon, Open Time Machine Preference in the drop down menu and select a disk: your connected hard drive.
    You can of course reformat this connected device, partition it into a few volumes to organise data if you so wish.
    I find it strange that your mac's hard drive is divided into two volumes... perhaps this was created through bootcamp?
    You can access the configuration of your hd through Applications/Utilities/Disk Utilities.
    Clicking on one of the icons on the right hand panel will bring the details of the contents of your hardDrive and volumes. From there you can decide to erase a partition, reformat etc....
    If your hd contains more than one volume, and one of them is empty, you could decide to remove it. Back up all your important data before doing so.
    Hope this helps
    WN

  • HT4946 i am administrator for Mac. My husband and i both have separate iPhones with separate contacts. Since i0S 6.1 update these contacts are now shared which we do not want. I have set up separate iCloud email and account for my husband. How do i ensure

    I am administrator for Mac. My husband and i both have separate iPhones with separate contacts. Since i0S 6.1 update these contacts are now shared which we do not want. I have set up separate iCloud email and account for my husband. How do i ensure that i

    You can continue to use the current AppleID for iTunes, but your husband can create a new AppleID to use to create a new iCloud account that will be his own and not overlap with yours.  If you do not have another email address to use for an AppleID, just get a free Gmail account and use that.
    You can have as many AppleIDs as you want (or at least, as many as you have email addresses for).  You can use a separate AppleID for the store, another for iCloud, and even another for iMessage if you wish.
    You will want to keep the current one as the shared one for the store as all your previous purchases are permanently tied to it, and thus you need that AppleID to update or redownload your current purchased content.

  • I have a problem with your app store, always I want to update a new app, I want to know what Schiffer and novelty app! Most of my applications are in English, and they write what the improvement and renewal are written in English, and I do not speak the

    Hi
    I have a problem with your app store, always I want to update a new app, I want to know what Schiffer and novelty app! Most of my applications are in English, and they write what the improvement and renewal are written in English, and I do not speak the language! I try to copy the text, color (gray) is not successful, the variance can it, so we can copy the text and translate?
    I thank you for your help, it can help to humanize

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • Re using AE as an extender: do I need to choose the 2.4 ghz band to have it work with iPhone?  If so, how do I do that?

    I have AT&T Uverse service, so I use my Airport Extreme as an extender.  However, it doesn't seem to have an effect on my iPhone: I can stand right next to the AE and not get a good signal.  I read somewhere that the iPhone only uses the 2.4 ghz band.  If my AE is set to use the 5 ghz band, how would I instruct it to use the 2.4 ghz band?

    I have AT&T Uverse service, so I use my Airport Extreme as an extender. 
    Unfortunately, the AirPort Extreme is not compatible with the Uverse router if you are tying to "extend" using wireless only.
    However, it doesn't seem to have an effect on my iPhone: I can stand right next to the AE and not get a good signal.
    The Extreme can only "join" a Uverse wireless network...normally for use with an AirPort Express with AirTunes.  The Extreme does not provide any additional wireless coverage when it "joins" a network. That is why you notice no improvement in the wireless signal.
    Apple's "extend" setting is a proprietary feature that will only work with other Apple routers. In other words, to have an Apple device "extend a wireless network", you need to have another Apple device providing the wireless network.
    If you want the Extreme to provide more wireless coverage, you will need to connect it to one of the LAN <-> ports on the Uverse rotuer with a wired Ethernet connection from the WAN port on the Extreme.

  • Can I create a form in muse and have it work with a different hosting service?

    I contacted a hosting service that I need to upload the site I built in MUSE to. (Hosting has already been purchased). I asked OMNIS:
    I want to create a form with Muse and then upload my site to OMNIS, not muse, the forms will display as I designed them, but they will not  function. I have someone to help me who is experienced in working with code. I can use Muse to export my site and then open the files in an HTML editor. "Update the source code of the form to make it compatible with the form processing technology used by your hosting provider (OMNIS) before you upload the files to their server." Can you help me with this? Do I need to get a script or something from you?
    OMNIS ASKED me:
    What are MUSE's site requirements?
    I will be building other sites and my clients may want to have the site hosted elsewhere. Can you give me the easiest way to deal with forms?

    Thank you for getting back to me Morgan.
    I read in another forum:
    There's a handy piece of software from CoffeeCup Software called "Web Form Builder". It's pretty affordable and easy to use and it can be hosted on the server of your choice provided that server uses an up-to-date PHP script.
    This is what I have been using....but I would rather not have to deal with a third party form builder at all.
    Do you reccommend this?

Maybe you are looking for