Code to block PR and PO with item that have exceeded budget

Hi Gurus,
We need to control purchasing for a client. We've decided to write code that will do the following:
=> Block PR or PO that contains line item that belongs to cost element that has exceeded the planned cost in T-Code s_alr_87013611.
=> PR or PO can only be released if Planned cost is updated.
I want to know if the above is possible and it is, I need to be able to explain what I want using technical terms to an ABAPer.

Yes Antony.
I've already done that.
We are discussing the possibility to block, in a standard way, holding POs created with reference to PRs already ordered in full
Any ideas please ?
Regards,
Bahia.
Edited by: Bahia M. on Mar 9, 2010 2:17 PM

Similar Messages

  • Block postings to cost centers that have exceeded budget

    Hello
    How to block postings to cost centers that have exceeded budget?
    How can you make this assessment? Monthly, yearly or both?
    Thanks!!

    Hi,
    The budget in cost centres does not have availability control. You can use a workaround with internal oders. Please, search SDN for this info. No monthly control is possible in standard configuration with this option.
    If you choose to implement FM, then budget control flexibility there is quite powerful and you can build whatever logic you want. Just make notice, that the budget won't be managed in cost centres, but in FM objects (fund centres, commitment items, etc.)
    Regards,
    Eli

  • Safari preferences don't work and opens with tabs that were shut down

    safari preferences don't work and opens with tabs that were shut down.  what to do?

    Quit Safari.
      Hold the shift key down and relaunch Safari.
    Reset Safari.
    Launch Safari
    Click Safari in the menu bar.
    From the drop down select "Reset Safari".
    Uncheck the box beside "Remove stored name and passwords"
    Click "Reset".
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Turn off Extensions if any, and launch Safari.
    Safari > Preferences > Extensions
      Delete safari .plist file.
      Quit all applications.
      Option click the "Go" menu in the Finder menu bar.
      Select "Library" from the drop down.
      Library > Preferences >  com.apple.Safari.plist
      Right click it and select  "Move  to Trash".
      Restart.

  • Issue with items that really do have a 0 (zero) price.

    If we have items that have a price of 0.  SAP allows us to enter this in price lists but does not agree when we use this item on an order because it does not accept that the price is 0.
    Please tell us what we should do. I do not like the solution of putting a price of 0.01 in because it will look messy on our invoices if we have to apply a 100% discount to put it at 0.

    Hi,
    What item is that in your Sales Order that has zero value?
    It is recommended that you should use Free Goods Pricing for this item in your sales order as Allen have suggested.
    This would solve your problem..
    Thanks.
    Rgds.

  • When trying to update phone, a message says i have purchased items that have not been transferred to iTunes, what is this?

    When trying to update phone, a message says i have purchased items that have not been transferred to iTunes, what is this?

    We need a bit more information to help.
    Are you trying to update your iPhone using iTunes on your computer?  If so, did you make purchases through the iTunes Store or App Store on your iPhone, and fail to sync them with your computer?  That is the likely meaning of what you are seeing.  If this is true, the purchases would be added to iTunes in your computer before the upgrade proceeds.

  • I'm on the latest version and on many websites that have links to others those links will not load.

    I'm on the latest version and on many websites that have links to others those links will not load. Links within a site work but anything that sends me elsewhere will no longer load in a new tab. I'm on a mac running Lion.

    It means what the message says. The format of the song can't be converted to a format compatible with the iPod.
    Does it play in iTunes?
    Where id the song come form?
    Try deleting and reimporting into iTunes.

  • How to delete purchased items that have not yet downloaded

    How do I delete purchased itune items that have not been downloaded.  When I first started using itunes to download movies I would recieve both hd and standard and I don't want both.....I want to delete all the hd ones.

    Sorry, but you can't remove things already in the download queue. If you don't want the HD versions, just buy the standard-definition versions ("Buy Movie" rather than "Buy HD Movie"). As to movies already in the queue, it will be by far the easiest to just let them finish downloading.
    Regards.

  • [svn:fx-4.0.0] 13714: updating the AIR kits with versions that have the fx4 swc recompiled using SDK 13653

    Revision: 13714
    Revision: 13714
    Author:   [email protected]
    Date:     2010-01-22 08:12:15 -0800 (Fri, 22 Jan 2010)
    Log Message:
    updating the AIR kits with versions that have the fx4 swc recompiled using SDK 13653
    Modified Paths:
        flex/sdk/branches/4.0.0/in/air/mac/AIR Integration Kit.tbz2
        flex/sdk/branches/4.0.0/in/air/win/AIR Integration Kit.zip

    Thanks dude, you saved my ***!
    This is my platformOptions.xml file now:
    <platform xmlns="http://ns.adobe.com/air/extension/3.5">
        <sdkVersion>6.0</sdkVersion>
        <linkerOptions>
            <!-- to link with the libicucore.dylib -->
            <option>-licucore</option>
            <option>-framework GameKit</option>
            <option>-framework CoreData</option>
            <option>-framework StoreKit</option>
            <option>-framework iAd</option>
            <option>-framework MessageUI</option>
         </linkerOptions>
    </platform>
    And it works!
    I looked into including the 2 .a files
        <packagedDependencies>
            <packagedDependency>libWebp.a</packagedDependency>
            <packagedDependency>libFlurryAnalytics.a</packagedDependency>
        </packagedDependencies>
    I put the 2 files into my ane build folder and into my adt command line, but when I try to build the app I get an duplicate symbol error... so i took them out.
    \o/

  • Getting letters for items that have been removed from my credit report

    I have gotten several credit cards in the past month as I have been working on rebuilding my credit. Over the past few weeks I have been receiving letters from collection agencies for items that have been removed from my credit report. Has anyone else had this issue? Should I just throw this stuff away since it's not longer being reported on my credit report and the collections are so old they've been removed from the report? I am freaking out a bit. Any advice is welcome.

    wonderwoman1970 wrote:
    They were removed because they are over 8 years old.They can still try to collect, they just cannot place it on your reports. If its also beyond SOL in your state, you have to option to sent them a Cease Communications letter, charmingly refferred to as a FOAD letter. (Google it to find the meaning of that acronym).They will just sell it to another JDB, who may send you another collection notice. Keep all correspondence regarding this debt in order to keep track of it. You also have the option to settle it for a small percentage - I would suggest offering no more than 5-10% of the original amount (not some inflated "new balance"), and in your offer letter refer to it as "old, time barred debt, that is not a current financial obligation" but that you are willing to settle only to close out the account.

  • How to improve Oracle Veridata Compair pair performance with tables that have big (30-40MB)CLOB/BLOB fileds ?

    How to improve Oracle Veridata Compair pair performance with tables that have big (30-40MB)CLOB/BLOB fileds ?

    Can you use insert .. returning .. so you do not have to select the empty_clob back out.
    [I have a similar problem but I do not know the primary key to select on, I am really looking for an atomic insert and fill clob mechanism, somone said you can create a clob fill it and use that in the insert, but I have not seen an example yet.]

  • How do i retrieve deleted items that have been deleted by mistake

    how do i retrieve deleted items that have been deleted by mistake ?

    If they’re not in a backup, try using a data recovery product such as the ones listed here. Don't write anything else to the drive until the files are recovered or you choose not to recover them.
    (116899)

  • Project code based  Sales Order and Purchase Order - Item wise Report

    Dear all,
    Scenario:
    We are doing business based on Projects.  So, for every Sales , Project code is created and Sales order is booked with Project code and subsequently Purchase Order is booked with Project code. (Note:Some cases, few items might not be purchased since stock is available.)
    We want report like
    SO Project code
    SO Posting date
    SO Sales Employee
    SO Customer Name
    SO Item code
    SO Quantity
    SO Unit price
    SO Row Total
    PO Project code
    PO Posting date
    PO Sales Employee
    PO Customer Name
    PO Item code
    PO Quantity
    PO Unit price
    PO Row Total
    *SO line item and PO line item for same project should be parallel , that is important and challenge (certain cases, item in SO might not be in PO, for such cases Blank field should appear for PO Item code.)
    Thanks in advance,
    Regards,
    Dwarak.

    Hi Dwarak.......
    Your Report is right but a small change you have to make Left join RDR1 with POR1........
    Try this.......
    SELECT T0.PrjCode, T1.Project, T0.PrjName, T1.DocNum, T1.DocDate, T1.CardName, T2.ItemCode, T2.Dscription, T2.Quantity, T2.Price, T2.LineTotal, T3.Project, T4.ItemCode, T4.Dscription, T4.Quantity, T4.Price, T4.LineTotal FROM OPRJ T0 INNER JOIN ORDR T1 ON T0.PrjCode = T1.Project INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry LEFT JOIN OPOR T3 ON T0.PrjCode = T3.Project LEFT OUTER JOIN POR1 T4 ON T3.DocEntry = T4.DocEntry AND T2.ITEMCODE = T4.ITEMCODE INNER JOIN OITM T5 ON T2.ItemCode = T5.ItemCode WHERE T0.PrjCode ='[%0]' AND
    T5.ItmsGrpCod in ('108', '110') GROUP BY T0.PrjCode, T1.Project, T0.PrjName, T1.DocNum, T1.DocDate, T1.CardName, T2.ItemCode, T2.Dscription, T2.Quantity, T2.Price, T2.LineTotal, T3.Project, T4.ItemCode, T4.Dscription, T4.Quantity, T4.Price, T4.LineTotal
    Regards,
    Rahul

  • HT1766 My iPhone 5 "froze" and the only item that is displayed is an iTunes logo (musical notes) and a white USB cord with arrow pointing towards the logo.  I cannot access the iPhone through my computer or get it to do anything else.  Dave

    While attempting to set up my new iPhone for iTunes the first time, an error message displayed on my computer saying that I needed to restore it to my factory settings and the only function that the iPhone displays is the message listed above.

    that's the exact same thing that happened to my iPhone 5. (see my thread) Well that occured after I downloaded the iOS 6.2. The very same image appeared to my phone. What I did was (well the situation left me no option) restored it to factory settings. However, your iTunes must dowload (i think) new version of software for your phone. It took me 3 hrs!. But I also have to warn you. It may still ask you to restore again, and again, and again, after each restoration.
    What I did was, disconnect the cable from your phone and computer, then press the power and home button together, hold it down lke that till the apple logo appears. The phone successfully worked but Siri & the voice command keep messing with my calls, playing music by itself, returning to home by itself.

  • Edit code for change drive letters in paths for links, to also work with Fonts that have been moved.

    I have the following code that looks through my links and changes all of the drive letters to the new locations where they exist.  So if something stays in the same folder structure, but moves to a new drive E: and InDesign can not longer find it, you can run the code and have it fix them all.
    Well I want to do the same but for fonts that have also moved.
    Thank you in advance for any and all help!
    if (app.documents.length == 0) {
        err("No open document. Please open a document and try again.", true);
    if (File.fs != "Windows") {
        err("This script is for Windows only.");
    var myDoc = app.activeDocument;
    var myLinks = myDoc.links;
    var myCounter = 0;
    if (myLinks.length == 0) {
        err("This document doesn't contain any links.", true);
    var mySettings = CreateDialog();
    for (i = myLinks.length-1; i >= 0 ; i--) {
        var myLink = myLinks[i];
        if ( myLink.status == LinkStatus.LINK_MISSING || (myLink.status != LinkStatus.LINK_MISSING && mySettings[2] == false) ) {
            var myOldPath = myLink.filePath;
            var myNewPath = myOldPath.replace(mySettings[0] + ":\\", mySettings[1] + ":\\");
            var myNewFile = new File(myNewPath);
            if (myNewFile.exists) {
                myLink.relink(myNewFile);
                try {
                    myLink.update();
                catch(e) {}
                myCounter++;
    if (myCounter == 1) {
        alert("One file has been relinked.", "Finished");
    else if  (myCounter > 1) {
        alert(myCounter + " files have been relinked.", "Finished");
    else {
        alert("Nothing has been relinked.", "Finished");
    function err(e, icon){
        alert(e, "Change drive letter in path", icon);
        exit();
    function CreateDialog() {
        var myDrives = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "y", "Z"];
        var myDialog = new Window("dialog", "Change drive letter in path");
        var myPanel = myDialog.add("panel", undefined, "");
        myPanel.orientation = "column";
        myPanel.alignChildren = "left";
        var myGroup = myPanel.add("group");
        myGroup.orientation = "row";
        var myStText1 = myGroup.add("statictext", undefined, "Change ");
        var myDropDownList1 = myGroup.add("dropdownlist", undefined, myDrives);
        if (app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl1") != "") {
            myDropDownList1.selection = myDropDownList1.items[app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl1")];
        else {
            myDropDownList1.selection = myDropDownList1.items[2];
        var myStText2 = myGroup.add("statictext", undefined, " to ");
        var myDropDownList2 = myGroup.add("dropdownlist", undefined, myDrives);
        if (app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl2") != "") {
            myDropDownList2.selection = myDropDownList2.items[app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl2")];
        else {
            myDropDownList2.selection = myDropDownList2.items[3];
        var myCheckBox = myPanel.add("checkbox", undefined, "relink only missing links");
        if (app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_checkbox") != "") {
            myCheckBox.value = eval(app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_checkbox"));
        else {
            myCheckBox.value = true;
        var myButtonsGrp = myDialog.add("group");
        var myOkBtn = myButtonsGrp.add("button", undefined, "Ok", {name:"ok"});
        var myCancelBtn = myButtonsGrp.add("button", undefined, "Cancel", {name:"cancel"});
        myOkBtn.onClick = function() {
            if (myDropDownList1.selection.index == myDropDownList2.selection.index) {
                alert("Both drive letters should not be the same.", "Change drive letter in path");
            else {
                myDialog.close(1);
        var myDialogResult = myDialog.show();
        if (myDialogResult == 1) {
            app.insertLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl1", myDropDownList1.selection + "");
            app.insertLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl2", myDropDownList2.selection + "");
            app.insertLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_checkbox", myCheckBox.value + "");
            return [ myDropDownList1.selection.text, myDropDownList2.selection.text, myCheckBox.value ];
        else {
            exit();

    ok, so I have discovered where the issue came from...
    The code you helped me with before, were I removed all links and my link character styles that I had (found here: http://forums.adobe.com/message/5881440#5881440)
    Well it set all the items I was finding/replacing to unknown fonts that my machine doesn't have (Like Helvetic Neue Bold, instead of just Helvetica Bold, etc).
    Is there an easy way of fixing this?
    The only way I know to fix it right now is:
    Go to Package >> go to Fonts >> Select the the font that says it's missing >> Select Find First >> CLOSE ALL OF THIS, then use the eye-dropper to select the text around that font which copies the formatting and then apply it to the text who's formatting got messed up.  And then start the process all over again for the next occurence of that word whose formatting got stripped.

  • I received an ipod touch 5th gen for Christmas.  The first songs i've downloaded and synced with my touch have created ghost songs.  They are only on my computer in itunes once but appear on my ipod twice, one copy that won't play.  I can't delete them

    The first songs i've downloaded and synced with my new touch have created ghost songs.  They are only on my computer in itunes once but appear on my ipod twice, one copy that won't play.  I can't delete them.  I've tried unticking all the music that was on the ipod via itunes and re-syncing, which in theory should delete all music from my ipod.  It does except for the 5 ghost songs.   So at present I have no music on ipod except the 5 ghost songs.   Has anyone got any ideas how I can get rid of these?  
    I had no problems with my ipod touch 4th, which I had for years.   Any help would be great.  

    iOS: Device not recognized in iTunes for Mac OS X
    Or
    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or                     
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

Maybe you are looking for

  • My voice memos are not syncing to my itunes library from my iphone 5c

    I have tried everything I can think of, everything but the voice notes will sync. I made sure to check the box that says "include voice memos" and also have tried deleting the voice memo playlist from itunes library on computer, and tried syncing aga

  • MB GUI locking up when waking from sleep

    This doesn't happen every time, but sometimes when I wake the MB, the screen will freeze. The OS is still operating, I can ssh in to the machine. The cursor still responds, but I can't click on anything. The clock will be frozen at the time when the

  • Using ExecutorService class from java.util.concurrent package

    Dear java programmers, I have a question regarding the ExecutorService class from java.util.concurrent package. I want to parse hundreds of files and for this purpose I'm implementing a thread pool. The way I use the ExecutorService class is summariz

  • IMac G5 17" Mac OS X 10.5.6 Install Problems

    I go my hands on an old imac 17" G5. I know OS 10.5.6 or lower will only work with these older machines. I am trying install 10.5.6  iso install onto a SDHC 16gb card. I am having trouble though. I am making the SDHC as a boot up disc but when i boot

  • Tables in Pages working properly.

    Hello Apple Support Community. I need your help. About the document: I've created the document in Pages 09 using Word Processing layout, and added a table with table headers and footers, used the Wrap inspector and ensured my table is set to "Inline"