PO ( ME21 ) User Exit..

Hi All,
   i have to add two custom fields in PO item level table control.
    is it any screen exit avaliable for add those fields in Purchase Order item level table control?
   if is please provide that enhancement name or give me some other soluction for this issue.
thanks
john.

HI
GOOD
GO THROUGH THE FOLLOWING USER EXITS,THESE MIGHT HELP YOU TO SOLVE YOUR PROBLEM
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
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
THANKS
MRUTYUN

Similar Messages

  • ME21 User Exit to check/validate WEPOS field

    We want to use ME21 transaction for simple purchasing
    We want to build a small enhancement to check the GR indicator (WEPOS) based upon a threshold order value
    Does anyone know a user exit, badi or alternative that will allow us to import and export this value?
    Thanks
    Steve

    Dear Steve,
    If there's a requirement to change the indicator agains a specific condition, you can define the condition in the exit, then create a Z* program that contrain a BDC of change PO (ME22), and in the Z* program you can check to the exit condition, if its meet than the GR indicator can be unticked, cause you'll need also to check , whether GR has take place for the PO or not and other condition, so you need to things to do.
    1. add condition logic in the exit
    2. create a Z* program to change the WEPOS flag(using BDC code ME22--> its more recommend cause you use the standard SAP trx) and you can schedule the Z* program to run background.
    Regards,
    w1n

  • User Exit for ME21 PO Creation at the time of saving--Urgent

    Hi,
    Can some one help me out in finding the user exit for PO creation at the time of saving.
    The Requirement is:
    I need to create a custom field in EKKO table.
    After appending the structure with the field to the EKKO table, i need to create a PO.
    Now i need to update the field which has been created at the time of pressing the SAVE button.
    I need to update the EKKO table it self.
    I could find the user exits but none of them have the EKKO table either in Changing or in Tables.
    Thanks,

    Hi,
              You may want to check this user exits.
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document
    Here is the list of available user exits for ME21.
    EXIT_SAPMM06E_001 - Other Number Range or Own Document Number
    EXIT_SAPMM06E_004 - User Exit for Cust.-Specific Control of Import Data Screens in Purchasing
    EXIT_SAPMM06E_005 - Field Selection Control: Vendor Address Screen
    EXIT_SAPMM06E_006 - Export Data to Customer Subscreen for Purchasing Document Header (PBO)
    EXIT_SAPMM06E_007 - Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    EXIT_SAPMM06E_008 - Import Data from Customer Subscreen for Purchasing Document Header
    EXIT_SAPMM06E_009 - Reset Customer Data at Beginning of New Document (Without Dialog)
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document
    EXIT_SAPMM06E_014 - Read Customer-Specific Data when Importing 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_018 - Import Data from Customer Subscreen for Purchasing Document Item
    EXIT_SAPMM06E_020 - User Exit: Change Document for Requisitions (Conversion into PO)
    EXIT_SAPMM06E_021 - Fulfillment of Target Value: Release Orders Against a Contract
    <b>Reward points</b>
    Regards

  • 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

  • In the initial screen of  ME21 transaction i want a user exit

    In the initial screen of  ME21 transaction i want a user exit
    which can popup a message once document type is given and press enter.

    hey guys try with Function exit EXIT_SAPMM06E_006
    and implement ZXM06U36.
    thanks guys i my self found the solution

  • Error in ME21  (by User Exit MM06E005 in ME21N)

    Hi All,
      I am implimenting '<b>MM06E005</b>' User-Exit in <b>ME21N</b>.
    I am using "<b>EXIT_SAPMM06E_006</b>" Function Exit.
    I write following code in it:-
    *&  Include           ZXM06U36
    IF SY-TCODE = 'ME21N'.
    LOOP AT TEKPO.
      IF TEKPO-KNTTP = 'A'.
       IF TEKPO-MENGE <> '1'.
        MESSAGE 'Correct Quantity to 1' TYPE 'E'.
       ENDIF.
      ENDIF.
    ENDLOOP.
    ENDIF.
    I do not want to impliment SAPMM06E Screen Exit. This is activated when above Exit is activate.
    Now when i use T.Code ME21N , I get correct results.
    <b>But when i use T.Code ME21, after entring data in first screen & press enter , i get  "<u>Runtime error DYNPRO_NOT_FOUND has occurred</u>" error.</b>
    <u>If i deactivate the above user exit, then there is no error in ME21.</u>
    <b>Please guide me how i impliment this exit or other exit for ME21N so that i will not get any error in ME21.</b>
    Regards
    Umesh

    Hi Umesh!
    Try to implement BADI ME_PROCESS_PO_CUST instead. This is for enhancements of the enjoy transaction. I fear, the old exits aren't called under every circumstance.
    If you need exits in both transactions, then implement SMOD exits, too - but a different one (without dynpro extension).
    Regards,
    Christian

  • Query on  User-Exit or  BADI  For  ME21/ME21N

    HI All,
    I am working on purchase order release strategy.Version  4.7E
    The requirement is 'without reference to purchase requestion(PR) Purchase Order should not be created.
    Ifound out one badi-ME_PROCESS_PO_CUST and i have implemented it.
    It is working fine for ME21N transaction.
    But when i create PO through  me21 it is not being triggered.
    Can any body tell me suitable user-exit for this.
    Regards,
    Prasanth

    Transaction Code - ME21                     Create Purchase Order
    Exit Name           Description
    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
    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
    No of Exits:         35
    Transaction Code - ME21N                    Create Purchase Order
    Exit Name           Description
    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
    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
    no of Exits:         35
    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
    Rewards if useful.........
    Minal

  • Help for User Exit in ME21 and ME22 transaction

    Hello All,
    I am changing a value of the line item entered in the P.O. by ME21 or changed by using ME22. There is a internal table TEKPO in the user exit EXIT_SAPMM06E_012 program ZXM06U43, i am modifying that table with the changed value of the field but while debugging its changing the value in the header and the body of the internal table where as its not showing up the value in the table EKPO.
    Could you pls advise.. ??
    I am using the following statement for modifying the internal table TEKPO where ZREQUIS is the field name.
        MODIFY TEKPO INDEX SY-TABIX TRANSPORTING ZREQUIS.
    Thanx,
    Suresh

    Hi Suresh!
    Your exit gets filled with local variables for the tables parameters, no feedback is taken back.
    Exit EXIT_SAPLEINS_001 is called (directly) before LIS (or BW) updates, I doubt changes relevant for EKPO can still be done.
    Try to make a dynamical assign for a global table. I think POT[] should be the right one.
    Regards,
    Christian

  • User-exit or BADI in ME51 and ME21

    Hi Experts,
    Thanks for your interest in this question. I'd like to ask for your help in looking all possible user-exit and BADI triggered using transaction ME51 and ME21. Thanks again for your help!
    Best Regards,
    Randy

    Hi Randy,
    Copy this program in SE38 and execute. Will get all list of existing Exits and
    Badis for a particular Transaction code.
    very useful program
    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.
    <b>Reward points if this helps.
    Manish</b>

  • Stoping process of saving purchase order(ME21/ME21N) in the user exit.

    Hi,
    I am using user exit "EXIT_SAPMM06E_016" of purchase order. While creating PO and after user enters 1st line item or more items and presses save button, then this user exit will be called.
    Now my requirement is I have to check "item delivery date" , if it is more than 300 days from creation date then I have to show popup for warning the user for the same and if user want to make the changes then this user exit should stops the process of saving the PO and returns and allows to change the PO.
    Please help me in this.
    how I can stop the saving process.
    Thanks,
    Deepak

    Hi Deepak,
    You can do it in IM_ITEM method
    DATA: ls_mepoitem TYPE mepoitem.
    ls_mepoitem = im_item->get_data( ).
    if you check ls_mepoitem-quantity field it will give your required value....pls Go through the documentation below for the method
    Documentation for the method
    Processing of Item Data
    Functionality
    The PROCESS_ITEM method enables you to change the item data and check it
    for correctness.
    Parameters
    The following parameters are available:
    o IM_ITEM - Document item
    The interface reference is of the category
    IF_PURCHASE_ORDER_ITEM_MM. You can use all methods defined there.
    Note
    Please note the general hints on Error Handling.
    If you wish to mark the document item as invalid, use the
    INVALIDATE() method of the IF_PURCHASE_ORDER_ITEM_MM interface.
    Regards
    Byju

  • User Exit for ME21/ME22

    Hi Guys,
    Can anyone give me the user exit for saving / changing the data when a purchase order is being saved..
    thanks in advance,
    Kittu.

    Hi
    You can use the BADI
    <b>ME_PROCESS_PO_CUST</b>
    There are lot of Exits for Purchasing
    check the following exits if you need
    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
    MM06E011                                Activate PReq Block
    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
    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
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    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
    Reward points if useful
    Regards
    Anji

  • ME21 PO User Exit

    Hi,
    Can any one help me for user exit in t-code ME21N  PO.
    I want get the Vendor Telephone from and update it in Communicatio tab at header level when  I enter a value For Vendor field.
    Please help me out in this

    excellent. so here goes:
    the address data during ME21N/ME22N are read using the ADDRNUMBER which was found in LFA1(which itself was read with the vendor-number). the deails come from tables ADRC, ADRCT, ADRG. ADRC contains the telephone numbers. so here is what you can check: look at table LFA1 with your vendor number, get ADDRNUMBER and check in ADRC for the telephone.
    after that run a trace in ST05 and check whether this sequence appears there ...
    if you are truly talking of an 'ordinary PO', you should find this sequence. if you are talking STO, things are different. the difference could be anything: field-groups switched to 'invisible' in configuration (check in OLME), some bad coding in place ... but you will have to find the cause, not add another exit ...

  • User Exit for ME21

    Hi Gurus,
    I am new to User Exits. I have one requirement.
    In T Code ME21N if the Document type (BSART) is P373 and Vender number (SUPERFIELD) is ‘70370’, then only purchase order should be created otherwise it should raise error message.
    To do this user exit i have got the User exit name and enhancement name. 
    User Exit Name : EXIT_SAPLEBND_002
    Enhancement Name : M06E0004
    Version 4.7
    The user exit mentioned above has already been implemented. I need to add the code to meet the above mentioned requirement now.
    Is it possible to add to the already existing user exit. If YES, please explain the procedure.
    The two fields mentioned above are from structures. How do I find out the actual tables for these two fields. The fields BSART, SUPERFIELD are from structure MEPO_TOPLINE.
    Thanks in advance
    and
    Points for every useful answer.
    Regards

    Hi Raj,
    To add code in the existing implementation of exist, you have to write code in that specific include of that function module.
    Otherwise you can create another project and assign that exit; but at a time one implementation can be active, so you have to first deactivate the previous implementaion before activating it (here fear of losing old implemented logic remains!!!)
    And for your information vendor number is LIFNR.
    you will get these data from I_CEKKO structure.
    Hope it will solve ur problem.
    Regards
    Krishnendu

  • User-Exit in ME21 for Valuation Type

    Dear Sir,
    We are split valuation for the purpose to distinguish between Import Purchase vs Indigenous Purchases . Accordingly we have defined Valuation Types also .
    In ME21n we use differnt document type for Import & Domestic Purchases . We are looking for a User-Exit to have a functionality so that incase an Item in PO is classified as Split Valuation (as per Material Master) then Valuation Type must be automatically populated as per the criterion (say incase Document type is ZDOM then Valuation Class is "IND" and if Document Type is ZIMP then Valuation Class is "IMP") .
    Please guide me , how to address the above problem .
    Regards
    B Mittal

    Dear Mittal,
    You can use exit EXIT_SAPMM06E_012 --> ZXM06U43 , than add all needed logic there. u can take a little help from abbaper.
    Regards,
    w1n

  • User exit to check/uncheck the GR Indicator at the time of PO creation

    Hi,
    Can anybody help me out in finding the right user exit/BAdi to control the GR Indicator flag.
    We already tried the user exits:
    EXIT_SAPLMEKO_001
    EXIT_SAPLMEKO_002
    EXIT_SAPLFYTX_USER_001
    EXIT_SAPMM06E_012
    EXIT_SAPMM06E_013
    EXIT_SAPMM06E_009 and also tried the BAdi ME_PROCESS_PO_CUST.
    Nothing is updating the GR Indicator flag.
    Please let me know if any other user exits exist.
    Thanks in advance. Quick response is appreciated.
    Bhaskar

    Hi,
    Try this code..I have used memory pointers....
    In the userexit <b>EXIT_SAPMM06E_012</b>
    DATA lwa_ekpo LIKE bekpo.
    data lw_field(50).
    FIELD-SYMBOLS <t_xekpo> TYPE STANDARD TABLE.
    IF sy-tcode = 'ME21'.
    lw_field = '(SAPLMEPO)POT[]'.
    ASSIGN (lw_field) TO <t_xekpo>.
    if sy-subrc ne 0.
    lw_field = '(SAPMM06E)POT[]'.
    ASSIGN (lw_field) TO <t_xekpo>.
    if sy-subrc <> 0.
    message e208(00) 'Couldn't find POT'.
    endif.
    endif.
    loop at <t_xekpo> into lwa_ekpo.
    Check the conditions..
    example..
    if ......
    Check the GR indicator..
    lwa_ekpo-WEBRE = 'X'.
    <b>MODIFY <t_xekpo> from lwa_ekpo transporting WEBRE.</b>
    endif.
    endloop.
    ENDIF.
    Hope this helps..
    Thanks,
    Naren

