PO and PR Enhancement

Hi  ,
    I want to check and block  duplicate material codes in line items of PR(ME51n)  and PO (ME21n) .
Pls guide me on this let me know if any User exit of BADI for PR and PO.
Thanks and Regards,
Amit

Dear Amit,
you can have visibility over all items from Process_Header method:
example from me_process_req_cust:
  data: lt_header  type mereq_header.
  data: lt_items   type mmpur_requisition_items.
  data: wa_items   type mmpur_requisition_item.
  data: lt_data    type mereq_item.
  data: l_flag     type c.
  lt_header = im_header->get_data( ).
  lt_items = im_header->get_items( ).
loop at lt_items into wa_items.
    clear lt_data.
   lt_data  = wa_items-item->get_data( ).
put your code here.....if duplication  set l_flag = 'X'.
   clear wa_items.
  endloop.
if l_flag is initial.
    message 'A Material Number cannot be used in several items' type 'E'.
  endif.
best regards, SL

Similar Messages

  • Implicit and Explicit Enhancement

    Hi Gurus ,
    Can anyone please let  me know about what is  implicit enhancement and explicit enhancement.Steps involved in the same .
    Thanks ...
    ashok...

    Hi
    Implicit enhancement points are basically points within ABAP code where an enhancement point is implied, and in which case can be created. Examples of implicit enhancement points are at the beginning and end of FORM’s, at the end of a program, include or function module etc. Below is a step by step demonstration of how to create and implicit enhancement point.
    Explicit enhancement points are basically hooks already coded into the program by SAP at various points of the code. See program RIAUFMVK for examples of these! These are very easy to implement simply go into enhancement mode of SE80 and right click on the enhancement point where you want to add your code and choose ‘Enhancement Implementation->Create’ Give it a name, description and assign it to a change request (should not be a Z package) and then simply add the code as normal
    check the help
    http://help.sap.com/saphelp_nw70/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Regards
    anji

  • Difference between implicit enhancement and explicit enhancement

    What is the difference between implicit enhancement and explicit enhancement .

    Hi Peters,
    Implicit enhancement option
    Throughout the ABAP system, enhancement options are automatically available at certain pre-defined places. Some of the implicit options are:
    u2022 At the end of all the programs (Includes, Reports, Function pool, Module pool, etc.), after the last statement
    u2022 At the beginning and end of all FORM subroutines
    u2022 At the end of all Function Modules
    u2022 At the end of all visibility areas (public, protected and private) of local class
    To view all the implicit options available in a source code, choose u2018Edit -> Enhancement Operations -> Show Implicit Enhancement Optionsu2019 from the editor.
    Befor that you click on the spiral icon button in the application toolbar
    Explicit enhancement option
    The Implicit enhancement options are provided at specific source code places explicitly by SAP (Note that these enhancement definitions can also be created by partners and customers in their code).
    There are two types of Explicit Enhancement options available. One which can be provided at a specific place - called Enhancement Point, and another which can be used to replace a set of statements u2013 called Enhancement Section. For this, we now have two new ABAP statements, viz.
    u2022 ENHANCEMENT-POINT
    u2022 ENHANCEMENT-SECTION
    When the Enhancement-Section is implemented, only the implementation gets executed and the original code doesnu2019t get executed. This is a new technique, which didnu2019t exist previously in any of the old ways of enhancing, to exclude any standard SAP code from execution. Because of this, there can be only one active implementation of an Enhancement-Section. On the other hand, there can be multiple active implementations of an Enhancement-Point, in which case all the implementations will be executed with no guarantee in the order of execution.
    For more information check the following link
    [http://help.sap.com/saphelp_nw70/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm]
    Thanks,
    Surya

  • Implicit enhancement and explicit enhancement

    Hi Experts,
    I have implemented one requirement using implicit enhancement but i want to check whethere there is any explicit nhancement or not. Please let me know if any one of you have idea on that in VF02 transaction to do changes in pricing details.
    Regards,
    Dileep.

    Hi,
    For VF02 Programe Name SAPMV60A goto this programe in this we have somany explisit Enhanacement spots, just click Binacular Icon(Find button) and paste Enhancement Spot it will disply list of explisit enhancement spots, select your spot and just right click and create spot and do changes according to your requirement.
    Regards,
    Sanjay Gogikar.

  • Difference between implicit and explicit enhancement points

    Hi Folks,
    I had learned many documents to findout the difference between explicit and implicit enhancement point.I got the theoritical knowledge on that but losing on the practical side..
    Can anybody help me out with one real time scenario where the explicit enhancement points have been implemented and the step by step procedure to implement it..
    Hoping for the positive response from you..
    Regards,
    Rohan.

    Hi Rohan,
    In implicit they are available at the beginning of subroutines defined in the standard reports.
    Edit-> Enhancement operations->show implicit enhancement options.
    This will highlight all the implicit enhancements in the report.
    In Explicit enhancement we have two different types of enhancements -
    Enhancement point and Enhancement section.
    Enhancement point - SAP has some standard functionality defined for a report , but it may be required that you'll need to add your own code. In this case the code that you'll add will be executed along with the standard code.
    Enhancement section - SAP has its standard functionality defines but it may not suit your requirement, in that case you may need to add your code and you'll need that code to be executed only. By this method the existing code is automatically commented and a copy of the same code is available to edit.
    After executing the report only your code will be executed and the standard code will be bypassed.
    For Practicle implementation, follow this link.
    Link : [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a653307fc6fc]
    i hope it will give you some clear picture....
    Thanks.
    Anurag

  • Is there a way to disable my premium sond (eq and adio enhancement?

    is there a way to disable my premium sond (eq and adio enhancement? Mine is affecting the sound at all so i'm thinking something has been disabled or something as I know I have used it before and it worked

    Hi,
    Try using Recovery Manager to reinstall your original Audio Driver ( ie Conexant, IDT etc ) - the procedure for using recovery manager to reinstall Software and Drivers is detailed in the relevant document on the link below.
    Recovery Manager - Windows 7
    Recovery Manager - Windows Vista
    After the reinstallation has completed, restart the notebook.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Query on Enhancement Spots and Composite Enhancement spots

    Hi Group,
    I want to know about "Enhancement Spots and Composite Enhancement spots" and how to implement them in the system?
    please provide me the uses and how to implement them for our requirements?
    Thanks,
    Vishnu.

    Hai.
    check the links.
    http://help.sap.com/saphelp_nw70/helpdata/en/91/f1e540f8648431e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/1c/2cee3957f7cd55e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/1c/2cee3957f7cd55e10000000a114084/content.htm
    http://www.sap.info/public/INT/int/index/Category-28943c61b1e60d84b-int/0/articlesVersions-22681475d1a792eff3
    regards.
    sowjanya.b

  • How do you toggle a microphone directly between enhanced and non-enhanced?

    Apparently mixing calls between Microphone.getMicrophone() and Microphone.getEnhancedMicrophone() on the same device doesn't work very well.  Take the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="onCreationComplete()" click="Microphone.getMicrophone().setLoopBack(true);">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                private function onCreationComplete():void
                    Microphone.getEnhancedMicrophone().setLoopBack(true);
            ]]>
        </fx:Script>
    </s:Application>
    You will be able to hear yourself speak at first, but as soon as you click the app, you will no longer be able to hear your voice.  I have also seen this sort of thing in other scenarios.
    To make a long story short, if you call getEnhancedMicrophone() for one device, then try to call getMicrophone() for that same device, the device will stop providing any audio input.  The same is true vice versa.  However if you call getEnhancedMicrophone() for one device, then getMicrophone() for a different device, then come back to the first and call getMicrophone() for it, the device will work just fine.
    Why?  Is there any way to just toggle between enhanced and non-enhanced settings for the same device, without reaching out to an unrelated device?  Thanks!

    On your Microphone reference you have these constants you can set your options to:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/MicrophoneE nhancedMode.html
    As you can see there, MicrophoneEnhancedMode.OFF disables enhanced mode. You would set your Microphone references .mode property to equal that to disable enhanced, or use one of the other relevant options to enable it. Thus, you should always use enhanced so you can toggle it.

  • Has anybody tested the import and linking enhancements in RH 9 HTML?

    All,
    I am testing a trial version of RH 9. All looks good except I’m not understanding some of the import and linking enhancements. Has anyone tried the new relative path benefit by moving a project or source document? I’ve done both and I get the same results as in RH 8—if the project moves, the links work fine, and when the source document moves, you have to use the “restore to link” feature in order to update the link document. Am I missing something?
    Here’s the “what’s new in RH 9” lingo:
    RoboHelp 9 saves the relative path, instead of the absolute path, of linked documents. As a result, the links work even when the RoboHelp project and the linked Microsoft Word or FrameMaker documents are moved.
    Note: Earlier versions of RoboHelp projects that contain absolute paths of linked documents open normally in RoboHelp 9. While saving these projects, RoboHelp 9 saves the relative path
    Thanks!

    Looking again at your first post in the thread, it does state on saving RoboHelp 9 changes the path to being relative. If Linking by Copy then it is an enhancement as it avoids the link having to be recreated if you move the project.
    For Create by Reference I would say an absolute path is preferable as it then doesn't matter if the project moves and you are saying that does work. If it is the document that moves, somehow RoboHelp has to be told where.
    Sounds like what is wrong is the help not qualifying when the relative link is used. You could add a comment to the help to get that fixed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • [svn:fx-trunk] 16334: Preliminary Spark Image and BitmapImage enhancement feature work.

    Revision: 16334
    Revision: 16334
    Author:   [email protected]
    Date:     2010-05-26 19:31:28 -0700 (Wed, 26 May 2010)
    Log Message:
    Preliminary Spark Image and BitmapImage enhancement feature work.  Also included with this checkin is the ability for BitmapImage and s:Image instances to share an image cache.  Queueing is next up to be checked in.
    QE notes: Proceed with testing, though PARB related renames are pending. Not considered code complete.
    Doc notes: Should begin reviewing new classes in preparation for doc'ing.
    Bugs: None
    Reviewer: Ryan
    Tests run: Checkin, cyclone server Mustella tests.
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/mx-manifest.xml
        flex/sdk/trunk/frameworks/projects/framework/manifest.xml
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapSmoothingQuality.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedList.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedListNode.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.png
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentCache.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentRequest.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/IContentLoader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/LoaderInvalidationE vent.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ImageLoadingSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ImageSkin.mxml

  • I have Lightroom 4 on a PC and while enhancing photos, the screen seems to keep refreshing. What can be the problem?

    I have Lightroom 4 on a PC and while enhancing photos, the screen seems to keep refreshing. What can be the problem?

    Leilani ~ Welcome to the Support Communities. Before posting your question it's worth searching the Communities — here's an Apple tutorial:
    Apple Support Communities: Searching
    ...But since you've already posted, look in the More Like This section to the right of your post. Also:

  • Re:cube and ods enhancement

    1.i'm trying to add a new field to my old cube ...plz guide me the steps
    i got a small doubt here ,i know we have to delete the data in the cube but i'm curious why we delete data and than enhance
    2.i want to add a filed to my exsisting ods..plz guide me the steps
    i'm confused with ods..whether to delete to data or not,plz tell me the reasons for deleting and for not deleting...

    Hi,
    NO need to delete the data in ODS as well as in Cube. In Development box, add new feilds to Cube and ODS and then map in Update rules and send it to Qty and Prod servers. If you are filling data for new feilds from existing Transfer structure it is Ok, but if you want to add any other objescts in Transfer rules, you need to activate the trasnfer rules also. I jsut added new feilds to my existing cube, it is having 1 year data, it was not effected, it is working fine.
    Thanks
    Reddy

  • And i enhanced these objects into process chains also

    Hi All,
                      as per my requirement i created infopackage and dtp in development system. and i enhanced these objects into process chains also. now i want to send this infopackage ,dtp and enhanced process chains(at the process chain level i want to add only this infopackage and dtp).i dont want to collect total chain.please guide me.
    Regards,
    chandra.

    Hi,
    The Process Chain definition will be collected with the Infopackage & DTP automatically when you make the change (It will prompt for a Transport Request).
    But the other Process Variants which is used in the Process Chain will not come, but if you need them then u need to collect it using Transport Connection.
    PS. Make sure the Start Variant is set to "Start using Meta-Chain" so that the chain is not scheduled automatically after Transport.
    Regards,
    Chathia.

  • Message Center Tips and Recent Enhancements

    Message Center Tips and Recent Enhancements
    Verizon Online is excited to present enhancements to Message Center! Our changes provide a richer and more streamlined experience for you. As always, our Message Center customers are our priority. If you have questions about using Message Center or need Message Center help, please review the following tips and eSupport links.
    Need Message Center help?
    If you are having issues using Message Center, the following tips solve many common issues with Message Center.
    Email Session Timeouts: You may experience email session timeouts if you are using the AOL operating system.  For an optimal Message Center experience, we recommend using Internet Explorer 8.0 or the Mozilla Firefox 3.6.13 internet browsers.
    Use with VPNs/firewalls and corporate networks: Message Center is a consumer/residential email application. It may not function as designed when accessed from corporate networks or corporate VPNs/firewalls.
    General Message Center eSupport
    http://www22.verizon.com/ResidentialHelp/FiOSInternet/Email/Setup%20And%20Use/QuestionsOne/126953
    http://www22.verizon.com/ResidentialHelp/HighSpeed/Email/MessageCenter/Questions/126953.htm
    My Email is Not Working – Message Center and Webmail
    http://www22.verizon.com/ResidentialHelp/FiOSInternet/Email/Troubleshooting/QuestionsOne/85631.htm
    http://www22.verizon.com/ResidentialHelp/HighSpeed/Email/Troubleshooting/QuestionsOne/85631.htm
    Message Center Enhancements
    A.  Inbox Layout View Options
    Classic View: It simply provides a list of all of your messages on your screen. To view a message, you double click on it from the list view.
    Preview Button View: It provides for both a list of your messages and a preview pane for the selected message. You can adjust the size of the preview pane and still Reply/Reply All/Forward/Delete within the Preview Pane. 
    B.  Default Font/Point/Color for Text:
    Users can also set the default text font, point size and color for new emails and replies to emails.Additionally, users can expand/shrink the Right and Left navigation bars to maximize email viewing space. 
    C.  Drag and Drop Messages:
    To mirror Classic Webmail, we introduced the ability to Drag and Drop Messages across folders. 
    D.  Enhanced Search Function:
    We enhanced the Search feature to enable Search by Sender, Subject, To/CC or Message to improve response time. 
    E.  Email Address Syntax Check:
    In addition to verifying the existence of the email address, Verizon also checks the syntax of the email address (es) and highlights the incorrect email address (es) before the email is sent.

    Hello,
    Please  check the attached note 1005358.
    Note: Customers using SRM 4.0, which allows using integrated ITS 6.40,
    must use the integrated ITS 6.40 if they wish to use ERP 2005 (ECC 6.0)
    as a Backend system. No code changes will be done for SRM 4.0.
    In order to maintain the product version please check the following;
    http://service.sap.com/system-data, note 172481.
    Also, check the following notes:
    929208 - 640 RFC branch, "Use the most recent SAPGUI version"
    721993 - ITS updates in Release 6.40 (SAP Integrated ITS)
    I hope it helps.
    Kind regards,
    Gaurav
    PLEASE GIVE FULL POINTS FOR USEFUL REPLIES

  • Creating Switch and adding Enhancement to this switch ?

    hi,
    I am enhancing my webdynpro component and for that i am creating an Enhancement.
    Now I want to Add this Enhancement to a Switch but I have little knowledge how to create a switch and add enhancement to the switch.
    Kindly let me know the steps and transaction to be used to achieve the same.
    Thanx.

    Hi,
    you can create your own switch in transaciton SWF1. The whole process is described in the [application help|http://help.sap.com/saphelp_erp2005/helpdata/EN/af/e8b540afc87c2ae10000000a155106/frameset.htm] for this transaction. There are some additional material related to switch framework here on SCN. Just enter "switch framework" into search box.
    Cheers

  • How to implement implicit and explicit enhancement points

    Hi,
    Can anybody please provide some technical aspects of enhancement spots. I have gone through several sap sites and help poratl but have not get much technical things (how to implement or related t codes). please do not provide link to read theories.
    Rgds
    sudhanshu

    Hi,
    Refer to this link...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/103a4280da9923e10000000a155106/content.htm

Maybe you are looking for

  • Elements Premier 11 Stops Working

    Premier 11 stops working after it opens my organizer.  This is after I tried to import photos from my cell phone which caused the program to crash. Very frustrated.  Any suggestions?

  • Java7 applet fails to load on Mountain lion & Lion

    I have developed sample cocoa (64 bit) webview application with all plug In settings enabled (setJavaEnabled:YES setPlugInsEnable:YES). But the Java applet plugin has been failed to load. I am using latest Java 7 from Oracle (update 25). I dont know

  • My MacBook will charge but will not turn on

    I have a 2010 MacBook that will charge and the light glows when it is shut but otherwise will not turn on. Any suggestions?

  • PI license issue..

    Hello, I installed PI70 some time back and ordered SAP for license key. But, due to issues i have to re-install it later. What happened here is the hardware key is changed after the installation. Is it means i have request again SAP to get license ke

  • Sales order in Delivery Due List.

    Hi Gurus, I have an issue with the delivery due list, T. Code used is VL10G. Issue : A sales order 'X' is created and is completely delivered and also billed. The same is also confirmed if you look throught the document flow of the sales order but st