PO User Exit - EXIT_SAPMM06E_012

Hi all,
I'm using the exit EXIT_SAPMM06E_012 to update manufacturer field (EKPO-MFRNR). The values updated are not saved when the document is saved. Is this the right exit to use?
Thanks in advance,
Senthil

Hi
You can use BADI's for the same
You can use ME_PROCESS_PO_CUST definition and use
the "PROCESS_ITEM" method and
and with in the method
you should call
call method IM_ITEM->get_data
    RECEIVING
      re_data = l_EKPO.
business logic.
call method IM_ITEM->set_data
    EXPORTING
      im_data = l_EKPO.
We used this badi to populate value to l_ekpo-evers
I hope this will solve the problem
Regards
Madhan Doraikannan

Similar Messages

  • User exit or BADI for determining the output type inme21n orme22n

    hi all,
         i have used the user exit 'exit_sapmm06e_012', it is getting triggered in me22n, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do antone know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

    Hi Santosh,
    Why not continue the other post ?
    Anyway, i am not sure to understand your requirement.
    Do you want to check that vendor email exist and issue a message only if email is not available ?
    Kind regards,
    Yann

  • User Exit PO MM06E005 - Screen does not exist

    Hello All,
    I created a new object for user exit 'EXIT_SAPMM06E_012' in Development System. This user exit is under the enhancement MM06E005. The user exit EXIT_SAPMM06E_012 will be used to produce an error message when saving a PO.
    After Transported the Project into Quality System and  I tried running transaction ME22->Select one line Item record in table control -> (Menu) ITEM -> Confirmations -> Overview   to confirm the PO. I have been getting a dump telling me that “SAPLXM06 Screen ‘0111’ Screen does not exist." This is because the screen exit was also included in the activation.
    When I have deactivated the Project its working fine.  This problem occurs only the activation of user exit.
    Thanks & Regards
    Sudheer

    hi,
    the problem when activating the exit you would have checked or activated the screen which currently is there in the development system , or you would have activated the screens and put them in a different request or in $tmp so when the request having the exit got transaported the screen code or activation was not taken along.
    Deactivate the exit and then deactivate the screens also.
    and then try to activate and put all in one request : deactivated and activations.
    Narayani
    Message was edited by:
            Narayani

  • ME22N User Exit

    Hello all,
    Here is what I want: I need to check the 'User entered' values of Vendor confirmation (EKES) details from ME22N and validate the same in one of the User exits, BEFORE the PO is saved. I have checked most of the User exits for the transaction ME22N. I found one such user exit EXIT_SAPMM06E_012 that has all the user entered values Except the EKES that I actually want. I also checked the user exit EXIT_SAPMM06E_013 that has EKES details, but is called after the PO is saved. Please let me know in case anyone of you have a solution to it. Also, am not sure if there is any BADI for this.
    Thanks and Regards,
    Deepa S.

    Maybe you can use the EXIT_SAPMM06E_012  user exit, and pull the needed data thru field symbols.  Here is an example of what I'm talking about.
    These two programs simulate passing data thru field symbols.  In the first, it gets data into IMARC, then it calls a subroutine which resides in the second program, in this subroutine, it uses field symbols to access the data of IMARC. 
    **  Pass values with field symbols with using parameters.
    **  can be done thru function module or thru external subroutine
    **  call.  variables must be global.
    report zrich_0006 .
    tables: mara.
    parameters: p_matnr type mara-matnr..
    data: matnr type mara-matnr.
    data: imarc type table of marc with header line.
    matnr = p_matnr.
    select * from marc into table imarc up to 10 rows
                   where matnr = p_matnr.
    perform entry in program zrich_0007.
    report zrich_0007 .
    *       FORM entry                                                       *
    form entry.
      data: field(50).
      data: xmarc type marc.
      field-symbols: <matnr>.
    <b>  field-symbols: <imarc> type marc_upl_tt.</b>
    * Assign an individual variable
      field = '(ZRICH_0006)matnr'.
      assign (field) to <matnr>.
    * Assign an internal table
    <b>  field = '(ZRICH_0006)IMARC[]'.
      assign (field) to <imarc>.</b>
    * Write out your data
      write <matnr>.
      loop at <imarc> into xmarc.
        write: / xmarc-werks.
      endloop.
    endform.
    In your case, you will want to add this code into your include which is in the EXIT function module.
    Regards,
    RIch Heilman
    Message was edited by: Rich Heilman

  • Restriction of BAPI_TRANSACTION_COMMIT in User Exit

    Dear Experts,
                          I am trying to create Sales Order upon saving Purchase Order through user exit EXIT_SAPMM06E_012  using BAPI_SALESORDER_CREATEFROMDAT2.But i got to know that ...we should not use BAPI TRANSACTION COMMIT in user exits as it leads to data inconsistency.....Can any one please let me know the other way other around..
    Regards,
    Kartheek.

    Don't call BAPI_TRANSACTION_COMMIT or COMMIT WORK anywhere in your user exit coding that is all )
    Really, SAP will save your sales order when the purchase order will be committed  and saved.
    It doesn't matter where the COMMIT happens so far it happens within same LUW. Now if you are calling BAPI to create sales order within EXIT_SAPMM06E_012 and don't do a COMMIT in anyway then the purchase order save will automatically commit it.
    I think EXIT_SAPMM06E_012 is an ideal place to call the sales order create BAPI as it is just called before the PO is saved. If for some reason PO doesn't save and ROLLBACK occurs then your sales order also won't get created.

  • PO Vendor Confirmations User exit

    Hi all,
    I'm using EXIT_SAPMM06E_013 for changing the Vendor Confirmations in ME22n.
    I'm validating data in this exit(using EKES table), if fails I need to display the error message in this transaction.  This exit triggers and it is displaying the Information message instead of error message and teminates the transaction giving the error 'Error in method PO_POST'.
    Anybody faced such type of problem before? Please help me in this.
    Is this the right exit I'm using?
    Regards,
    SP Kumar

    Hi,
    Do the checks in the user exit EXIT_SAPMM06E_012 and use the macro
    mmpur_message
    to display the messages in the error log popup..
    Ex...
    MMPUR_MESSAGE 'E' '00' '208' 'Error in Confirmation' SPACE SPACE SPACE.
    Thanks
    Naren

  • USER EXITS FOR PO

    Hi guys i have to incorporate user exits .
    i know the exits which is to be used.
    but i dont know how to code in them.
    actually  i am using user-exits first time.
    thats y not able to implement it here.
    please help me out.
    i am hereby giving the scenario.
    we first created a ztable in database which i am updating , in which i have an SO(sales order) no. and its item number and correponding to that BOM Components.
    1st. column = so
    2. = item no
    3. matnr
    4. description
    8 = po number
    Now my requirement is to check this ztable and
    case :
    Creation / Saving a purchase order – ME21n
    For every purchase order created, check the value of the field ‘EKKN – VBELN’ and ‘EKKN –VBELP’ and compare this value with the sales order no. in the table (column 1) and the sales order item number (column 2)
    If there is match, check the Purchase order number in the field EBELN and use this value in the table EKPO to identify the Purchase order items.
    Item code: EKPO – MATNR (match this with the 3rd column of the table)
    Check the balance budget for this material. If the balance budget is greater than the Purchase order value in the table EKPO – NETWR’, than save the Purchase order and update the order number in the 8th column of the above table.
    as i know these tables here are not hte database tables but are the internal tables that are used in the user-exits.
    but still i dont know how to use it.
    enhancement is : MM06E005
    USER-EXIT : EXIT_SAPMM06E_012
    AND
    USER-EXIT : EXIT_SAPMM06E_013
    This is the case
    please help me out i am in a real need.
    and the main problem is that i dont know how to use it.
    i am waiting for your response.

    Hi,
    Go to transaction CMOD and create a project starts with Z* and assign the enhancement MM06E005 by pressing enhancement assignment button.
    Then click the componenents push button which dispalys the list of function exits including EXIT_SAPMM06E_013.
    Navigate to the function module by double clicking on that.
    It leades you to SE37 transaction and at the end of it there is a include program.
    Double click on that ,there would be warning message appears and just keep press enter.
    Implement the logic as you do it for your any abap program.
    Activate the include and activate the project using SMOD as well.
    Thank you.
    regards,
    karun M

  • User-Exits stop working in automated purchase order creation

    Dear all,
    we used to create sales orders with transaction VA01 and then separately call ME21N to create a purchase order.
    In saving the purchase order we activated user-exit EXIT_SAPMM06E_012 to process some extra logic we need here.
    Now we changed to process for SAP to automatically create the purchase order (to eventually be able to automate the entire process, including sales order creation). Ever since we did that, the user exit is not called any more!
    Does anyone know why? If I manually open ME22N and save the PO, it works! We have to find a way to run the logic in the user-exit during automated PO creation just for the volume of orders.
    Besides that, we're still looking for a convenient way to update PO confirmations using a BAPI or other function module.
    Thanks for your help!
    regards,
              Johannes.

    Good question
    User-exit may not work as the function modules [ and not ME21N ] called in the Sales Order --> Purchase Req --> Purchase Order process may not call the enjoy user-exits.
    Further, this process of automated PO works on Business Obejct event trigger.
    So a event is triggered [ ALECREATED ] on Sales Order Business at the time of Sales Order Creation.
    This event is linked with a function module  called PUR_ORDER_CREATE_VIA_SD_EVENT.
    similarly for change it is PUR_ORDER_CHANGE_VIA_SD_EVENT.
    If you go through the FM code, you can make out how to utilize this FM as user-exit.
    However you need to make the change in this FM after copying the related function group to a Z one. And then change the event linkage accordinlgy to call the new FM.
    See Business Workflow --> Events section..
    If you are not sure about how to do the event linkage then ask it in BPM section...[ They will request you to get lost ...no no ..they didn't do it to me ..just kidding ]
    Cheers,
    Ram

  • Screen field (MEPO1211-KONNR) not populated user exit ZXM06U43

    Hi Expert,
                      I have to check  Outline agreement (EKKO-KONNR) in the user exit ZXM06U43 when creating or changing PO. one screen field (MEPO1211-KONNR) is provided for that. But value is not populated  into that field(MEPO1211-KONNR) for this user exit ZXM06U43, its always blank. Infact hole structure (MEPO1211) is blank for this exit. 
    So can anybody provide me the screen field name so I can get the value of KONNR in this exit.

    Hi,
    In the user exit - EXIT_SAPMM06E_012, YOU CAN ONLY DO CHECKS/VALIDATIONS;
    you have a paramter I_BSTYP which hold the type of the document(PO/Out Agreement/PR).
    Paramter I_EKKO will hold the data entered on the screen. It will be the incoming data which can be used to validate.
    TO PASS THE DATA, CHECK the below exit:
    EXIT_SAPMM06E_018 : Import Data from Customer Subscreen for Purchasing Document
    EXIT_SAPMM06E_007/EXIT_SAPMM06E_006: Export Data to Customer Subscreen for Purchasing Document Header
    Hope this helps
    Regards
    Shiva

  • 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 - Purchase Order Create - Payment Exceeded

    Hello All,
    When i will to save the PO, i need to check payment budget.
    I'm using the User Exit MM06E005/EXIT_SAPMM06E_012.
    But when the error is about payment budget exceeded, the message is displayed before the program enter in the user exit. So, i can't check because the program do not enter in User exit.
    How can i solve it?
    Thanks

    Hi ,
    If  ur craeting a accout assigned PO and ur getting the message caled , payment budget exceeded , then it means that,
    that account which ur assigning has got some limit of Rs.
    But ur total amount of PO is exceeding the limit and basically it s a functional issue, but if u want to ceck the exit for ur case then , what u can do is u craete a po whose total amount is less than that account limit.
    Even i was facing the same problem, so what i did i try to crate a po with only one line item and qty 2 with price 100 Rs only , and that error will not come and u can chk ur exit smoothly.
    If u face any problem , pls ask if i can reply u
    Regards

  • 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

  • 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

  • Purchase order user exit / BADI / Enhancement points

    Hello  experts,
    Please Help me to get the user exit or any way to enhance the PO functionality. I am trying to set the PO line item status to "Blocked" or "Unblocked" whenever a change is triggered in PO line item for transactions Me21N / Me22N. The blocked status will be triggered by the custom enhancement, this is the requirement.
    Thanks in advance for your help.
    I tried the user exit MM06E005, but not working.
    - Nagarajan

    Hello  Nagarajan Ramudu,
    inside of MM06E005 you should try the function module EXIT_SAPMM06E_012,
    i'm using this user-exit from all things in my company.
    Regards,
    Welinton Rocha

  • User exit order purchase

    hi all,
    I try to do a validation in the transaction me21n, Actually the system make a validation when  the budget is exceeded  and generate a error message,  I need to recover some data of the order like  banfn, bnfpo, bedat, ernam y loekz, when there is  this error and  insert them in a table "Z" .
    Somebody could tell me which user exit can I use?
    Regards.
    MArisol

    Hi Marisol,
    You may need to take a look this user exits
    <b>EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
    EXIT_SAPMM06E_013 - Update Customer-Specific Data in Purchasing Document</b>
    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       
    Hope this will help.
    Regards,
    Ferry Lianto

Maybe you are looking for

  • Please Help! Im at my witts end!!

    Im praying someone here can give me some advice, if i could find someone from BT to go and see i would. I have never recieved such terrible service from any company.  Ok, my problem.. Ill give you the full story. Was a very happy customer with ZEN in

  • Dual monitor setup - need laptop on the left

    Hi All I'm running a dual monitor setup - specifically a HP G72 laptop and a widescreen monitor. I use the monitor as the default and sometimes I want to use the Laptop as a secondary screen for watching TV etc. My desktop is Enlightenment, I just ch

  • 1099 amounts not being combined when more than one vendor same TIN

    I have multiple vendors within the same company code with the same tax id number. When the 1099's are generated, the amounts for both vendore are not getting combined. So if for one of the vendors, he has been paid $4850.00 on one vendor number, and

  • Troubleshooting labview for motion control

    I use labview for establishing a 1-d straight line movement for a small dc-motor, i have a PCI-7430 controller and UMI_7774, but after i wrote the code on labview, an error appear,contains the following: error 70006 occured at load velocity(the sub v

  • Can anyone help me with Facetime on Mac.

    I can call and connect from iphone to ipod and ipod to iphone, but when i try from mac, the iphone/ipod gets called, but when I press 'accept', it stays in 'connecting...' mode, until it times out. It then tells me the called iphone/ipod "is not avai