Put a delay in the code

In a delivery user exit,
Is there a way to tell the program to execute a particular function module 2 minutes after it SAVES the document?

My problem is as follows.
I go to sales order in change mode and do Sales Order--> Deliver
Then when the delivery is saved, sales order is still in change mode as I started from the sales order in change mode. While doing this I need to update the order quanity of sales order with the delivery quantity (as they will always be off by few percentage poitns) by going in to the same sales order. I do this through BAPI_SALESDOCUMENT_CHANGE and BAPI_TRANSACTION_COMMIT.
When the sales order is changed it puts the sales order on credit hold. I need to undo it
I try to do this though CALL FUNCTION 'SD_ORDER_CREDIT_RELEASE' but I get a message saying the sals order is locked. It will be unlocked only once te delivery is saved. How do I make this function mdule execute after the delivery is saved.

Similar Messages

  • How do I create a time delay so the signal from my throttle is not too fast for an ESC?

    I am using Labview to control a ROV using a Playstation 3 controller.  When I throttle too quickly the ESC cuts off and resets.  I talked to the manufacturer of the ESC and they said the probable cause was the signal was changing to fast for the ESC to follow andthey recommended putting a delay in the program to allow time for the ESC to read the throttle increments.  My question would be "How do I do this?"  Thanks

    I'm not exactly sure how to do what you are talking about.  I have been doing this for about a month and have taken only an intro class in Labview at my university.  Could you point me in the right direction to learn how to do it .  I have attached the VI just in case you wanted a closer look at it.  Thanks
    Ivan
    Attachments:
    PS3Thruster.vi ‏210 KB

  • Please help block my ipod touch second generation and forget the code, try putting the code so many times that now says connect to itunes, I connect but will not let me do anything that tells me this should unlock with key and I should do for Please help!

    please helpme i block my ipod touch second generation and forget the code, try putting the code so many times that now says connect to itunes, I connect but will not let me do anything that tells me this  should unlock with key and I should do for Please help!. thanks

    Place the iPOd in recovery mode and then restore. For recovery mode:
    iPhone and iPod touch: Unable to update or restore

  • Why won't the iTunes gift card I caught by email allow me to put in the code for my iTunes account?

    I recieved a gift card for my birthday by email, and I tried to put in the code on my itunes account, and it says that it is not a valid code. When I check the balance of the card, it still says it has the amount on it. What do I do to resolve this issue?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT1212 My daughter has tried too many times to put her password in, but she disabled it. And itunes keeps telling me I need to put the code in on it. What do I do?

    May daughter has tried too many times to put her passcode in and she disabled it. when I hook it to itunes, it's telling to put the code in. what do I do now?

    Read the article you linked

  • I've just rented Monsters vs Aliens on my Apple TV 3 and once we switched to default language - Russian we have experienced major lag in sound, apx. 1 sec delay with the picture. English soundtrack works fine, once we put Russian back - the delay is back.

    I've just rented Monsters vs Aliens on my Apple TV 3 and once we switched to default language - Russian we have experienced major lag in sound, apx. 1 sec delay with the picture. English soundtrack works fine, once we put Russian back - the delay is back. How can this be fixed? Please advise. Thank you in advance.
    PS. Just bought the Monster's Inc. and Russian soundtrack works fine.

    Agreed! This bug with the ringtone delay (№4.1) is really annoying

  • Tried to redeem software updat using content code and nothing happen when I put the code in the app store

    I tried to upgrade my early 2011 mac book pro to mountain lion so I can use airplay.  purchased it from apple store got a license with a contend code. when to the app store and tried to redeem the upgrade.  put in the code but nothing happen...

    Hello tkproducer,
    Thanks for using Apple Support Communities
    After entering your redemption code and clicking redeem, your download should begin.  You can monitor what is currently downloading by selecting "Purchases" at the top bar of the App Store.
    Click Redeem in the Quick Links section.  The Quick Links section is located in the right part of the window shown when you click Featured, Top Charts, or Categories in the toolbar.
    Enter a gift card or download code, and then click Redeem.
    If you’re not logged in to the computer as an administrator, enter an administrator’s name and password.
    If you’re not signed in to App Store, enter your Apple ID and password, and then click Sign In.
    If requested, click Billing Info to enter or verify your billing information.
    Click Done.
    Mac App Store: Redeem gift cards and download codes
    http://support.apple.com/kb/PH11497
    Mac App Store: Buy, download, and install apps
    http://support.apple.com/kb/PH11493
    Take care,
    Alex H.

  • Can anyonehelp, i have updated to ios7 which has put a passcode on my ipad, i keep getting the code wrong, i have ne itunes of cloud sync

    can anyonehelp, i have updated to ios7 which has put a passcode on my ipad, i keep getting the code wrong, i have no itunes or cloud sync

    Duncanray10 wrote:
    ...  I keep getting a message stating my ipad needs software to be 10.6.3. ...
    You are misreading it... it is referring to iTunes on your computer...
    Download and Install the Latest version of iTunes onto your computer...
    http://www.apple.com/support/itunes/install/

  • I put in the code to get the digital copy for star trek into darkness, and i clicked download later, but it didn't show up in my movie library like the other movies i did the same thing to, where is my digital copy of star trek?

    i put in the code to get the digital copy for star trek into darkness, and i clicked download later, but it didn't show up in my movie library like the other movies i did the same thing to, where is my digital copy of star trek?

    Yes, the old album art view is gone, bu you can see the album art for a song that's playing by clicking on the art image and it will open a bigger view.
    Everything else in your post is a waste. I'm not going to spend time reading it. If - and I repeat if, you have a question on how to get the best out of the new look iTunes, post it. But don't spend your time in long rambling negative rants.

  • F9 doesn't work even after the code that I put it inside KEY-F9

    IN KEY-F9 I PUT :-
    SHOW_KEYS;
    and in run time , when i press F9 nothing happen !
    why the code didn't execute ?!
    I attached the fmb file in this link :-
    http://www.zshare.net/download/16231588ffb4d1df/
    , and it work with HR schema

    I modified the file fmrweb.res and did that :-
    from
    120 : 3 : "Shift+Ctrl+F9" : 91 : "Function 9"
    to
    120 : 3 : "F9" : 91 : "Function 9"
    and even although I programmed the KEY-F9 trigger to
    if show_lov('LOV4') then
         message('OKayyyyyyyyyyyyyyy');
    else
         message('NOOOOOOOOOOOOOOOOO');
    end if;
    but in Run Time when I press F9 nothing happened , but when I press Shift+Ctrl+F9 the LOV appear !!!!
    what's went wrong here ?

  • I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    Your only choice is to place the phone in DFU mode (search Google for instructions) and restore as a new device.  You will lose all your data.

  • Architecture question...where to put the code

    Newbie here, so please be gentle and explicit (no detail is
    too much to give or insulting to me).
    I'm hoping one of you architecture/design gurus can help me
    with this. I am trying to use good principals of design and not
    have code scattered all over the place and also use OO as much as
    possible. Therefore I would appreciate very much some advice on
    best practices/good design for the following situation.
    On my main timeline I have a frame where I instantiate all my
    objects. These objects refer to movieClips and textFields etc. that
    are on a content frame on that timeline. I have all the
    instantiation code in a function called initialize() which I call
    from the content frame. All this works just fine. One of the
    objects on the content frame is a movieClip which I allow the user
    to go forward and backward in using some navigation controls.
    Again, the object that manages all that is instantiated on the main
    timeline in the initialize() function and works fine too. So here's
    my question. I would like to add some interactive objects on some
    of the frames of the movieClip I allow the user to navigate forward
    and backward in (lets call it NavClip) . For example on frame 1 I
    might have a button, on frame 2 and 3 nothing, on frame 4 maybe a
    clip I allow the user to drag around etc. So I thought I would add
    a layer to NavClip where I will have key frames and put the various
    interactive assets on the appropriate key frames. So now I don't
    know where to put the code that instantiates these objects (i.e.
    the objects that know how to deal with the events and such for each
    of these interactive assets). I tried putting the code on my main
    timeline, but realized that I can't address the interactive assets
    until the NavClip is on the frame that holds the particular asset.
    I'm trying not to sprinkle code all over the place, so what do I
    do? I thought I might be able to address the assets by just
    providing a name for the asset and not a reference to the asset
    itself, and then address the asset that way (i.e.
    NavClip["interactive_mc"] instead of NavClip.interactive_mc), but
    then I thought that's not good since I think there is no type
    checking when you use the NavClip["interactive_mc"] form.
    I hope I'm not being too dim a bulb on this and have missed
    something really obvious. Thanks in advance to anyone who can help
    me use a best practice.

    1. First of all, the code should be:
    var myDraggable:Draggable=new Draggable(myClip_mc);
    myDraggable.initDrag();
    Where initDrag() is defined in the Draggable class. When you
    start coding functions on the timeline... that's asking for
    problems.
    >>Do I wind up with another object each time this
    function is called
    Well, no, but. That would totally depend on the code in the
    (Draggable) class. Let's say you would have a private static var
    counter (private static, so a class property instead of an instance
    property) and you would increment that counter using a
    setInterval(). The second time you enter the frame and create a new
    Draggable object... the counter starts at the last value of the
    'old' object. So, you don't get another object with your function
    literal but you still end up with a faulty program. And the same
    goes for listener objects that are not removed, tweens that are
    running and so on.
    The destroy() method in a custom class (=object, I can't
    stress that enough...) needs to do the cleanup, removing anything
    you don't need anymore.
    2. if myDraggable != undefined
    You shouldn't be using that, period. If you don't need the
    asset anymore, delete it using the destroy() method. Again, if you
    want to make sure only one instance of a custom object is alive,
    use the Singleton design pattern. To elaborate on inheritance:
    define the Draggable class (class Draggable extends MovieClip) and
    connect it to the myClip_mc using the linkage identifier in the
    library). In the Draggable class you can define a function unOnLoad
    (an event fired when myClip_mc is removed using
    myClip_mc.removeMovieClip()...) and do the cleanup there.
    3. A destroy() method performs a cleanup of any assets we
    don't need anymore to make sure we don't end up with all kinds of
    stuff hanging around in the memory. When you extend the MovieClip
    Class you can (additionally) use the onUnLoad event. And with the
    code you posted, no it wouldn't delete the myClip_mc unless you
    program it to do so.

  • HT4623 my phone has a message that the iphone is disbled connect to itunes. I try and the message said you must unlock your phone.but the phone will not bring up the key board for me to put the  code in. what do i do?

    Iphone has a message on it that said iphone is disable connect to itune. i try but it said that you must unlock your phone. but the iphone will not let me bring up the keypad so i can put the code in to unlock it, it has the message iphone disable connect to itune. what can i do?

    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    Note.  Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...

  • I received a iTune gift card but when I put the code in it says no good. It is wort $15.00

    I was given a $15.00 gift card but when I put the code in it shows no good. code is XRF20F2CX3NR2LH2

    See this -> http://support.apple.com/kb/TS1292

  • I forgot the code for my iPhone to access the Home screen I do , please help me try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    I forgot the code for my iPhone to access the Home screen I do , please help me
    try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    Hello polo-angulo,
    I apologize, I'm a bit unclear on the nature and scope of the issue you are describing. If you are saying that you are getting an error code (3004) when you try to restore your iPhone (because you could not remember your passcode), you may find the information and troubleshooting steps outlined in the following articles helpful:
    Resolve iOS update and restore errors in iTunes - Apple Support
    Get help with iOS update and restore errors - Apple Support
    Sincerely,
    - Brenden

Maybe you are looking for

  • Allowed posting periods: 06 2010 / 05 2010 / 12 2009 (Message no. M8022)

    Dear Experts, I took a old shipment & do a new shipment cost but when I went to go for MIRO posting below error message showing. Fyki, every month we run S_ALR_87003642, MMPV & MMRV properly then why below message showing prior MIRO posting. Is there

  • Migration from old pc now in new user how do i fix

    I migrated from my old pc to a my imac.  Now it is in a new user but I want to merge the two together.  Any suggestions?

  • Qualification (Infotype 24) - Overlapping of Qualifications

    Hello Is there a possibility, to enter the same qualification twice at the same time? For example: Qualification "A" with Proficiency "Approved Level low" from 01.12.2010 to 31.12.2012 Qualification "A" with Proficiency "Request for Approval Level hi

  • Restore Previous Application Version by JDI

    Dear All, I got a practical scenario question that when I use JDI to deploy my program changes to production, however I found that there are some errors or inconsistencies or anything else so that I want to restore the application to previous state i

  • Flash content not working(tried all I can think of)

    First of all I have looked through the knowledgebass and I have followed the step by step troubleshooting instructions with no luck. as an example if I try to load up the Native Instrumenst home page the screen shows that it loads "30%" and then it j