ME21N User Exits

Hi,
I have a requirement to find the user-exits available for the transaction <b>ME21N</b>. I have to findout whether there is any user exit exists while saving the PO in ME21N.
Can someone tell me the procedure to search for the user exits available.
We generally search for the text <b>'USEREXIT_'</b> in the program for the transaction.
I went to the program <b>SAPLMEGUI</b> for the transaction ME21N. When I try to search for the term 'USEREXIT_' it is asking me choose main program and listing so many INCLUDE names in a pop-up window. That way I couldn't find the user-exits. Can someone help in finding the userexits for ME21N. Is there any other procedure to find the user exits for the transaction ME21N..?
Thanks & Regards,
Paddu.

USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Transaction Code - ME21N                    Create Purchase Order
Exit Name           Description
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
M06B0001            Role determination for purchase requisition release
M06B0002            Changes to comm. structure for purchase requisition release
M06B0003            Number range and document number
M06B0004            Number range and document number
M06B0005            Changes to comm. structure for overall release of requisn.
M06E0004            Changes to communication structure for release purch. doc.
M06E0005            Role determination for release of purchasing documents
ME590001            Grouping of requsitions for PO split in ME59
MEETA001            Define schedule line type (backlog, immed. req., preview)
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
AMPL0001            User subscreen for additional data on AMPL
No of Exits:         35
Rewards if useful.........
Minal

