How to automatically complete an SD Contract when not all quantity is used

Hi,
I have a situation where it often happens that not all the quantity in an SD Quantity Contract is used in Sales Orders. When this happens, currently the business users have to go into the Contract, and amend the quantity in order to complete it. I am looking for a way to configure SAP so that these Contracts will automatically move to Complete Status when a certain percentage of the quantity has been used.
I have tried Completion Rules B and C on a new Item Category (copied from KMN).  When I select B the Contract is marked as complete after the first Sales Order is raised, regardless of the quantity. When I select C the Contract does not mark as complete. both times I set up a Contract for 100KG, then Ordered 98KG.  I tried amending the under-delivery tolerances on the Customer Master and it had no effect.
I have searched the SD Forums, looked on SAP Support Marketplace, and tried Google - but I can't find anything that describes my situation. Can someone out there advise?
Thanks,
Val

Hi,
I don't think this can be achieved in SAP std.
You have to go for custom development in ABAP . You can achieve this through userexit MV45AFZZ. The code will be executed when saving the subsequent sales document i.e. Sales order. Once the said percentage is achieved this code will set the status of contract as referenced.
Hope this will help you.
Thanks and regards
Atul

Similar Messages

  • How to automatically open last opened document when Reader launches?

    How to automatically open last opened document when Reader launches?

    Install this Add-on:
    *'''''New TabURL''''': http://sogame.awardspace.com/newtaburl/
    *then set the options in Add-ons > Extensions > New TabURL > Options
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How do I complete uninstalling itunes? when I try installing i get an error message saying it can't find the path ,itunes64.msi missing.

    How do I complete uninstalling itunes? when I try installing i get an error message saying it can't find the path ,itunes64.msi missing

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if one component won't install normally.
    tt2

  • How to automatic complete workflow after 3 weeks ago ?

    Hi all,
    I have one problem about workflow in SAP.
    I have the workflow that have one agent to assigned.
    How can I setup workflow to automatic complete if agent don't process task within 3 weeks ?

    Hi,
    Check whether the background job SWWDHEX is configured and its running for each 3 minutes.
    Also if you set the deadline as 3 minutes's, then you have to wait for some more 3 mins. Once the deadline reached the background job will execute the step with in three minutes. Check transaction SWWA. Here you can set the time interval for deadline job SWWDHEX.
    Then in the Activity step once the deadline is set, then select the modeled deadline in the action field. So that it will create a new
    branch in the wok flow template.
    For testing purpose, Just create a send mail step in the new branch and wait for ten minutes. Deadline will be reached and the mail will send to the inbox.
    Thanks.

  • How do I change my apple id when my email that I use with apple has been closed?

    How do I change my apple id when the email I use for apple has been deleted

    Read here:
    http://support.apple.com/kb/HT5621

  • My scroll bar dissapears when my firefox screen isn't maximized - how do I make it show up when not full screen?

    This just happened spontaneously yesterday - did I press some strange shortcut to make this happen? How do I get my scroll bar back when not in full screen?
    Please help!

    It is possible that the screen is too high and that the status bar and scroll bar fall off at the bottom.<br />
    Open the system menu via Alt+Space and see if you can resize that window.<br />
    If that works then close Firefox to save that setting.<br />
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to make a rubber effect like when you swipe between apps using 4 fingers on iPad ?

    Hey guys,
    So how to make a rubber effect like when you swipe between apps (first or last app) using 4 fingers on iPad iOS7 ? Any examples ?
    Thanks!
    Ivan

    Please do not double post the same question.
    Just like I said before. Animate X scale and position. Set the anchor point of the left image to the left side. You can then use an expression or just generate keyframes for scale. When you flip to the next screen then animate position. Easy basic animation except for the bounce. Key framing the bounce so that it looks natural takes a lot of experience or an expression.
    Google bounce expression after effects and find this. http://www.motion-graphics-exchange.com/after-effects/Wiggle-rubber-bounce-throw-inertia-e xpressions/4ad0f32a944ad
    There are a bunch of other solutions.
    There is no single click solution to this problem and it is not an effect, it is an animation.

  • How do you Sync Cals and Contacts when not connected to internet?

    I Often take my macbook along with me to work. I cannot connect to the internet there. MacBook is set to use MobileMe. When I sync my iPhone 3G with my MB it wont sync updates I made on the laptop. When I go into the info tab in iTunes it states it will update by air. Is there a way to manually update these items when not connected to the internet?

    I sync two iPhones and an iPad with one iTunes library on the same computer and each device has different content. Each device has its own sync preferences with iTunes. You can transfer the same music and apps to each device or different music and apps.
    Are you sharing the same Apple ID or iTunes account?

  • I just opened Foxfire and it automatically imported bookmarks from safari, but not all of them. How can I get the rest of them ?

    I still have Safari on the computer with all my bookmarks. Not all of them came over to Firefox. How can I get them over. Also I had some in the toolbar that displayed over the window. Does this browser have that feature?

    Export the bookmarks in Safari to an HTML file and import that file in Firefox.
    See:
    * http://kb.mozillazine.org/Import_bookmarks ("From Safari" and "Import from file")

  • How do I watch video on yahoo when FF wont let me use flash and java

    Msg states java and/or flash is disabled and FF will not give me a chance to activate them. how do I get them to work or do I just remove No Script?

    You are using a beta version of Firefox. These versions are not meant for regular use, but instead for testing and development purposes.

  • How to lockdown Inter Explorer? We would like all users to use IE 10 and not be able to upgrade

    Is there a group policy that doesn't allow users to upgrade IE? We would like all users to use IE 10

    Hello monolithickernal,
    I agree with MVP Robear Dyer (PA Bear).
    We could use the IE11 Blocker Toolkit to accomplish this requirement.
    Additionally, Organizations that use an update management solution such as Windows Server Update Services (WSUS) or System Center Configuration Manager (SCCM) do not need to deploy the IE11 Automatic Update Blocker Toolkit.
    For more information, please refer to the following article.
    http://blogs.msdn.com/b/ie/archive/2013/10/11/ie11-automatic-update-blocker-toolkit-available-for-windows-7.aspx
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • How to automatically put in my email when page visitor clicks on 'contact webmaster'?

    I uploaded new pages using a template and at the bottom of each page is a 'contact webmaster' link.  When I clicked on this to check it out, using Safari, it opens my mail program (Mail) with a new message window but does not automatically put in the email address.  The link code is: mail to:"[email protected]".  How can I get it to add the address after it opens the email window?
    The web site is http://www.anewharvest.org
    Thanks for your help.

    Highlight the link, use mailto: in the link properties field followed by your real email address.
    <a href="mailto:[email protected]">Contact Webmaster</a>
    That said, this won't work for everyone.  Only people with an email client installed on their web device will be able to contact you this way.  And you will eventually get tons of spam mail. So get a 2nd email account.
    Scripted Contact forms are a much better way for people to contact you.  And you get better protection from email harvesters and spam bots.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How can I completely restore my mac when I haven't made a backup and my hard drive can't be repaired with Disk Utility?

    If I use FireWire target disk mode to copy the entire hard drive to another external drive can I then erase the damaged hard drive, reinstall Lion with it's handy recovery function and copy everything back as it was?
    I have an iMac (using Time Machine) which contains much of what is on the damaged MacBook Pro but the laptop has music and photos that only exist there... So can I restore the laptop from the iMac's Time Machine backups?
    Just wanted some advice before I take the plunge...
    Thanks,
    Joe

    joefromthehill wrote:
    If I use FireWire target disk mode to copy the entire hard drive to another external drive can I then erase the damaged hard drive, reinstall Lion with it's handy recovery function and copy everything back as it was?
    Maybe.  But you'd be better off to make a "bootable clone," via CarbonCopyCloner, SuperDuper, or the Restore tab of Disk Utility.  Then you can start up from the clone (hold the Option key while starting and select it from the display you'll get after a few moments), and make sure everything's there (at least as well as on your internal HD).
    I'd then strongly recommend also making a second backup, on a separate HD, "just in case" something goes wrong with the first one before you get this fixed.  That doesn't happen often, but it does happen.
    But . . . are you sure you have to erase the HD?  If it's directory damage, you may be able to fix it.  See #6 in Using Disk Utility, start with the yellow box there.
    I have an iMac (using Time Machine) which contains much of what is on the damaged MacBook Pro but the laptop has music and photos that only exist there... So can I restore the laptop from the iMac's Time Machine backups?
    Yes, you can do that, by erasing the internal HD, installing OSX, then using Setup Assistant when it first starts up, to set it up just like the iMac.  See Using Setup Assistant on Lion.
    But try to fix the problem first;  if that doesn't work, try the "clone" method.  If it works, you won't lose the stuff on the MBP.
    I guess I don't need to remind you, once this is sorted out, to make regular backups of the MBP, do I?

  • How prevent iCal ALARM reminders popping up when not wanted?

    Sometimes I don't want to see my alarm box popping up to remind me of things.
    Suddenly, & frequently, the pesky iCal Alarm box pops up in the middle of the screen with another preset alarm reminder, insisting on my immediate attention. Like when I'm watching a video on my mac.
    Then I've got to get up and move it out of the way, but as soon as I touch it, the video which I've set to full screen shrinks to small & I've got to click it to big again. This is just one of the inconveniences.
    Please, how can I set the iCal alarm to give it a rest for a while and save those reminders for later
    I've made lots of iCal alarms to remind me of things throughout the day. so these interruptions are a constant problem.
    Q#2: Why doesn't my ALARM BOX show active the Yellow Button so I could relegate it to the side Dock? Or even the Green Button, so I could enlarge it when I want to see all my open reminders without scrolling?
    Instead, My ical ALARM BOX only has the Red button, which closes it out and loses all those reminders therein until it's their time again.
    Oh, dear, I don't think anybody can solve this problem.
    Or
    can
    you?

    You can look at Adblock Plus: https://addons.mozilla.org/firefox/addon/1865
    You need to subscribe to a ''Filter list'' (e.g. the ''EasyList''): http://adblockplus.org/en/subscriptions
    Adblock Plus forum: https://adblockplus.org/forum/

  • How can i change the code in when new form instance trigger using JDAPI

    Hi all,
    Can anyone tell me how can i use JDAPI to modify the when-new-form-instance trigger in all my forms,coz we have around 500 FMB's ,if this is possible by using jdapi it will be better for us..
    Thanks in advance..
    Najeeb

    Hi Najeeb,
    The code I've given you should cover the basic steps - you will need to have a basic knowledge of Java if you want to use the JDAPI, there's no way around that unless you go and buy one of the off-the-shelf products for this kind of thing (I think there's one called orcltoolbox..?)
    I've written an application that does all kinds of things to Forms specific to our needs, so it's a bit tricky to just pull out the code you need, but again, the basics will be:
    String formName="C:\some_dir\some_form.fmb";
    FormModule mForm=FormModule.open(formName);
    Trigger myWNFITrig=Trigger.find(mForm,"WHEN-NEW-FORM-INSTANCE");
    String myText=myWNFITrig.getTriggerText();
    And there you have your trigger text, to do with what you please. You could put this code in the main() method of one class if you want to keep things really simple - but see how you get on, if you have any more specific questions, do come back.
    Eric - that's a very good point about using Regular Expressions. I haven't used them in my JDAPI app because I wanted to keep all my .fmbs 6i-compatible for the short-term, and a posting I saw somewhere recommended sticking to Java 1.3. Which rules out the regex facility, which only appeared in Java 1.4. Now, though, I think I needn't have worried - it surely shouldn't matter which version of Java I use to make the changes to the .fmbs. My stupid!
    James

Maybe you are looking for

  • Automatica​lly decreasing the frequency of a sinwave in a While loop, at a set timing.

    Hi, I am quite new on labview, I just started to use it roughly a month ago. I am trying to simulate impedance measurement (not connected to any load units yet). I am struggling to find a proper way to change the frequency of the sinwave, after a cer

  • HELP!  HOW DO I DELETE A STORY?

    I'm trying to compress my dvd down so i can burn to a disc.. but i have extra stories that i need to delete.. but i can't figure out how! using dvd studio pro 2

  • Acquisition et génération en parallèle

    Un sujet probablement un peu récurrant mais je ne trouve pas vraiment de réponse adaptée à ce que j'essaye de faire. Nous avons des cartes PCMCIA 6036E et nous faisons sur le terrain des mesures de pressions, déplacement,... via nos capteurs. Déjà po

  • CS3 to CS5 Master page issue

    Hi, we just got CS5 at work and we're testing the compatibility with our CS3 projects. Almost everything seems fine aside from this weird problem, i got a master page graphic on master page C that is appearing on a master page B (in the document not

  • Please help with snippet for form.

    I'm building my wedding photography site with iWeb and I want to place a form on there where customers can, via a series of pull down menus, choose various addons to their wedding package which I want to show a running total at the bottom for an inst