Validating field in me21n

Dear gurus,
I have a requirement where I would like to find a way to default in a checkmark on "Estimated price" (SCHPR) field in condition control for type 47/RO PO's. When a certain plant and Release purchase order document type are selected, Estimated price field should have a check mark by default. By making estimated price as required in IMG, it will effect throughout the enterprise.
I would appreciate if someone could tell me of a userexit or ABAP code to be added for this requirement.
Thanks and regards,
Syed

hello. friend.
are you find the userexit.
i had the same problem.
thanks!

Similar Messages

  • How to add additional tab or fields in ME21n

    Hi all.
    I included some fields in EKKO table.
    I want to add these fields in ME21n, ME22n, ME23n Header screens.
    How to add?
    I can't find screen exit and user exit.
    Plz, let me know how to do in detail.
    Regards,
    nam
    Message was edited by:
            Kil Nam Kim

    Hi
    It is very much possible. Please discuss with your development team with the exact requirements. They should be able to do it with screen exits.
    Reward if this helps.

  • To get f4 help for salesperson field ,transaction me21n & me22n

    Hi Super-Techies,
    I am a new-bie in the world of enhancement.
    The reuirement here is I need to create a custom table with 1 field (prep_name). (This is done)
    Now the reuirement is that whenever user goes to transaction ME21N/ME22N, he wants me to add a f4 help for salesperson field (navigation : ME21N/ME22N -> CLICK ON COMMUNICATION TAB -> SALESPERSON). The f4 help should display the field from my custom table.
    As far as my knowledge is cond=cerned, I can use the function module 'F4IF_INT_TABLE_VALUE_REQUEST' to achieve this requirement.
    But the issue I am facing is where to write this logic and how to proceed. Can anyone help me in this case?
    Any help in this regard would be appreciated.
    Thanks & Regards,
    Vinit
    Edited by: vinit005 on Nov 1, 2010 12:43 PM

    Hi Vinit,
    I also had that requirement. There is no customer exit/BADI by which we can achieve that(as far as my knowledge), we have to use access key to achieve that. So we have gone for customer exit "MM06E005" to add Customer data tab in header and added our own fields, like Sales Person, Buyer Details etc.
    Thanks & Regards,
    Faheem.

  • Add new item field in ME21N

    Hi all,
      I want to add a new field in ME21N transaction, please tell me how to add new field in table control in ME21n tcode. I tried by using variant but according to my requirement invisible fields are not useful. I want to add a new field called MAKE with length 25 and i want to populate some text in that and need to display in related form also.
    Please guide me any enhancement technique.
    Thanks in advance,
    Mahi

    max bianchi ,
      I already seen that BADI definitions but i don't know how to achieve my requirement by using both of that.
    Please guide me the approach.
    Thanks...

  • Adding field in ME21N po header

    Hi All,
    I have added field on ME21N on header level.
    I used below screen exit
    SAPMM06E 0101 CUSTSCR1 SAPLXM06 0101 Subscreen: PO header
    and added fields to structure CI_EKKODB. Field is created on ME21N but table is not updating.
    can you please let me know what and where should I write the code to update the table.

    Hi Atul,
    I have added below code as adviced by you.
    EXIT_SAPMM06E_008  ( include ZXM06U37)
      e_ci_ekko = ekko_ci.
    EXIT_SAPMM06E_006 (   INCLUDE ZXM06U36)
    ekko_ci      = i_ci_ekko.
    it still not updating ekko table for these fields.
    How can I put logic in PBO even of screen 101 for enabling this.
    Please help.

  • Custom fields in me21n

    Dear Gurus  ,
    I have added some custom fields in me21n in header & item level through badi . some fields are in standard table (CI_EKPODB )
    and other are in Ztable . Every thing is working fine .
    Problam is that when i am making a new purchase order through me21n by Copying another purchase order . Custom fields are not copying .
    Example: i have a po no : 101 .
    two custom field  zabc = 123 .
                                 zdef = 345 .
    when i am making a new po by adopt(Through Document overview on) this po 101 these custom fields are not coping  .
    is there any Customizing , exit  , Enhaancement  . That can Resolve this issue ?
    Thanks in advance .
    Hemant Gulati(A1).

    Hi
    In BADI 'ME_PROCESS_PO_CUST', try with method PROCESS_ITEM to populate them with the right filters. Check if in MEPOITEM for fields REFBS and REFPS is the PO that you are copying.
    I hope this helps you
    Regards
    Eduardo

  • Add customized fields in ME21N item overview.

    Hi experts,
    Can we insert our own customized fields into ME21N item overview section.
    Pls advise.
    Thanks and regards,
    Simonksh.

    hi,
    Yes, you can do it with the help of ABAP consultant...
    Pls check whether you are providing all links to the tables for that customised field...For this all coding is required to be done...
    Also check:
    MM06E005 - Customer fields in purchasing documents
    Its an intensive work...
    Hope it helps..
    Regards
    Priyanka.P

  • Addind field in ME21n

    Hi friends ,
    I m adding field in me21n using the enhancement MM06E005  in this i m adding field in screen 0111.
    when i m going to check in me22n custom add is coming but when i m clicking custom tab a dump is coming.
    error is 'THE ATTRIBUTE SCREEN TYPE WITH THE VALUES NORMAL SCREEN AND SUBSCREEN DETERMINES THE USE OF THE SCREEN .IF A NORMAL SCREEN IS USED AS SUBSCREEN OR VICE-VERSA AN ERROR OCCURS.
    THE SCREEN SAPLXM06 011 HAS, IN THIS RESPECT AN INAPPROPRIATE SCREEN TYPE.
    PLEASE GIVE THE STEPS..N HELP ME..
    REGARDS
    YOGESH

    Hi Yogesh,
    Check the screen type of 0111 in the attribute tab. It should be Subscreen.
    Regards
    Dillip Sahoo

  • Modify fields in ME21n

    Hello All,
    I have a requirement where in I need to modify fields of me21n based on a condition:
    if the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then all the conditions (From KOMV table) fileds & all the Pricing terms should be disabled for change/input i.e. should be in display mode.
    I tried to search for an exit for this but could not find an appropriate one to modify screen fields however, the alternae to this requirement is :
    If the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then on entry of the conditions(TABLE KOMV) fields and pricing terms user should get an error message so that he cannot proceed.
    Please suggest me a solution for any of the above two requirements.
    Any help on this would be highly appreciated.
    BR
    Ankur

    Hi,
    Why dont you check with the enhancement project LO020 in CMOD.
    Hope this would help you.
    Or use the class CL_EXITHANDLER to find out the BADI used in ME21N for your requirement.
    Regards,
    Ranjith Nambiar

  • Customer exit for validation of PO fields in ME21N / ME22N - After pressing enter & save button

    Hi,
    I am looking to validate the standard fields(EKKO-IHREZ, Your reference under communication) of Purchase order . So for this I used the customer exit EXIT_SAPMM06E_012 under the enhancement MM06E005 . I am able to validate but it is triggering only when SAVE selected.
    1. Can we implement the same when we press enter button ?
    2. How to log error message using macro for the field EKKO-IHREZ with error message ? As of now I am using message 'asdfasdfasdf' type 'E' which is appearing now in the log messages.
    Regards,
    Praveen CHITTURI .

    Better use methods like PROCESS_HEADER or PROCESS_ITEM of BAdI ME_PROCESS_PO_CUST.
    There are many threads and documents on this BAdI at scn.
    In the chosen methods use Macros mmpur_metafield to attach error to a field (defined in type-pool MMMFD, mmmfd_ref_1 ?) and mmpur_message_forced to raise error message and add it to log.
    include mm_messages_mac.
    im_item->invalidate( ).
    mmpur_metafield mmmfd_matnr.
    mmpur_message_forced 'E' 'ZFSM' '613' ls_item-matnr ls_item-werks ls_header-bsart ls_material_plant-mmsta.
    Regards,
    Raymond

  • Validation:  Field status of G/L account

    Problem:  When posting non-goods receipt invoices in MIRO, G/L account and acct assignment object are proposed by purchase order, but they can be overwritten by users with no validation, often resulting in incorrect posting. 
    Such validation controls are in place for ME51N and ME21N.  That is, the combination of GL account and account assignment are validated/checked against Field Status Group (FSTAG u2013 based on G/L master) as well as Account Assignment Category (in PO).  I want to extend those controls to MIRO non-GR invoices.
    This problems fits description in OSS Note 522101.  The solution recommended in the Note is u201CPossible incorrect entries could be checked or corrected by validation or substitution if necessary.u201D
    If I create a validation in OB28, how should I express the logic in "Check"?
    Appreicate any help on this.

    Hi,
    I do not think so that there are standard BADI or User Exit available in std sap for such validations.
    It is a facility given by sap to post to a separate GL account in MIRO screen.
    If you want a GL to be taken only with perticular cost center or other account assignment , try a user exit or try changing the std program for MIRO.
    Regards,

  • Custom Fields in ME21N transaction

    Hi all,
    I have added custom fields on the transaction ME21N using the screen exit in enhancement MM06E005.
    Now i need to do validations on these fields even if the user does not come to the screen. So i am using the BADI ME_PROCESS_PO_CUST for the validations.
    But this BADI gets triggered only when there is a change in a standard SAP field. If i change the value of the Custom field then the BADI does not get triggered.
    So the problem is that once i issue an error message for the custom field in the BADI .. and then change the value in the custom field, the BADI does not get called and hence the error message stays as it is...
    Any solutions for this?
    thanks,
    Ashiq Ali Ratnani

    even when we create a custom screen, the user-exits which are getting called from other screens should also get called from custom one. If this is not happeing, then you need to check in configurations where you have created this screen, that whether you have done assignment of screen at right place, not at the header level but at tab level.

  • Unable to edit validated field in table maintance

    Hi all,
    my requirement is to show an warning message on non key field if validation is not correct and edit on the same screen.
    solution: I have created an event new-entry in table maintance and tried to validate that field field (email)
    form new_entry.
       if table-email na '@'.
       message w001(incorrect email id)
      endif.
    enfdform.
    - In this way it show the warning correctly but i am not able to edit that email field on the same screen.
    do i need to validate in chain endchain. If yes how ??
    Can anyone suggest the solution with demo code .
    Thanks,
    Aisha

    Simple set sy-subrc some value after message statement and change message type as 'S' like below.
    FORM new_entry.
      IF table-email NA '@'.
        MESSAGE s001(incorrect email id).  " Message type 'S' to stay in same screen
            sy-subrc = 1.  " Set some value other than zero to abort saving
      ENDIF.
    ENDFORM.                    "new_entry

  • Is it possible to change the values of fields In Me21n tansaction?

    I Have to put in some logic to change the values of already existing Shipping condition field in the SHIPPING subscreen at the Line item level in ME21n transaction.
    I searched for the user exit to do soo. Did not find anything to do this. I would like to know if it is possible through some other way.
    thanks
    shubha

    Hi Shubha!
    You might use BAPI_PO_CHANGE. Even if there would be a user exit / BADI, then execution is not sure.
    You said: 'already existing shipping field' -> exits of a transaction are only executed during maintenance, not afterwards.
    So maybe you have to make your changes completely outside of PO.
    Still have a look at BADI ME_PROCESS_PO_CUST, there are a lot of methods and one might help you.
    Regards,
    Christian

  • BADI for Disabling NetPrice field in ME21N & ME22N based of Material Type.

    Hi.
    I had a requirement to disable "net price" field while creating or changing a PO (ME21N & ME22N) based on the type of material entered.
    Please asssit me in finding the BADI or exit name which can meet my requirement. Thanks.

    Hi Ranga nadh,
       The BAdi what you have mentioned is correct.
    ME_PROCESS_PO_CUST - In this BAdi, we are having a method PROCESS_ITEM. These method is used to process all the Item data. As the field Netprice is at the level. You can use this method.
    Here inside this method we are having a parameter IM_ITEM
    So, You create a implementation and inside this method you can code here to appear the field in disable mode.
    Cheers,
    Swamy Kunche

Maybe you are looking for