Similar Messages

  • In ME21N,User Exit/BADI for  Defaulting  Vendor number at item level.

    Hi Experts.
    In ME21N, for every purchase order, we have condtion tab for each line item.
    Many condition typesot taxes  are listed based on the config for the materials.
    My requirements is, When we go inside by selecting a condition type we find vendor number displayed.
    I need a user exit/BADI for defaulting the Vendor number.
    Regards
    Balaji R

    Hi,
    check with below link,
    fo this one you will find both user exit and badis
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/find%252bapplication%252bclass%252bwith%252bexits%252band%252bbadis%252bfor%252ba%252btransaction
    Regards,
    Madhu

  • Me21n User-exit

    Hi Friends,
                    I have a Requirement in me21n in which the release Strategy should be picked based on
                    storage location.
                   For this I have already appended a structure in cekko with the field LGOBE.
                  Now In which User-exit Do i have to write the code for the Requirement to take effect.?
                  Also i found out that if the user-exit is not implemented . Then the Release Strategy is
                  getting picked even if u specify the Storage Location or not.
    Thanks,
    Neel

    Hi Gautam,
                     The Thing is i have Alredy added an append Structure to the STD Structure cekko with Field
                     LGOBE .
                   Now in Me21n when We enter the storage Location The Release Strategy is picked up
                   Correctly.
                  If We Remove The Storage Location And Enter some Other Storage Location the Release
                 Strategy Doesnt Change , even if there is a different Release Strategy Maintained In
                 Charecteristic Value for the given Storage Location.
                How do i Go abt Solving This..?
    Thanks,
    Neel

  • Me21n User-Exit / BADI

    Hi all,
    Anybody knows an User-Exit / BADI to use when you click over SAVE icon on me21n transaction?
    I have a 4.6 version...
    Thanks!

    Dear Julian,
    First you would need to find all the available enhancements. The ABAPer would check what are all the enhancements getting triggered when save button is pressed in ME21N by putting break-points.
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Regards,
    Naveen.

  • ME21N, User Exit/customize program

    Please , advice is it possible to check, whether the is customize program/user exit, in ME21N, When user save ME21N, some funny stuff happened, how to check whether there is a customize program/user exit when save ME21N, please advice

    hi,
    you can try transaction SMOD
    and see if there are any active user exits for the following:
    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     Individual customer source determination in Retail
    M06B0001                     Role determination for purchase requisition release
    M06B0002                     Changes to comm. structure for purchase requisition release
    M06B0003                    Number range and document number
    M06B0004                    Number range and document number
    M06B0005                   Changes to comm. structure for overall release of requisn.
    M06E0004                     Changes to communication structure for release purch. doc.
    M06E0005                    Role determination for release of purchasing documents
    ME590001                     Grouping of requsitions for PO split in ME59
    MEETA001     Define schedule line type (backlog, immed. req., preview)
    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
    MM06E011     Activate PReq Block
    good luck
    Shachar

  • ME21N user exit or BADI

    Hi SAP Gurus,
    I need help from you people, regarding ME21N.
    In 4.7 Ver. after executing tcode ME21N, I had enter all required details for PO. for this we will give external order no. in Account assignment catageory tab.
    but my client requirement is, while enterning the Order no. in Account assignment tab Warning message has to be display based on item no., Account assignment catageory combination.
    For this I couldn't find any USER EXIST or BADI.
    Kindly help me to resolve this issue.
    Thanks and regards,
    sreenivas

    hi,
    check these exits nbadi's for me21n.
    Transaction Code - ME21N                    Create Purchase Order
    Enhancement/ Business Add-in            Description
    Enhancement
    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
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    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
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    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
    Business Add-in
    ME_BAPI_PR_CREATE_01                    BAdI: Enjoy BAPIs for Purchase Requisitions
    ME_BAPI_PR_CHANGE_02                    BAdI: Enjoy BAPIs for Purchase Requisitions (Method Change)
    ME_BAPI_PR_CHANGE_01                    BAdI: Enjoy BAPIs for Purchase Requisitions (Method Change)
    ME_ACTV_CANCEL_PO                       BAdI for Activating the Cancel Function at Header Level
    SMOD_MRFLB001                           Control Items for Contract Release Order
    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_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address
    ME_REQ_POSTED                           Purchase Requisition Posted
    ME_BAPI_PR_CREATE_02                    BAdI: Enjoy BAPIs for Purchase Requisitions (Method Create)
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer
    ME_CHANGE_CHARACTER                     Customer-Specific Characteristics for Product Allocation
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders
    EXTENSION_US_TAXES                      Extended Tax Calculation with Additional Data
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RE_C                    Check of Commitment Relevance of Purchase Requisitions
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched. Agreemnts with Rel. Docs
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions
    MEGUI_LAYOUT                            BAdI for Enjoy Purchasing GUI
    ME_BSART_DET                            Change document type for automatically generated POs
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active
    ME_CCP_BESWK_AUTH_CH                    BAdI for authorization checks for procuring plant
    ME_CCP_DEL_DURATION                     Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_CHECK_ALL_ITEMS                      Run Through Items Again in the Event of Changes in EKKO
    ME_CHECK_SOURCES                        Additional Checks in Source Determination/Checking
    ME_CIN_LEINRF2R                         BADI for CIN India - Delivery charges
    ME_CIN_LEINRF2V                         BADI for LEINRF03 excise_invoice_details
    ME_CIN_MM06EFKO                         Copy PO data for use by Country version India
    ME_CIP_ALLOW_CHANGE                     Configuration in Purchasing: Changeability Control
    ME_CIP_REF_CHAR                         Facilitates Reference Characteristics in Purchasing
    ME_COMMITMENT_STO_CH                    BadI for checking if commitments for STOs are active
    ME_DEFINE_CALCTYPE                      Control of Pricing Type: Additional Fields
    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_PURCHDOC_POSTED                      Purchasing Document Posted
    reward if hlpful.

  • Me21n user exit.......How to get PO number at runtime while saving PO.

    HI All,
    I am wiring the user exit for ME21N .
    The requirement is need to save item text data along with PO.
    For this i am using SAVE_TEXT Fm for this. the input for this FM contains PO number.
    How can i get the PO number at runtime. Is there any exit for this?
    Can any one suggest me the way to get PO number at runtime.
    Thanks,
    Khasimsa.

    Hi,
    In Function Exit "EXIT_SAPMM06E_013" of "MM06E005",there is an Import Parameter I_EKKO-EBELN which will contain the PO number and this exit will get triggered just before saving the PO.
    Hope this will help.
    Thanks & Regards,
    Rock.

  • ME21N -- User Exit to assign G/L Account number

    Hi All,
    The requirement is to assign G/L account number (EKKN-SAKTO) based on vendor account group, material type and account assignment category. I have tried with some user exits and unfortunately i was not succeeded in finding out the correct one.
    I request you to provide me the user exit/enhancement name or BADI name that I can use to assign the G/L account number.
    Thanks & Best Regards,
    Kumar.

    Create the field exit on field SAKTO.
    and write the below code in the field exit.
    DATA: i_dynpread TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
    DATA: V_SAKTO TYPE EKKN-SAKTO.
    i_dynpread-FIELDNAME = '<Screen field name for Account assignment category>'.
    append i_dynpread.
    clear: i_dynpread.
    i_dynpread-FIELDNAME = '<Screen field name for Material Type>'.
    append i_dynpread.
    clear: i_dynpread.
    i_dynpread-FIELDNAME = '<Screen field name for Vendor Account Group>'.
    append i_dynpread.
    clear: i_dynpread.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = '<Screen name>'
    DYNUMB = '<Number>'
    TABLES
    DYNPFIELDS = i_dynpread.
    IF SY-SUBRC = 0.
    loop at i_dynpread.
    <Write the select statement logic to retrieve EKKN-SAKTO based on the other field values which will be available in the internal table I_DYNPREAD and put the value into the variable V_SAKTO.>
    IF SY-SUBRC = 0.
       output = V_SAKTO.
    ENDIF.
    endloop.
    ENDIF.
    Hope it helps.
    Reward if it is useful.
    Thanks,
    Srinivas

  • ME21N User Exit to automatically display the print preview

    Hi All
    Does anyone know of way to invoke the Purchase Order Print Preview Option <u>automatically</u> once the user selects the save button as part of the ME21N transaction ?
    This is required so that the end user must perform a visual check on the PO just before the purchase order is saved.
    We are already the standard print preview button working in ME21N. 
    Thanks
    Donnacha

    Hi Donnacha!
    Pravat pinned out the main problem: when you want to display something before saving, then it's anything else but not the printout of the PO. The printout goes for the saved values - but you require a display before saving. So you have to develop a complete own display (which can be done of course).
    Regards,
    Christian

  • Urgent  user exit

    dear friends
    •     Developed user exits which will automatically assign the order type with purchase order number while making a Purchase Order using Customer functions. (ME21N)
    •     Developed user exit while making Release strategy after release the P.O if any lower level changes  the P.O  gives information message  and exit the screen.(ME28)
    pl. send to my mailid. [email protected]

    Hi,
    For ME21N;
    User-Exits;
    MEQUERY1
    MEVME001
    MM06E001
    MM06E003
    MM06E004
    MM06E005
    MM06E007
    MM06E008
    MM06E009
    MM06E010
    MMAL0001
    MMAL0002
    MMAL0003
    MMAL0004
    MMDA0001
    MMFAB001
    MRFLB001
    MELAB001
    AMPL0001
    LMEDR001
    LMELA002
    LMELA010
    LMEQR001
    LMEXF001
    LWSUS001
    M06B0001
    M06B0002
    MEFLD004
    MEETA001
    ME590001
    M06E0005
    M06E0004
    M06B0005
    M06B0004
    M06B0003
    BADI's
    ME_PROCESS_PO
    ME_PROCESS_COMP
    ME_PO_SC_SRV
    ME_PO_PRICING_CUST
    ME_PO_PRICING
    ME_INFOREC_SEND
    ME_HOLD_PO
    ME_GUI_PO_CUST
    ME_FIELDSTATUS_STOCK
    ME_DP_CLEARING
    ME_DEFINE_CALCTYPE
    ME_COMMTMNT_REQ_RE_C
    ME_COMMTMNT_REQ_RELE
    ME_PROCESS_PO_CUST
    SMOD_MRFLB001
    MM_EDI_DESADV_IN
    MM_DELIVERY_ADDR_SAP
    ME_WRF_STD_DNG
    ME_TRIGGER_ATP
    ME_TRF_RULE_CUST_OFF
    ME_TAX_FROM_ADDRESS
    ME_REQ_POSTED
    ME_REQ_OI_EXT
    ME_RELEASE_CREATE
    ME_PURCHDOC_POSTED
    ME_PROCESS_REQ_CUST
    ME_PROCESS_REQ
    ME_COMMTMNT_PO_REL_C
    ME_CCP_BESWK_AUTH_CH
    ME_CCP_ACTIVE_CHECK
    ME_BSART_DET
    ME_BAPI_PR_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PO_CREATE_01
    ME_BADI_DISPLAY_DOC
    ME_ACTV_CANCEL_PO
    MEGUI_LAYOUT
    EXTENSION_US_TAXES
    ARC_MM_EKKO_WRITE
    ARC_MM_EKKO_CHECK
    ME_CCP_DEL_DURATION
    ME_COMMTMNT_PO_RELEV
    ME_COMMITMENT_STO_CH
    ME_COMMITMENT_RETURN
    ME_CIP_REF_CHAR
    ME_CIP_ALLOW_CHANGE
    ME_CIN_MM06EFKO
    ME_CIN_LEINRF2V
    ME_CIN_LEINRF2R
    ME_CHECK_SOURCES
    ME_CHECK_OA
    ME_CHECK_ALL_ITEMS
    ME_CHANGE_OUTTAB
    ME_CHANGE_CHARACTER
    For ME28;
    User Exits;
    MEQUERY1
    MEVME001
    MM06E001
    MM06E003
    MM06E004
    MM06E005
    MM06E007
    MM06E008
    MM06E009
    MM06E010
    MMAL0001
    MMAL0002
    MMAL0003
    MMAL0004
    MMDA0001
    MMFAB001
    MRFLB001
    MELAB001
    AMPL0001
    LMEDR001
    LMELA002
    LMELA010
    LMEQR001
    LMEXF001
    LWSUS001
    M06B0001
    M06B0002
    MEFLD004
    MEETA001
    ME590001
    M06E0005
    M06E0004
    M06B0005
    M06B0004
    M06B0003
    BADI's
    ******************ME_PROCESS_PO
    ME_PROCESS_COMP
    ME_PO_SC_SRV
    ME_PO_PRICING_CUST
    ME_PO_PRICING
    ME_INFOREC_SEND
    ME_HOLD_PO
    ME_GUI_PO_CUST
    ME_FIELDSTATUS_STO
    ME_DP_CLEARING
    ME_DEFINE_CALCTYPE
    ME_COMMTMNT_REQ_RE
    ME_COMMTMNT_REQ_RE
    ME_PROCESS_PO_CUST
    SMOD_MRFLB001
    MM_EDI_DESADV_IN
    MM_DELIVERY_ADDR_S
    ME_WRF_STD_DNG
    ME_TRIGGER_ATP
    ME_TRF_RULE_CUST_O
    ME_TAX_FROM_ADDRES
    ME_REQ_POSTED
    ME_REQ_OI_EXT
    ME_RELEASE_CREATE
    ME_PURCHDOC_POSTED
    ME_PROCESS_REQ_CUS
    ME_PROCESS_REQ
    ME_COMMTMNT_PO_REL_C
    ME_CCP_BESWK_AUTH_CH
    ME_CCP_ACTIVE_CHECK
    ME_BSART_DET
    ME_BAPI_PR_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PO_CREATE_01
    ME_BADI_DISPLAY_DOC
    ME_ACTV_CANCEL_PO
    MEGUI_LAYOUT
    EXTENSION_US_TAXES
    ARC_MM_EKKO_WRITE
    ARC_MM_EKKO_CHECK
    ME_CCP_DEL_DURATION
    ME_COMMTMNT_PO_RELEV
    ME_COMMITMENT_STO_CH
    ME_COMMITMENT_RETURN
    ME_CIP_REF_CHAR
    ME_CIP_ALLOW_CHANGE
    ME_CIN_MM06EFKO
    ME_CIN_LEINRF2V
    ME_CIN_LEINRF2R
    ME_CHECK_SOURCES
    ME_CHECK_OA
    ME_CHECK_ALL_ITEMS
    ME_CHANGE_OUTTAB
    ME_CHANGE_CHARACTER

  • BADI/user exit for ME21N - Warning message for "our reference" field

    Dear all,
    I have a problem.
    In ME21N, I need to show a warning message (message w... ) when user enter an already-used-before input in "Our reference' field (EKKO-UNSEZ).
    I've tried in two methods.
    1. Using fm EXIT_SAPMM06E_004. But it can only works for Error message. My warning message never shows up.
    2. Tried to implement classic BADI ME_PROCESS_PO_CUST, using the PROCESS_HEADER method. Got the break-point spot on, but still didn't show the warning message.
    Why is my warning message always got override?
    Please advise.
    Thanks in advance
    Ahmad

    Hi Ahmad,
    Check the below links:
    Unable to put Warning messages in ME21N and ME22N in Exit / BAdI in ECC 6.0
    Warning message in me22n check user-exit can't process?
    Custome warning message in T. code me51n me52n & me21n , me22n
    Regards,
    Nisha Vengal.

  • Badi & User Exit for ME21N & ME22N

    Hi,
            My requirement is when a Purchase order is created using ME21n or when a line is added or changed using ME22n, the system should copy the vendors tax jurisdiction to the purchase order line items jurisdiction code. I tried badi (ME_PROCESS_PO_CUST) but could not suceed. Can any one tell me if any badi or user exit available for the same???
    Thanks in Advance.

    hi,
    Enhancement/ Business Add-in            Description
    Enhancement
    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
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    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
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    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
    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
    No.of Exits:         35
    No.of BADis:         55
    Arunima

  • User EXIT, BADI for T-code ME21n, ME21

    Hi Guru's,
    I have rquirement where for some company codes user dont want GR and GR based invoicing if net price for PO is less than 100 GBP as it is very small quantity.
    To achive this we have to uncheck Goods receipt check bax from tab 'Delivery'  and uncheck inv. receipt check box from tab 'Invoice' of item level view at the time of PO creation.
    Now, i am serching for User exit or BADI which will serve this purpose, as T-code ME21n is enjoy transaction for ME21 i dont think we will get any user exit, we have to do it through BADI.
    If anyone has done something like this and have idea how i can achive this please revert back.
    regards,
    Rahul

    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    Below code will give a list of BADIs for particular transaction.
    *& Report  ZNEGI16                                                     *
    REPORT  ZNEGI16                                 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    It may help you.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Need the user exit/BADI name for Reverese order MIGo- ME21N(changing item)

    Hi
    I have the below requirement.
    I am changing the item details in the transaction MIGO transaction,the value of MSEG entries
    are got changed.and also it should change in the Purchase order level also(in the table EKKO).
    Can anybody tell me the User Exit /BADI name which is triggered in the Reverse order
    i.e MIGO -> ME21N.So that i can implement my code in the reverse order in the User Exit/BADI.

    hi I did not find any paramater type EKPO in the Exporting or changing of any methods in the BADI's given by you...........

  • User exit for ME21N for displaying the tax code from custom table

    Hi,
      I have a requirement, in our system, the inforecord is not maintain for all the material and vendor combination,  we have a custom table in which we have maintain the
    Compnay code, Pur. Org., Vendor code  Tax code,  juridiction code
    now we want that when a Po is created with ME21 or ME21N  the tax code and jurisdiction code should be come from this table  and if entry not found in this table then it should search as per the regular process like from last Po or info record.  then which user exit we can use for this.
    regards,
    zafar

    CLOSE

Maybe you are looking for

  • C7280 AIO won't print over network. Was working on WiFi, still works on USB.

    My AIO quit printing over the network after 2 years of service. The USB port still prints OK. My Linksys utility still sees the printer, and I even get ink levels back, but print jobs are hung up in the queue with status 'Error - Printing'.  I tried

  • Anyone know how to unmarshall????

    Basically we need to go from a java object to an XML document and vice versa. I know about XmlLoader.

  • Adobe Air application not installing

    Hello, I am using Windows vista 32bit.  I have adobe Air installed and installing the program "Adobe Air" succeeds with no issues. The problem is when I try to install a "*.air" package on this computer it does not function.  Windows sees the package

  • Chart: Changing the color of a bar

    Hello Experts, We would like to change the color of a particular bar in the chart. Can someone share a code snippet to achieve the same? If we use color-pallete aggregation then color change is getting reflected to all the bars. We are using makit li

  • How to go from: "17.00" to "17"

    Hi, I read the posts re itemDeliiter, pReg xtra, etc. This SEEMS an easier problem- I just don't know how! LOL. How can I get a string from: "17.00" to "17" ? Any help would be appreciated. BigDaddy