Userexit in me21n

Hi techies,
in me21n i have to provide validation check for quantity
fld for a perticular storage location(i.e, qty should not exceed say 1000 ,if qty>1000,give error msg )
can u help me out with exact exit name
thanks in advance

Hi Giri,
The following exit may help you out for the same
EXIT_SAPMM06E_012
please do write your code into the exit by taking in the quantity and the storage location into the parameters for TEKPO table.
Hope it solves your problem.
Do reward accordingly.
Thanks
Venugopal

Similar Messages

  • Re: userexit in ME21N

    Hi,
    I like to perform a popup and select prior to the current in line item in ME21N.
    ie. The popup will appear just before the cursor turned to the PO line item entry.
    Is there such a Userexit in ME21N?
    Thanks

    check
    <b>ME_GUI_PO_CUST       Customer's Own Screens in Enjoy Purchase Order
    ME_HOLD_PO           Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_PO_SC_SRV         BAdI: Service Tab Page for Subcontracting
    ME_PROCESS_COMP      Processing of Component Default Data at Time of GR: Customer
    ME_PROCESS_PO        Enhancements for Processing Enjoy Purchase Order: Intern.
    ME_PROCESS_PO_CUST   Enhancements for Processing Enjoy Purchase Order: Customer
    ME_PROCESS_REQ       Enhancements for Processing Enjoy PReqs: Internal
    ME_PROCESS_REQ_CUST  Enhancements for Processing Enjoy PReqs: Customer
    ME_PURCHDOC_POSTED   Purchasing Document Posted
    ME_RELEASE_CREATE    BAdI: Release Creation for Sched. Agreemnts with Rel. Docs</b>
    or else  search in SMOD for Package ME.
    regards
    Prabhu

  • Need an USEREXIT before ME21N / ME22N Save happens 46C

    I am on version 46c, and the BADI ME_PROCESS_PO_CUST is not there. Tried enhancement MM06E005 and MM06E004 , but not helpful. If there are some other Userexits which can be used, please let me know.
    Req: need to modify some data on the line items as per a flag on the header level customer field.
    Thanks
    Kris

    Hi Kris,
    Please take a look at this available user exits.
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving                          
    EXIT_SAPMM06E_013 - Update Customer's Own Data in Purchasing Document                   
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 are the best place to change line item. I used in both places again it depends on your requirement for PBO or PAI.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Userexit for PO Creation (ME21N)

    Hi All,
    The need is to code an userexit in ME21N to fetch TEXTS ( like BOM Header Text ) and populate the same onto the PO. This Userexit should fire as the user keys in the LINE ITEMS on a PO and HITS ENTER. The exit will check the entry and display error messages if need be.
    If anyone has done such a thing before please do let me know.
    Thanks in advance,
    RK

    Hi Ravi
    Use trx SE19 to implement your BADI: create an ZME_PROCESS_PO_CUST using ME_PROCESS_PO_CUST as definition.
    Now in Interface Tabs you can see the METHODs you can use as "user-exit", in particular there's PROCESS_ITEM to manage items data.
    You have to write your code into this method.
    This method has IM_ITEM like parameter in its interface, and it's like the type IF_PURCHASE_ORDER_ITEM_MM.
    This type has the method IF_LONGTEXTS_MM~SET_TEXT, you can try to use it to set your text in item.
    This is code for example:
    DATA: TLINE TYPE MMPUR_T_TEXTLINES.
    CALL METHOD IM_ITEM->IF_LONGTEXTS_MM~SET_TEXT
               EXPORTING
                 IM_TDID      = <YOUR ID>
                 IM_TEXTLINES = TLINE. 
    So you should read the text you want to copy and pass it to TLINE.
    You can use the METHOD PROCESS_HEADER to read the text you need. This METHOD has IM_HEADER as parameter and it's like the type IF_PURCHASE_ORDER_MM, this type has the method IF_LONGTEXTS_MM~GET_TEXT to read header logn text.
    Anyway while you're in implementation of the BADI go to:
    GoTo->Sample Code
    Here you can try an example how to implement the method you need to use.   
    Max
    Message was edited by: max bianchi

  • Userexit or BADI for program *RMMRP000* for background job

    Hi,
    We are scheduling background job for MRP through SM36 using program  RMMRP000 or Through Transaction MDBT (MDBT is calling program RMMRP000) which creates PR (through background job).
    I want to default one field in PR (PO Price field in valuation tab in PR default to gross) using any userexit or BADI.
    Can any body suggest me userexit or BADI for program RMMRP000 for background job
    Regards.

    Hi,
    1. The below are the List of  Userexit for this MDBT t.CODE.
    2. But i dont see any one helping to resolve your issue.
    3. May be you should lookg at the Userexit for me21n or relevant Purhcase requisition creation transaction.
    reg
    dsk

  • Userexit Me21n for vendor number

    Hi Expart,
    I have a requirement when we r createing PO. vendor data putting in me21n screen.
    my requirment is if my vendor no . VIN00010 then only company code 7100 should be selected ME21N
    while creating PO , If different company code is selected error message should be shown . PO n't create .Please let me known How can i do this ? .
    Functional consultants given userexit MM06E005 but this user exit already has been implemented another project . The userexit  MM06E005 having  there function module .EXIT_SAPMM06E_006 ,EXIT_SAPMM06E_007,EXIT_SAPMM06E_008 .Tell me which function module i m using according to my requirment .
    Please tell me any userexit or Badi according to my requirment .
    Regards
    Bhabani

    Hi,
    You can use the already existing implementation of the Enhancement MM06E005.
    Infact an enhancement can be used in only one Project (i.e., implemenation). You have to write the code in the already existing implementation.
    You can also try using BADI ME_PROCESS_PO_CUST.
    Hope this helps.
    Regards,
    Abhisek.

  • PO Header Test userexit or BADI in ME21n

    Hi,
    When I create PO in ME21N,
    I want to make header text field mandaory.Which userexit or BADI I should use.
    Can anybody suggest me with simple code.
    Thanks
    kumar

    Hi KUMAR,
    Header text creation or modifications or making them mandatory, etc is part of customizing...
    You would need a customizing request for that...
    and then go to Transaction SPRO. Its the SAP Customizing Implementation Guide.
    and then drill down the following links...
    Material Management >> Purchasing >> Purchase Order >> Text for Purchase Orders >> Define Text Types for Header Texts
    you can create header texts from here...possibly u'll find a way to make the existing header text field mandatory...
    Will tell you in detail as soon as possible...till then do try this out...
    Regards,
    Radhika

  • Userexit or BADI in ME21n

    I have requirement that when I create PO in ME21N,
    The Purchasing group should come automatically from Z table based on User ID in the ORG.Data Tab of header.
    Next is when I enter Material in Item,It should Check whether that material exists in that Purchasing group or not.
    This 2 enhancement I need.
    Can anybody suggest me which userexit or BADI i should use with details.
    Thanks
    Kumar N

    HiKumar ,
    Pls check the following steps to find the USER EXIT And BADI For ME21n:
    If u want to search the relevant exit for this, then the procedure is like this.
    Run the transaction ME21N.
    Go to Sytem->status.
    Get the package name from the dialog.
    Go to transaction SMOD and enter  F4 help in Enhancement field,then click on Information System write down the package name there its show u all the User exit.
    or
    If u want to search the relevant BADI, then the procedure is
    Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    In 'Display' mode, go to 'Methods' tab.
    Double click the method 'Get Instance' to display it source code.
    Set a breakpoint on 'CALL METHOD
    cl_exithandler=>get_class_name_by_interface'.
    Then run your transaction ME21N.
    The screen will stop at this method.
    Check the value of parameter 'EXIT_NAME'. It will show you
    the BADI for that transaction.
    The BADI Used For the transaction ME21N is ME_PROCESS_PO
    Then Run the transaction SE18,selectcheck box BADI write the BADI name cliuck on Display ,go for the documentation for that BADI ,then u fing which methods is suitable for ur requirment .
    I hope this will ok for u.
    Thank u ,
    Sanjit

  • Userexit MM06E005 for ME21N

    Hi Experts,
    I have added a custom field to item data using exit MM06E005(screen 0111) for ME21/22/23n transaction. when I activate the exit, it creates a tab as "Customer Data" and the field is placed in it. I want to change the tab title from "Customer Data" to "Refrence data". Please advice how to change it. I see the same scenario has been implemented in below thread, but it has not mentioned how to implement it.
    Re: Enhancement MM06E005 for ME21N
    Thanks in advance.
    SA

    I think for any new tabs added you can name them in the SPRO thats how the functional does it for service module,it should be the same for purchasing as well.
    Rajeev

  • ME21N ( BADI OR USEREXIT )

    HAI ALL,
    please help me for me21n ( validations ) .system should not allow preparation of purchase order for a plant
    which is not assigned to company code
    Ex:company code 2000 and plant is 2010 it is correct.
         company code 2000 and plant is 2020 sytem should send error message.

    Hi Asish,
    Please try the badi
    ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
    in se18 -> ME_PROCESS_PO_CUST  -> click on documentation tab to learn more
    Also check the methods
    PROCESS_HEADER
    PROCESS_ITEM
    Regards
    Byju

  • Adding new items in ME21N using USEREXIT/BADI with BOM explosion

    I have following business scenario. There is purchase requisition consisting just one material. In ME21N we are creating new purchase order. This purchase order needs to consist that item (we drag&drop this item from purchase requisition).
    The problem is, that this item is in fact BOM, so we would like to explode it and select just some entries from them basing on some Z* configuration and we can't use standard BOM explosion from ME21N.
    The idea to solve that issue is following:
    1. Explode there BOM for material;
    2. Filter out not needed items from that explosion using Z-config table;
    3. Copy filtered items using USER-EXIT / BADI , ENHANCEMENT-SPOT into purchase order items.
    The best, if this USER-EXIT / BADI, ENHANCEMENT-SPOT will be used only when drag&drop purchase requisition item into new purchase order.
    The point is that I'm not able to find out such USER-EXIT, BADI or ENHANCEMENT-SPOT.
    P.S. There is for instance exit "MM06E007 Change document for requisitions upon conversion into PO", but interface of that exit completely doesn't fit my needs.
    Any ideas?

    Hello Tomasz Suchanek ,
                                                  There is no BADI/ Enhancement Spots / User Exits that you can use for this requirement.
    You are trying to change the SAP standard Functionality.
    You need to contact SAP for consulting .
    Thanks,
    Greetson

  • BAdI or USEREXIT for changing data of purchase order header - ME21N

    hello all,
    I would like to ask you any way to change the field "reason for change" of the Purchase Order  header.
    I tried implementing the method PROCESS_HEADER of IF_EX_ME_PROCESS_PO_CUST
    or changing reason_code of structure ekko in user exits EXIT_SAPMM06E_006 and EXIT_SAPMM06E_006
    but it seems not to work.
    How can i do?..
    sap. v. ecc 6.0

    >
    Shiva Kumar wrote:
    > Use the user exit : EXIT_SAPMM06E_012: This is triggered on saving of a PO...and user can add validations etc in the exit...
    > Cheers
    It doesn't work...
    >
    Martin Voros wrote:
    > you get reference to object IM_HEADER in method PROCESS_HEADER of BADI ME_PROCESS_PO_CUST. On this object you can call two methods - GET_DATA and SET_DATA. GET_DATA returns structure with type MEPOHEADER. You can change your field here and then call method SET_DATA with your modified structure. This should work.
    > Cheers
    ..same thing for this solution...
    the field that i want to change is RSCOD inside structure EREVGRID...it seems to have also get_data and set_data methods ( IF_REVISION_ITEM_DCM ),
    but I don't know which BAdI to implement that has a object type ref to EREVGRID...
    Edited by: E_M on May 13, 2008 11:08 AM

  • Error as Enter while creation of PO due to this PO is not created in ME21N

    Hi All,
    I have an issue where one of my user cannot able to create a PO with refernce to Network and he is getting error as ENTER while creation of PO in ME21N and there is no long text for this error.Also user cannot able to create a PO whenever he clicked on save button the only option he got is Hold or Edit or cancel.
    I have asked user to provide the same information (inputs while creation of PO in ME21N) to his colleague and check whether he can able to create a PO successfully or not. User confirmed that his colleague can able to create a PO successfully.
    Please let me know what was the root cause behind this.
    Awaiting for your valauble inputs & quicker reply.
    Note: I have crossverified with technical team and they confim all the required roles are in place for my user.
    BR // Kumar.S

    Hi Jurgen,
    Question from you
    Just message ENTER is pretty unusual. Even if there is no long text, the message should at least have a message number, can you tell this number? In general there should be the field name next to the message.
    Answer from me
    As you have said i have cliked on the error ie ENTERand got the message number as below,
    Enter
    Message no. ME083
    Question from you
    Is there any userexit which may cause this error?
    Answer from me
    According to me know because only one user is having a problem other users can able to create a PO sucuessuflly.
    Question from you
    What happens if a different user enters the PO under the user ID of the user who can only hold the PO?
    What happens if the effected user creates the PO under the user ID of a different user (who is usually able to save POs)?
    Answer from me
    not tried will let u know on this later
    Question from you
    Have you customized a new process, and this user is testing it?
    Answer from me
    No
    Please let me know whether the above my inputs help you to identify the issue where exactly it was.
    BR // Kumar.S

  • Regarding purchase order creation using me21n

    Hi,
    I want to set default values for Purch. Org for a document type PO:Service-FREIGHT in me21n transsaction.
    which userexit or badi can be used for this?
    When a document type PO:Service-FREIGHT  is entered, Purch. Org should have deafualt value set automatically..
    Through 'Personal Settings' it is possible but it applies for all document type..& I need it for dot tytpe
    PO:Service-FREIGHT  .
    Thanks in advance...

    Hi
    Go to me21n transaction.
    click on personal setting icon.
    Once that is done -select default balues tab.
    And you can save the settings here.
    Check out this link:
    http://home.netlinc.org.uk/ContentStore/__Public/Documents/0022100/22147/C2-C4%20ME21N%20CREATE%20PERSONAL%20SETTINGS.pdf
    Regards
    Neha

  • Using BADI to change the field value in standard transaction ME21N

    Hello People,
    In transaction ME21N to create PO, i have a field where i want to allocate the batch ( CHARG )  NONRETG to all the PO's that are created. I have a BADI for that, however i do i implement the BADI so that the Batch 'NONRETG' is automatically allocated to all the PO's that are created. Please advise whether a USER EXIT would be better or a BADI would do the work. Right answer would be rewarded.
    regards,
    Sandeep Salaria

    Hi,
    YOU can very well implement.Use this BADi->ME_GUI_PO_CUST
    Incase you are going to implemet userexit U can use the Exit: MM06E005.
    Regards
    Kiran Sure

Maybe you are looking for

  • AVI files loaded in Premier Elements 7 only show audio and not video.

    I am a new user of Premier Elements 7 and am having problems getting the video into a new project I set up. I have 6 AVI v1.0 clips that play both audio and video in Windows 7, but when I set up a project and import them, I only get the audio side an

  • Dr Watson Error while trying to Print report

    Hi, I generated reports using Reports 6.0, however I'm getting Dr Watson error while tring to print the same. Any solutions to get it fixed will be appreciated. Soumya

  • WLS 6.1, SP2, Error Deploying WAR, Manifest file problem

    Hi, When I moved to SP2 on 6.1, I am getting a new error while deploying a war file. It looks from the stack trace that there is a problem with my manifest file, but I am just taking the manifest file created by jdk1.3 jar utility - My META-INF dir i

  • How to connect to remote computer using ARD and AE

    Does anyone have detailed instructions on how I can us my AirPort Extreme and setup all the ports to allow the use of ARD remotely?

  • Public Parts and NoClassDefFound

    Hi, I created an EJB with a public part. in the public part there are two classes. now I want to use the classes in a WebDynpro-Project (same SC). I added the public parts as used-DC in my WebDynpro-DC and I am able to build and deploy the DC. But no