Badi in me21n

Hi all,
I have got an requirement to create a BADI for the tcode Me21n.
The requirement is , whenever I put a netprice for a purchase group (PG)- material wiese, it has to check a ztable  where amount will be maintained purchase group wise.
If it exceeds,, should not allow to save teansaction me21n ..
How to do this in BADI...
Can anyone help me out in this..
Cheers
Christina

use:
badi name:ME_PROCESS_PO_CUST
method:PROCESS_HEADER
you can check here and fire a message if amount exceeds.
Amit.

Similar Messages

  • Badi for me21n,me22n,me23n

    HI experts,
          CAn any one help me out infinding a badi for me21n,me22n,me23n, which triggered on every press of enter key or some other check, so that i could kept a validation for the header and item fields of the t.codes

    Hi,
    Go for BADI,
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Reward points if useful....
    Regards
    AK

  • User Exit or BADI for ME21N

    Hi All,
    We are in a situation where in we need to Change the Distribution Channel in the Shipping tab of ME21N transaction.
    Previously, the distribution channel is being picked up form the config (SPRO - Shipping data for plant) but before it picks up from the config we need to change it and update the other distribution channel in the PO.
    We have tried with most of the User exits and BADIs but all of those are of no use for our requirement, as these user exits and badis are triggered after we click on save button. But we need to change the Distribution channel at the point of determination of Shipping data by the system i.e. before save.
    Can any one please help me out with this situation with some User exits or BADIs that are triggered before save button.
    Note: The Shipping data is in EKPV table. We need to change the VTWEG field in EKPV.
    Thanks in Advance,
    Asif Ali Khan

    Asif,
    see these are Exits and BADI for ME21n,
    Enhancement/ Business Add-in            Description                                                                               
    Enhancement                                                                               
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)      
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.    
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N                   
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance    
    MM06E001                                User exits for EDI inbound and outbound purchasing documents   
    MM06E003                                Number range and document number                               
    MM06E004                                Control import data screens in purchase order                  
    MM06E005                                Customer fields in purchasing document                         
    MM06E007                                Change document for requisitions upon conversion into PO       
    MM06E008                                Monitoring of contr. target value in case of release orders    
    MM06E009                                Relevant texts for "Texts exist" indicator                     
    MM06E010                                Field selection for vendor address                             
    MMAL0001                                ALE source list distribution: Outbound processing              
    MMAL0002                                ALE source list distribution: Inbound processing               
    MMAL0003                                ALE purcasing info record distribution: Outbound processing    
    MMAL0004                                ALE purchasing info record distribution: Inbound processing    
    MMDA0001                                Default delivery addresses                                     
    MMFAB001                                User exit for generation of release order                      
    MRFLB001                                Control Items for Contract Release Order                       
    LMEKO001                                Extend communications structure KOMK for pricing               
    LMEKO002                                Extend communications structure KOMP for pricing               
    MM06E011                                Activate PReq Block                                            
    AMPL0001                                User subscreen for additional data on AMPL                     
    LMEDR001                                Enhancements to print program                                  
    LMELA002                                Adopt batch no. from shipping notification when posting a GR   
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC    
    LMEQR001                                User exit for source determination                             
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt                                                                               
    LWSUS001                                Customer-Specific Source Determination in Retail             
    MEETA001                                Define schedule line type (backlog, immed. req., preview)    
    ME590001                                Grouping of requsitions for PO split in ME59                 
    M06E0005                                Role determination for release of purchasing documents       
    M06E0004                                Changes to communication structure for release purch. doc.   
    M06B0005                                Changes to comm. structure for overall release of requisn.   
    M06B0004                                Number range and document number                             
    M06B0003                                Number range and document number                             
    M06B0002                                Changes to comm. structure for purchase requisition release  
    M06B0001                                Role determination for purchase requisition release                                                                               
    Business Add-in                                                                               
    ME_PROCESS_PO                           Enhancements for Processing Enjoy Purchase Order: Intern.    
    ME_PROCESS_COMP                         Processing of Component Default Data at Time of GR: Customer 
    ME_PO_SC_SRV                            BAdI: Service Tab Page for Subcontracting                    
    ME_PO_PRICING_CUST                      Enhancements to Price Determination: Customer                
    ME_PO_PRICING                           Enhancements to Price Determination: Internal                
    ME_INFOREC_SEND                         Capture/Send Purchase Info Record Changes - Internal Use     
    ME_HOLD_PO                              Hold Enjoy Purchase Orders: Activation/Deactivation          
    ME_GUI_PO_CUST                          Customer's Own Screens in Enjoy Purchase Order               
    ME_FIELDSTATUS_STOCK                    FM Account Assignment Behavior for Stock PR/PO               
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests  
    ME_DEFINE_CALCTYPE                      Control of Pricing Type: Additional Fields                   
    ME_COMMTMNT_REQ_RE_C                    Check of Commitment Relevance of Purchase Requisitions       
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions       
    ME_PROCESS_PO_CUST                      Enhancements for Processing Enjoy Purchase Order: Customer   
    SMOD_MRFLB001                           Control Items for Contract Release Order                     
    MM_EDI_DESADV_IN                        Supplementation of Delivery Interface from Purchase Order    
    MM_DELIVERY_ADDR_SAP                    Determination of Delivery Address                            
    ME_WRF_STD_DNG                          PO Controlling Reminder: Extension to Standard Reminder      
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV             
    ME_TRF_RULE_CUST_OFF                    BADI for Deactivation of Field T161V-REVFE                   
    ME_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address                     
    ME_REQ_POSTED                           Purchase Requisition Posted                                                                               
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions     
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched.Agrmts with Release Docu. 
    ME_PURCHDOC_POSTED                      Purchasing Document Posted                                 
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer          
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal          
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders          
    ME_CCP_BESWK_AUTH_CH                    BAdI for authorization checks for procuring plant          
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active                
    ME_BSART_DET                            Change document type for automatically generated POs       
    ME_BAPI_PR_CREATE_02                                                                               
    ME_BAPI_PR_CREATE_01                                                                               
    ME_BAPI_PO_CREATE_02                                                                               
    ME_BAPI_PO_CREATE_01                                                                               
    ME_BADI_DISPLAY_DOC                     BAdI for Internal Control of Transaction to be Invoked     
    ME_ACTV_CANCEL_PO                       BAdI for Activating the Cancel Function at Header Level    
    MEGUI_LAYOUT                            BAdI for Enjoy Purchasing GUI                              
    EXTENSION_US_TAXES                      Extended Tax Calculation with Additional Data              
    ARC_MM_EKKO_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EKKO)          
    ARC_MM_EKKO_CHECK                       BAdI: Enhancement of Archivability Check (MM_EKKO)         
    ME_CCP_DEL_DURATION                     Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders          
    ME_COMMITMENT_STO_CH                    BadI for checking if commitments for STOs are active       
    ME_COMMITMENT_RETURN                    Commitment for return item                                 
    ME_CIP_REF_CHAR                         Enables Reference Characteristics in Purchasing            
    ME_CIP_ALLOW_CHANGE                     Configuration in Purchasing: Changeability Control         
    ME_CIN_MM06EFKO                         Copy PO data for use by Country version India              
    ME_CIN_LEINRF2V                         BADI for LEINRF03 excise_invoice_details                   
    ME_CIN_LEINRF2R                         BADI for CIN India - Delivery charges                      
    ME_CHECK_SOURCES                        Additional Checks in Source Determination/Checking         
    ME_CHECK_OA                             Check BAdI for Contracts                                   
    ME_CHECK_ALL_ITEMS                      Run Through Items Again in the Event of Changes in EKKO    
    ME_CHANGE_OUTTAB                        Enrich ALV Output Table in Purchasing                      
    ME_CHANGE_CHARACTER                     Customer-Specific Characteristics for Product Allocation
    Amit.

  • Screen Badi in ME21N

    Hi Experts.....
    I have implemented a screen exit in ME21N Transaction to add custom fields. With this I could get an extra custom tab in which I have included my fields. Now my req is to get multiple tabs as the fields are more in number. So I wanted to implement this using a BADI. I have searched the BADI named ME_GUI_PO_CUST.
    in this I have passed the screen no and program name and label name along with element as PO and name of view as HEADER. But I cannot see an extra TAb in header details. I also created the subscreen and the corresponding program...
    Can anyone help me to implement a screen badi in ME21N.
    Thank you in advance

    Hi Shakti,
    The BADI ME_GUI_PO_CUST has an example implementation class CL_EXM_IM_ME_GUI_PO_CUST. Check the method SUBSCRIBE to see how the BADI can be subscribed.
    The reason why your custom screen is not appearing is probably because your BADI implementation is not active or the custom screen has not be subscribed properly.
    The code inside method SUBSCRIBE of your BADI implementation should be as follows:
      DATA: ls_subscriber LIKE LINE OF re_subscribers.
    * we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    * each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = 'ITEMSCREEN1'.
    * the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    * the program where the dynpro can be found
      ls_subscriber-program = 'SAPLMEPOBADIEX'.
    * each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    * a label can be defined
      ls_subscriber-label = 'BAdI customer'.
    * the position within the tabstrib can be defined
      ls_subscriber-position = 5.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
    To impelement multiple tabs you have to subscribe each tab differently using the parameter
    ls_subscriber-name
    of the BADI
    and also name each tab differently using
    ls_subscriber-label
    Let us assume that you have to implement three tabs, then you have to subscribe each tab with a different name and also label each tab differently.
    You can name subscribe the first tab with name ITEMSCREEN1 label BAdI customer, subscribe 2nd tab with name ITEMSCREEN2 label BAdI customer'2 and subscribe 3rd tab with name ITEMSCREEN3 label BAdI customer3.
    Mention a different positions for each tab.
    Like say for BADI customer1 ls_subscriber-position = 5., for BADI customer2 ls_subscriber-position = 6. and for BADI customer3 ls_subscriber-position = 7..
    Also append the subscribe data three times for the three tabs.
    This will display three tabs with names BADI customer1, BADI customer2 and BADI customer3.
    Hope the above information helps.
    Regards,
    Abhisek.

  • Badi for me21n tcode

    Hi All,
    I have a requiremnet in ME21N Transaction.
    While creating a PO i want to validate  some values based on services tab in the items.I found one badi related to services but when i am putting a break-point its not getting triggered.
    BADI IS  -
    ME_PO_PRICING_CUST
    Please help me which BADI shall i use for this purpose, its very urgent.
    Regards
    Mona

    Hi Monalisa,
      Check out the threads given below:
    BADI for ME21N
    BADI in ME21N
    With luck,
    Pritam.

  • BADI :BADI for ME21N in 4.6C

    Hi,
    Can any one say me what is the BADI for ME21N and ME22N in 4.6C.
    Thanks in advance,
    Donlad

    Hello,
    To my mind , the only safe way to save a smartforms in 4.6C is to save the two files of the transport as there is no versionning and no export to xml file.
    Sincerely
    Christophe Blineau

  • BADI for ME21N to deactivate HOLD button?

    Hi All,
    I have one doubt in ME21N t'code i:e
    i want to  implement badi for me21n for deactivating for HOLD button. how can i do this one.
    <removed_by_moderator>
    Thanks in Advance,
    Srinivas.
    Edited by: Julius Bussche on Oct 29, 2008 10:36 AM

    you have badi for doing this .ME_HOLD_PO this is badi . Implement this in se19 . You have IS_ALLOWED method . In this method  write ch_allowed = ' '. This will solve your requirement.
    Edited by: A kumar on Oct 29, 2008 10:34 AM

  • 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

  • Badi for ME21N & ME22N to check storage location

    Hello Guru's,
    I need BADI for ME21N & ME22N to check storage location is maintained for plant used in PO i'm using method IF_EX_ME_PURCHDOC_POSTED~POSTED with definition name ME_PURCHDOC_POSTED but this throws message on SAVE.
    But my requirement this message should be displayed before saving.Please guide

    Hi,
    Use BADI:
    ME_PROCESS_PO_CUST
    BADI CL_ME_PO_CUST
    Business Add-in
    ME_PROCESS_PO                           Enhancements for Processing Enjoy Purchase Order: Intern.
    ME_PROCESS_COMP                      Processing of Component Default Data at Time of GR: Customer
    ME_PO_SC_SRV                              BAdI: Service Tab Page for Subcontracting
    ME_PO_PRICING_CUST                    Enhancements to Price Determination: Customer
    ME_PO_PRICING                              Enhancements to Price Determination: Internal
    ME_INFOREC_SEND                        Capture/Send Purchase Info Record Changes - Internal Use
    ME_HOLD_PO                                  Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_GUI_PO_CUST                           Customer's Own Screens in Enjoy Purchase Order
    ME_FIELDSTATUS_STOCK               FM Account Assignment Behavior for Stock PR/PO
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests
    ME_DEFINE_CALCTYPE                  Control of Pricing Type: Additional Fields
    ME_COMMTMNT_REQ_RE_C            Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions
    ME_PROCESS_PO_CUST                      Enhancements for Processing Enjoy Purchase Order: Customer
    SMOD_MRFLB001                           Control Items for Contract Release Order
    MM_EDI_DESADV_IN                        Supplementation of Delivery Interface from Purchase Order
    MM_DELIVERY_ADDR_SAP                    Determination of Delivery Address
    ME_WRF_STD_DNG                          PO Controlling Reminder: Extension to Standard Reminder
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_TRF_RULE_CUST_OFF                    BADI for Deactivation of Field T161V-REVFE
    ME_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address
    ME_REQ_POSTED                           Purchase Requisition Posted
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_PURCHDOC_POSTED                      Purchasing Document Posted
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders
    ME_CCP_BESWK_AUTH_CH                    BAdI for authorization checks for procuring plant
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active
    ME_BSART_DET                            Change document type for automatically generated POs
    ME_BAPI_PR_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PO_CREATE_01
    ME_BADI_DISPLAY_DOC                     BAdI for Internal Control of Transaction to be Invoked
    ME_ACTV_CANCEL_PO                       BAdI for Activating the Cancel Function at Header Level
    MEGUI_LAYOUT                            BAdI for Enjoy Purchasing GUI
    EXTENSION_US_TAXES                      Extended Tax Calculation with Additional Data
    ARC_MM_EKKO_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EKKO)
    ARC_MM_EKKO_CHECK                       BAdI: Enhancement of Archivability Check (MM_EKKO)
    ME_CCP_DEL_DURATION                     Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders
    ME_COMMITMENT_STO_CH                    BadI for checking if commitments for STOs are active
    ME_COMMITMENT_RETURN                    Commitment for return item
    ME_CIP_REF_CHAR                         Enables Reference Characteristics in Purchasing
    ME_CIP_ALLOW_CHANGE                     Configuration in Purchasing: Changeability Control
    ME_CIN_MM06EFKO                         Copy PO data for use by Country version India
    ME_CIN_LEINRF2V                         BADI for LEINRF03 excise_invoice_details
    ME_CIN_LEINRF2R                         BADI for CIN India - Delivery charges
    ME_CHECK_SOURCES                        Additional Checks in Source Determination/Checking
    ME_CHECK_OA                             Check BAdI for Contracts
    ME_CHECK_ALL_ITEMS                      Run Through Items Again in the Event of Changes in EKKO
    ME_CHANGE_OUTTAB                        Enrich ALV Output Table in Purchasing
    ME_CHANGE_CHARACTER                     Customer-Specific Characteristics for Product Allocation
    Edited by: Neenu Jose on Nov 21, 2008 6:13 AM
    Edited by: Neenu Jose on Nov 21, 2008 6:16 AM

  • Error on BADI for ME21N

    Am doing and enhancement on transaction ME21N. Where I am validating a price based on the Purchase requisition.
    I implemented the BADI YWVKU_DETERMINE_SP and in method GET_SALES_PRICE I used my code.
    I created a custom message class in se91 to display the error message when we run me21n. I get a short dump as follows
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    Please assist

    This is part of the dump
    Error analysis
        Short text of error message:
    General system messages
        Long text of error message:
        Technical information about the message:
        Message class....... "ME"
        Number.............. 000
        Variable 1.......... "Price cannot be greater than 10% of PR"
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "SAPLMEPO" or "MM06EF0B_BUCHEN"
        "BUCHEN"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP

  • User exit or Badi for ME21N transaction

    Hi Gurus,
    In ME21N tranasaction i need to make the field 'Free Item' ( checkbox ) as a mandatory field at item over view level for specific document types. so that user can't  save the PO order with out checking the checkbox.
    So is there any exit or badi to achieve the functionality.
    Thanks in advance.
    Regards,
    krisc.

    Hi gurus,
    Thank you very much for your replies.
    I resolved this issue my self.
    Thanks,
    krisc.

  • EXIT BADI FOR ME21N ME22N AND ME23N

    Hello Boys.
    I want  to change the field 'Tax code' (MWSKZ) in a Purchase order on transaction ME21N, ME22N AND ME23N.
    I want to change thios field in a BADI, USER EXIT or ENHANCEMENT-POINT.
    But I can't find where change this field.
    thanks for your help.
    Best regards.

    Try Badi : ME_PROCESS_PO_CUST
        CALL METHOD im_item->get_data
          RECEIVING
            re_data = v_data_item.
    Your code to change the tax code
    CALL METHOD im_item->set_data( v_data_item ).
    <REMOVED BY MODERATOR>
    Edited by: Aparna Shekhar on Jun 12, 2008 11:33 AM
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:52 PM

  • Exit or badi for me21n- for adding new field in delivery tab(Item level)

    HI,
    My Requirement is to add the New Field(Inspection Lot) in delivery tab in item level of me21n .
    I want to know this can be done by any Exit or Badi or modifying the standard sap is the only way to do this... 
    Kindly help me to solve the issue..it's quite urgent , i unable to find one,i used the exit mequery1 but did not work ......
    Thanks in Advance.

    Hi Nagaraju,
    Actually,for every T-code,SAP has provided a lot of BADIs where the customer can write their own codes depending
    upon the functionality required.
    In order to find the BAD for a particular T-code,go to the T-code SE24 and type in cl_exithandler and click on
    Display.
    You will get a list of methods in that class,double click on the Get_Instance method from the list.
    you will get the code for that method.Scroll down and you will find one of the parameters "Exit Name" there.Put a
    breakpoint on that function module and press F8.
    In the debugging mode,double click on the Exit Name to get the value contained in it.You will see the first BADI
    provided in that T-code.
    Note down this and then keep on pressng the F8 and noting down the BADIs being displayed.
    Now ,you will have to find out the BADI which fits your requirement.
    Now,it is not required to opy that BADI into ZBADI.Instead it is better to create a new implementation for this
    BADI.
    Go to the T-code SE18 and see its definition.
    Now,go to the T-code SE19 and create a new implementation and write the code there.
    Once done,activate that implementation and the BADI also.
    Now run the T-code and debug the code that you have written.You can modify the code accordng to your requirements.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • BADI for Me21N - Condition types

    Hi All,
    wat ever condition type given in the header should be copied to all the items in the item level. then they want to change the condition type at item level for one or two items rest all are same like header condition types.
    see we have a condition type optioned as header as well as item condition type So I have given this condition type in the header of PO . It will be automatically copied to all the items in the item level
    right
    Now for a selected item like let suppose third item i want to delete one condition type and want to give a new one for this it is not allowing me
    Is there Any BAdI / Screen Exits which will allow me to copy the header condition type to all the items in Me21N and also it should allow me to Delete or modify that in the Item level
    Awaits for the reply  .......................
    Its a high priority ticket
    Pls Respond
    Thnx in Advance
    Regards
    KAMAL

    Hi Kaml ,
    have u checked with ur functional pplz abt the possibility of doing it thru Config ?, i think they can do some value addition in this .
      if you want to access those condition data u can  try  in these user exits but i'm not sure whether they can help u out in this requirement.
    SPRO->MM-->Purchasing >Conditions->Enhancements.
    regards
    Prabhu

  • Stop standard process in user exit (or badi) for ME21N.

    Hello,
    I have implemented a user exit (and also a BADI) for transaction code ME21N.
    The user exit is executed before saving the purchase order.
    In my user exit, I just check data and if they are wrong, I just want to stop the process displaying an error message.
    So, I've just used  'MESSAGE Exxx(xxxx)'.
    The problem is that the standard process catch the error and treat it in stead of stopping. The standard process treats the error and proposes the user to chose if he(she) wants to continue or to stop (within a popup).
    I just want to stop the process, displaying a error message.
    If someone has a idea about how I can realise that, please let me know.
    Giuseppe,

    Which Exit/Badi did you implement? And Error message should normally stop the process. Maybe you have implemented the wrong exit.

  • BADI In ME21n transaction

    Dear Sir,
    I am looking for a suitable BADI available in tcode ME21n . The BADI must be called at the time of PO Saving .
    I tried using "ME_PROCESS_PO_CUST" BADI , but in debugging I find that during the PO Saving this BADI is not being  called .
    Kindly guide me pl .
    Regards
    B Mittal

    Hi
    The below badis exitsts in me21n :
    Business Add-in                                                                               
    ME_PROCESS_PO                           Enhancements for Processing Enjoy Purchase Order: Intern.      
    ME_PROCESS_COMP                         Processing of Component Default Data at Time of GR: Customer   
    ME_PO_SC_SRV                            BAdI: Service Tab Page for Subcontracting                      
    ME_MMPUR_EINM_CUST                      BAdI Methods for Processing IDoc Data in the SUS Scenario      
    ME_MMPUR_EINM                           BAdI Methods for Processing IDoc Data in the SUS Scenario      
    ME_HOLD_PO                              Hold Enjoy Purchase Orders: Activation/Deactivation            
    ME_GUI_PO_CUST                          Customer's Own Screens in Enjoy Purchase Order                 
    ME_FIELDSTATUS_STOCK                    FM Account Assignment Behavior for Stock PR/PO                 
    ME_DEFINE_CALCTYPE                      Control of Pricing Type: Additional Fields                     
    ME_COMMTMNT_REQ_RE_C                    Check of Commitment Relevance of Purchase Requisitions         
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions         
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders              
    ME_PROCESS_PO_CUST                      Enhancements for Processing Enjoy Purchase Order: Customer     
    EXTENSION_US_TAXES                      Extended Tax Calculation with Additional Data                  
    MM_EDI_ORDERS_OUT                       Enhancements for IDoc Output of Purchase Order: Internal       
    MM_EDI_DESADV_IN                        Supplementation of Delivery Interface from Purchase Order      
    MM_EDI_DELFOR_OUT                       Enhancements for IDoc Output of SA Releases: Internal          
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV               
    ME_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address                       
    ME_REQ_POSTED                           Purchase Requisition Posted                                    
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions         
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched.Agrmts with Release Docu.     
    ME_PURCHDOC_POSTED                      Purchasing Document Posted1                                    
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer                                                                               
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal              
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders              
    ME_BSART_DET                            Change document type for automatically generated POs           
    ME_BAPI_PR_IBS                          BAdI: Enjoy BAPIs for Purchase Requisitions                    
    ME_BAPI_PR_CUST                         Customer BAdI for Enjoy Purchase Requisition BAPIs             
    ME_BAPI_PR_CREATE_02                                                                               
    ME_BAPI_PR_CREATE_01                                                                               
    ME_BAPI_PO_IBS                          BAdI for Inbound/Outbound Mapping BAPI_PO_CREATE1 IBS          
    ME_BAPI_PO_CUST                         Customer BAdI for BAPI_PO_CREATE1 and BAPI_PO_CHANGE           
    ME_BAPI_PO_CREATE_02                                                                               
    ME_BAPI_PO_CREATE_01                                                                               
    ME_ACTV_CANCEL_PO                       BAdI for Activating the Cancel Function at Header Level        
    MEGUI_LAYOUT                            BAdI for Enjoy Purchasing GUI                                  
    SMOD_MRFLB001                           Control Items for Contract Release Order                       
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active                    
    ME_COMMITMENT_STO_CH                    BadI for checking if commitments for STOs are active           
    ME_CIP_REF_CHAR                         Facilitates Reference Characteristics in Purchasing            
    ME_CIP_ALLOW_CHANGE                     Configuration in Purchasing: Changeability Control             
    ME_CIN_MM06EFKO                         Copy PO data for use by Country version India                  
    ME_CIN_LEINRF2V                         BADI for LEINRF03 excise_invoice_details                       
    ME_CIN_LEINRF2R                         BADI for CIN India - Delivery charges                          
    ME_CHECK_SOURCES                        Additional Checks in Source Determination/Checking             
    ME_CHECK_ALL_ITEMS                      Run Through Items Again in the Event of Changes in EKKO        
    ME_CHANGE_OUTTAB                        Enrich ALV Output Table in Purchasing                          
    ME_CHANGE_CHARACTER                     Customer-Specific Characteristics for Product Allocation       
    ME_CCP_DEL_DURATION                     Calc. of Delivery Duration in CCP Process (Not in Standard)    
    ME_CCP_BESWK_AUTH_CH                    BAdI for authorization checks for procuring site               
    If it helpful reward points
    Regards
    Pratap.M

Maybe you are looking for

  • How do I turn off iCloud match in iTunes?

    How do I turn off iCloud Match in iTunes:

  • How to create a plug-in

    Hi all, I have implemented an e-mail proxy server that proviides security "similar to PGP", and i was wondering how to create my application in the form of plugin for famous e-mail client e.g. OutLook, Thunderbird ..etc?? can any body help me?. Thank

  • No sound when exporting to quicktime

    Hi, I made a presentation in Keynote 08 and recorded some audio on top of it. But when I export the presentation to quicktime the audio is missing. How can I export the presentation with the audio. I checked export with audio. Thanks

  • JDeveloper feature recommendation to Oracle

    It would be great flexibility to have a option for local JDeveloper installation to setup JDeveloper settings and configuration on the network drive for faster IDE performance rather then doing the network installation. This will be a great help for

  • Photoshop CC Installation issues are causing a bsod

    Tried installing Photoshop CC 4x, only Photoshop, same result. BSOD detailing a kernal fault. Ran memtest, chkdsk. No errors found. It would install to 95%, stay for 5min or so, then typically blue screen. The last time I tried I got an interesting e