Maybe you are looking for

  • How to install the Solution Manager

    Hi Gurus, any one can help me out i want to install the Solution Manager 4 any one can help me out like what is the minimum  HDD & RAM is required, and how many  exports wil required this Solman. Can i download from Market place please gurus help me

  • Header / Footer justification problems in Acrobat 9 Pro

    When I want to add unifying headers or footer in my document, I see the center header/footer as centered in the preview and I see the right header/footer as right justified, but when I apply the header or footer to the document it shows up as left ju

  • Customer is using FR studio, not able to select properties

    Hi. Customer could log into Financial Reporting Studio,  open and create new reports but they are not able click on the row/column/report properties dialogue boxes. Initially we thought it was installation issue we did the below steps I. Part 1 After

  • Any way to the lower the sound of a printer?

    I just purchaesd an HP Laserjet P2055dn and it's working great. Is there any way to lower the volume when it prints. It's really load when it prints. Thanks.

  • 2TB TC Version 7.5 DNS Proxy to Local Server - How?

    Ok, so TC Proxies DNS. Great. That means that DHCP clients get the TC IP (10.0.1.1) in my case as their DNS server. Here's the problem, I don't want TC to proxy to the ISP DNS, nor to OpenDNS, nor to Google DNS, but to 10.0.1.2 which is my brand new