PR mandatory in PO Creation ME21N and ME22N

Dear Experts,
I want to make PR mandatory for each line item in ME21N and ME22N transaction Code,how to do it in SAP ?
Thanks

Hi,
First Create a Function authorization in OMET named as XX.
In that tick on Ref to PR.
Hope Help U !
Regards,
pardeep malik

Similar Messages

  • User Exit for PO creation(me21n and me22n) - A/c assgn Category is existing

    Hi all,
    I would like to have your guidance to find out an appropriate EXIT to meet the following req.
    Requirement is such that : This EXIT should generate a G/L account automatically (or over-write the existing G/L a/c) during any PO creation(me21n and me22n tcodes - before saving) based on the fields(mandatory) :
    A/c Assignment Category,
    Material,
    Company code and
    Vendor
    entered by the user(during his/her PO creation activity)
    The identified EXITS as of now are EXIT_SAPLEBND_002 (But the package is not matching our PO tcodes : me21n and me22n)
    and EXIT_SAPMM06E_017(Package ME- same as tcodes me21n,me22n)
    and even other Exits available for PO based on <b>before saving</b> activity.
    Even I tried out creating a PO in debugging mode(with break points set at the above EXITs).
    Please do help me out at the earliest to identify the appropriate EXIT to meet this requirement.
    With Regards,
    Srividya

    Hi!
    in SMOD give MM06E005 enhancement
    FM name
    EXIT_SAPMM06E_017
    This will be triggered during saving.
    Regards
    Tamá

  • Customer field Not shown in ME21n and ME22N

    Hi,
    While creation ME21N and change ME22N we are unable to get Customer field in Delivery address tab of the PO, We are getting Address and Vendor (Sc Vendor) fields in Delivery address tab , but customer not able to see.
    The Customer field we can seen through ME23N.
    We have cross check screen layout for ME21N and ME22 and NBF here in all cases Customer field is Optional.

    Hi,
    Please check screen layout for AKTH & AKTV.
    Regards
    Subbu.

  • Make Non-editable Column in Table Control of ME21N and ME22N

    Hi Experts,
    I was trying to look for a solution to make the columns for field MEPO1320-SLFDT(Stat Deliv. Date), MEPO1320-EEIND (Deliv. Date) and MEPO1211-NETPR (Net Price) from transaction ME21N and ME22N to be non-editable ONLY when Qty Received (MEPO1320-WEMNG) > 0.
    I'd found that the modify screen codes were located at Class CL_TABLE_VIEW_MM, Method MODIFY_SCREEN_TC_LINE but there were no enhancement spots available to add my code. Is there any other method i can use to make those fields non-editable?
    Thanks in advance!
    Cheers,
    Cheng
    Edited by: Cheng Mei Tan on Jun 4, 2009 9:31 AM

    Hi Cheng,
    I think you can use this BAdi: ME_PROCESS_PO_CUST - Enhance Processing of Enjoy Purchase Order.
    Use the method PROCESS_ITEM to control the fields at the item level.
    I think is not possible to make the fields non-editable, however, you can put an error message whenever your condition is verified, and the user won't be able to change the fields.
    Cheers,
    Pedro

  • New tabs added by Badi ME_GUI_PO_CUST not seen in ME21N and ME22N

    Hi All
    I am implementing BADI ME_GUI_PO_CUST / ME_PROCESS_PO_CUST to add additional fields in Purchase Order Header.
    The implementation of the BADI ie the Subscreen of the fields to be added appears in Header of  transaction ME23N but it does not appear in the transaction ME22N and ME21N.
    Can anyone help me on this.How to make the tab appear on screen in transaction ME21N and ME22N.
    Thanx.

    Dear Friend,
    Just go to the Class CL_PO_HANDLER_MM
    This is the Super Class for the PO & PR.
    If u debug the PO u can see that PO is calling this super class.
    For this u want to create Subroutine in the Function Group calling the Screen .
    The Problem which u r facing is that the Instance are not yet created for that Cusotmer Data.
    Once u created this Subroutine u can see the fields..
    With Regards,
    Sumodh.P

  • User Exit transaction ME21N and ME22N in the save moment

    Hi, all.  I need one user exit to transaction ME21N and ME22N for SAVE.
    I need name user exit please in the save moment.
    Message was edited by:
            Martínez Vásquez Rubén Dario
    Message was edited by:
            Martínez Vásquez Rubén Dario

    Hi,
    Please check this user exits.
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer's Own Data in Purchasing Document
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 are the best place to change line item. I used in both places again it depends on your requirement for PBO or PAI.
    By the way, what do you mean by actualization?
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Send mail with Z Message Class in me21n and me22n

    Hi everyone, i'm new at the forum and this is may first post so i ask for apologies if i post it in the wrong please.
    Well my question is this, i have an z class message in the NACE transaction that it's suppose to send a mail, well if i use the standard program SAPFM06P form ENTRY_NEU with a sapscript it send correctly the mail and i can display it in the SOST transaction, but i need it to display a smartform not a sapscript, so i copy the program to Z and make it call my smartform, if i go now to the me21n/me22n/me23n an make a print preview it's display my smartform correctly, to this point it's all ok, but the problem is that when i modify something in the order and save, my Z message class does not send the mail (i can't see it in the SOST transaction)
    I was looking and it seems the problem is that the SOST and the SOOD table are not update but the NAST table does, so when i go to the SOST transaction it doesn't find the data to display.
    I know that the update it's done in the form BUCHEN of the SAPLMEPO, but i can't find where.
    Does anybody know how can i fix this problem? basically i want the me21n and me22n send the mail.
    Thanks a lot

    Thanks for your quick answer, I'll check and let you know any news
    PD: what do you mean by "you need to maintain condition records as external send. then only it will send the mail automatically"?
    Edited by: -tk85- on Jan 18, 2012 3:32 PM

  • ME21N and ME22N

    Dear Gurus,
    I have a question here.
    Currently I am using an user exit EXIT_SAPMM06E_013 which is used for transaction code ME21N to check PO before saving. This user exit is to trigger an email to user when there is a creation of PO. The user exit is working fine in ME21N.
    However, when user is in ME22N (Change mode) and then create PO by clicking "Create" button (in ME22N), the user exit is not working. There is no email trigger to user when a PO is created. By right, the user exit should work because user is in "Create PO" although it's in ME22N t-code.
    I have tried to remove the t-code in my program but when user is in ME22N (changing PO) and then click Save changes, it kept on sending emails to user which it is not recommended. User would only like to receive emails when a PO is created instead of PO changes.
    I would like to know if there is a way to solve this. Kindly help.
    Thanks.
    Santthi.

    Hi,
    Are you using SY-TCODE to control the logic?
    Just a suggestion, you can use the internal structure XEKPO to check whether there is an empty EBELN (PO number). If it's empty, meaning it's the saving of a new PO, else if it has value then most likely you are in another transaction to create the PO.
    Please take note that the above will also work if you are assigning external PO numbers.
    Hope that it helps to solve the logic to differentiate between ME21N or ME22N to create PO.
    Thanks

  • User exit for tcode ME21N and ME22N

    Hi everyone
    Can anybody tell me the user exits found in the tcodes ME21N nad ME22N, when saving a PO?
    Regards
    Anjali

    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.
    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
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MM06E011            Activate PReq Block
    LMEKO001            Extend communications structure KOMK for pricing
    LMEKO002            Extend communications structure KOMP for pricing
    If useful reward.
    Vasanth

  • To add a custom field in table control in transaction me21n and me22n

    Hi Guru's,
    I have a requirement to add a field in the table control at the time of creation of PO (ME21N). I enhansed the structure MEPO1211, but it is not appearing in the transaction. What should i do in order to bring that field in table control.
    I implemented badis ME_GUI_PO_CUST and ME_PROCESS_PO_CUST by seeing some forum results.But i didnt get how to implement...
    Please help me in this regard how to follow the steps and if possible please provide a sample code.
    Thanks & Regards,
    R.P.Sastry

    hi,
    Suppose in the there are three tabs BADI customer1, BADI customer2 and BADI customer3 at item level.
    Say:
    On BADI customer1 there are three fields FIELD1, FIELD2 and FIELD3.
    On BADI customer2 there are two fields FIELD4 and FIELD5.
    On BADI customer3 there are three fields FIELD6, FIELD7 and FIELD8.
    Then the fields have to be added to EKPO (or requisite custom table as the need may be) and also fields are also to be added to custom structures.
    Create a Structure ZSTRUCTURE1 which will contain the three fields FIELD1, FIELD2 and FIELD3.
    Create another Structure ZSTRUCTURE2 which will contain the two fields FIELD4 and FIELD5.
    Create another Structure ZSTRUCTURE2 which will contain the three fields FIELD6, FIELD7 and FIELD8.
    The Structure STRUCTURE1 has to be passed for tab BADI customer1, the Structure STRUCTURE2 has to be passed for tab BADI customer2 and the Structure STRUCTURE3 has to be passed for tab BADI customer3.
    Each custom tab/screen should have its own structure to handle the screen fields, but the screen field data has to be transfered to and from EKPO (or requisite custom table as the need may be) for database update/retrieve.
    Hope this helps.
    Regards,
    Ritesh

  • Error message in ME21N and ME22N

    Dear Friends,
    I am facing one problem... my requirement is at the time of saving purchase order i need to check some thing and if that check fails i need to display the error message and needs to stop the creation of purchase order. That error message at the status bar also ok and pop up also ok. But when i try to display that error message in one exit 'EXIT_SAPMM06E_012' then the eror message is not coming properly.. i mean it is displaying one box under that one red symbol and in the message comming my message class name. I could not able to display the proper error message in proper way.
    I have tried one BADI also post save method that is displaying error message properly but immediately after that i am getting one more pop up saying system error with POST_METHOD some thing like that. I haVe checked in debugging that second error message is displaying from the standard program (message class : ME and number 816) but i dont want that second pop up. How to skip that and how to provide proper error message.
    Any help will be highly appreciated.
    Thanks a lot in advance,

    Hi,
    here is the sample of the code we have used in our system.
    restrict logic based on Document Type and Company Code
    IF i_ekko-bsart EQ c_ub AND i_ekko-bukrs EQ 'XXXX'.
    loop at Line Items of PO
      LOOP AT tekpo WHERE loekz EQ space.
      if Receiving Plant is YYYY and Storage Location is NULL
        IF tekpo-werks = 'YYYY' AND
           tekpo-lgort = space.
        issue error message
          MESSAGE ID 'ZM' TYPE 'E' NUMBER '042' WITH
              tekpo-ebelp                               "line item
              tekpo-werks.                              "receiving plant
        ENDIF.          "receiving plant/storage location
      ENDLOOP.
    ENDIF.          "document type
    Hope this helps.
    -Ramesh

  • Transaction ME21N and ME22N - blocking orders

    We're implementing SAP ECC 6.0.
    We had implemented the user exit USEREXIT(EXIT_SAPMM06E_013). This user
    exit checks the order condition once you had saved the order nad it
    blocks all the order positions.
    For some days this user exit has worked out with no problems but,
    suddenly, this user exit stopped working. In order to try to solve the
    problem, we implemented the BADI(ME_PROCESS_PO_CUST) event POST, but
    the problem is not solved. Both the user exit and the badi changes the
    value for the field which blocks all the order positions but, when you
    record the order the file with the order positions still remains
    unblocked (table EKPO).
    We include the code implemented for this issue:
    DATA char(50) VALUE '(SAPLMEPO)POT[]'.
    DATA itab LIKE bekpo OCCURS 0 WITH HEADER LINE.
    FIELD-SYMBOLS <f1> TYPE ANY.
    ASSIGN (char) TO <f1>.
    itab[] = <f1> .
    LOOP AT itab.
       itab-loekz = 'S'.
       MODIFY ITAB.
    ENDLOOP.
    <f1> = itab[].
    Thanks in advance

    Hi,
    Please check this user exits.
    EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer's Own Data in Purchasing Document
    EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)
    EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)
    EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 are the best place to change line item. I used in both places again it depends on your requirement for PBO or PAI.
    By the way, what do you mean by actualization?
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Enhancement for ME21N and ME22N

    Hi Expert,
    I need to change the delivery priority in STO, according to the data entered in the header(EKKO). But i am not able to find an exit or BAdi which is having the parameter delivery priority. The table and field names: ( EKPV LPRIO).
    In case anybody working similar requirements please let me know.
    Thanks and Regards
    Joby Jacob

    in method Post you can do this stuff like that
      DATA: ls_mepo TYPE mepoitem,
            ls_items TYPE purchase_order_item,
            lt_items TYPE purchase_order_items.
    lt_items = go_header->get_items( ).
      LOOP AT lt_items INTO ls_items.
        ls_mepo = ls_items-item->get_shipping_data( ).
    then set_shipping_data...
      ENDLOOP.

  • Info record and source list mandatory for PO creation?

    Hi Gurus,
    Client wants to make Info record and source list mandatory for PO creation?
    If Inforec and source list not available for that material, then user can't able to create PO.
    How can I achieve this requirement?
    Any user exit available?
    pls help..

    Hi ,
    SproMM-Purchasing -Source ListDefine Source List Requirement at Plant Level
    If u mark the indicator then the Source list is mandatory for all the materials procured.
    If u want for a speciic material , mark it in purchasing view of Material Master.
    Inorder to create a source list , inforecord is mandatory -- this is by default Standard SAP .
    Regards
    Ramesh Ch

  • Differences between AKTH and ME21-ME21N and between AKTV and ME22-ME22N??

    Hi Gurus
    Does anybody know the difference between AKTH and ME21-ME21N and between AKTV and ME22-ME22N??

    if you create a PO using ME21/ME21n following field selection groups are called (in Standard)
    I_AUSWAHL0                                             ME21N
    I_AUSWAHL1                                             AKTH   <<<<<< means create
    I_AUSWAHL2                                             NBF
    as soon as you add any field (e.g.Vendor) the logic is changed and following groups are called:
    I_AUSWAHL0                                             ME21N
    I_AUSWAHL1                                             AKTV      <<<<<< means change
    I_AUSWAHL2                                             NBF
    (when you fill the Item data, additional field selection keys are called as well)

Maybe you are looking for

  • I can't hear sound after upgrading to lion

    I have this little annoying problem with my iMac after upgrading to Lion OSX. After waking up my iMac I can't hear any sound from internal speakers, ie: only video on Youtube, but no sound, but whilst pressing volume up/down button I can hear beep. W

  • Positional Flat File Handling in B2B

    Problem: There is a big problem with handling positional flat files in Oracle B2B. We are trying to handle Positional Flat File, in UTF-8 with BOM encoding, after creating document definition and setting the agreement, we received: B2B-51507 Error: T

  • Since upgrading to new version 3, my symbols layers are invisible?

    Since upgrading to new version of Adobe Edge animate 3, my symbols layers are invisible? The animation was originated in version 2, which works fine still, yet when I open the file in version 3, the symbols layers are not showing up on the stage? Any

  • Can use asp code in xsl page?

    hello, i want to know can i use asp code in xsl page ..if so, please let me know. thz nway nge

  • HDCP error when I try to watch a tv show I just purchased

    I recently just purchased a tv eppisode from iTunes and everythime I try to play it it comes up saying that it can only be played on displays that support HDCP. I was wondering how can I get a display that supports HDCP?