User Exit on Material Save in MM01/MM02 (31I)

Hi,
Does anyone know of a user exit that gets triggered upon material save in MM01/MM02 in 31I? I see there is one exit MGA00001, but it is purely for checking the field values in 31I. The same exit has different interface in 46C version and can be used to update the material master data. I need to update the additional EANs (table MEAN) on the material master in 31I version.
Thanks,
Prayarna

HI,
Just execute this report , the input parameter for this report is the  transaction code,Enter the transaction code you will get the user exit available for the particular transaction.
If you find my answer suitable pelase reward me with suitable points.
REPORT Z_USEREXIT .
TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
TABLES : 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 OBLIGATORY.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
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 = 'SMOD'
                  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:/(95) sy-uline.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 sy-vline,
           2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
    WRITE:/(95) sy-uline.
    LOOP AT jtab.
      SELECT SINGLE * FROM modsapt
             WHERE sprsl = sy-langu AND
                    name = jtab-obj_name.
      FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      WRITE:/1 sy-vline,
             2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
    ENDLOOP.
    WRITE:/(95) sy-uline.
    DESCRIBE TABLE jtab.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No of Exits:' , sy-tfill.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No User Exit exists'.
  ENDIF.
ELSE.
  FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
  WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
AT LINE-SELECTION.
  GET CURSOR FIELD field1.
  CHECK field1(4) EQ 'JTAB'.
  SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
  CALL TRANSACTION 'SMOD' AND SKIP FIRST   SCREEN.
Regards,
Irfan Hussain

Similar Messages

  • User Exit for Material Master

    Hi everybody,
    I'm looking for a BAdi or an userexit for material master data (TA MM01/MM02). This BAdi should be used every time a user press the save button. I could not find any BAdi in the SAP help.
    Do anybody of you know if there is a BAdi implementation or userexit exists?
    Regards
    Berthold

    Hi Berthold,
    Here are user exits and BADI available for MM01/MM02.
    User Exits:
    MGA00001                             
    MGA00002                             
    MGA00003                             
    BADIs:                     
    MG_MASS_NEWSEG                       
    MATGRP_SKU_UPD                       
    CDT_CHECK_MATERIAL                   
    BADI_MM_MATNR                        
    BADI_MAT_F_SPEC_SEL                  
    BADI_MATNR_CHECK_PVS                 
    BADI_MATERIAL_REF                    
    BADI_MATERIAL_OD                     
    BADI_MATERIAL_CHECK                  
    BADI_GTIN_VARIANT                    
    BADI_EAN_SYSTEMATIC       
    Regards,
    Ferry Lianto

  • How to find the ME29N 'USER EXIT' when our save the release PO after.

    How to find the ME29N 'USER EXIT' when our save the release PO after.
    which user exit will be used?
    thanks.
    alex.

    Hi,
      process :
        go to tranx code :   ME29N ,
           System---->Status , here copy the program name (SAPLMEGUI),
         go to abap editor and specify the program name SAPLMEGUI and find the package "ME".
         tranx code : CMOD ,  Utilites--->Sap Enanchement,
                                         specify the package name : ME
                                          and execute, displays a list of exits ,
                                 and find out our suitable exit based on requirement.
    check these :   EXIT_SAPMM06E_021
    reg
    Siva

  • PC-WQS: User exit for material valuation

    Hello,
    Currently we use data from the purchase info records to carry out material valuation of raw materials in the cost estimate. The client would like to get this data from the contracts instead of the info records since all purchase orders get information from the contracts. The second reason is that maintenance of the info record is very cumbersome and prone to errors when creating or updating the cost/ quantity.
    My question is, has anyone used the user exit COPCP005 - User exit for material valuation (strategy U) in the valuation variant and has anyone gone after the contracts to get the purchase price?
    If yes, I would like to know how you did it.
    Thanks,
    dinesh

    Can you explain a little more where you encountered the problem?
    1. Is there a Val Strategy before the Val Strat U that is probably able to find a price for costing?
    2. Is the User Exit being triggered?
    3. Can you run CK11N in the debug mode (/h) and check if the User Exit is triggered?
    4. If all of these occur, the problem probably lies in the ABAP code... check for changes in the material number range or plant codes, or the plant-specific material status - the system does not valuate if the status does not permit it to.
    If nothing works, come back with confirmation of the above and we'll go forward from there.
    Cheers.

  • User Exit/Field Exit for Field Selection in MM01 & MM02

    Dear All,
    Please Tell if I want to make Field Purchasing group Mandatory in MM01 & MM02 in Purchasing view only.I dont want the data to be updated in MRP1 view. Please tell me is there any exit for the same.
    Regards,
    Sandeep

    You can customize
    via
    SPRO>Logistics - General>Material Master>Field Selection>
    first from
    Assign Fields to Field Selection Groups
    you must assign MARC-EKGRP (Purchasing Group)
    to a selection Group which will be mandatory.
    Then from Maintain Field Selection for Data Screens
    you must choose the Material Types which you want to make
    Purchasing Group mandatory.
    You must check Reqd Entry for the material types you want
    Best Regards
    Hope will help

  • User Exit for Material Group...Urgent help needed

    Does anybody have an idea of which user exit can be used to capture the changes made to material group in MM02(Material)..... Urgent help needed...

    See  the below user exit and this will trigger under MM01,MM02 and MM17 Transaction
    Enhancement name : MGA00001
    Function module :EXIT_SAPLMGMU_001
    Include : ZXMG0U02
    Reward Points if it is helpful.
    Thanks
    Seshu

  • User exit in material creation

    Hi,
      Can anyone help me to find a user-exit while saving a material in MM01? I need to validate the sales data of the material, table MVKE.
    Regards,
    Priya.

    Hi,
    MGA00001 is the enhancement which you can use to check the data while creating Material. All the data(like MARA, MARC, MVKE) are available during this enhancement.
    If this solves your problem please close this Qn and award points.
    Thanks
    Vamsi

  • MB1A User Exit at document save

    Hi everyone,
    I have a requirement related to MB1A for materials distribution to personnel defined in HR. This can happen at line <Enter> press or at 'Document Save' time (either one is good, but could not get any to work). The requirements are:
    - get all material quantities in all the lines of the document
    - match the materials against a custom price table and get the total amount of the document
    - compair the total amount with some value related to the person HR that receives the materials
    - send a message to the user if the total amount is greater than the value
    For this I tried MBCF0002 but here only get access to the current line item, not to all of them so I cannot get the total amount, only the line amount. I am aware about some other user exits but in none of them I could get a hold of all line items in the document before the document would be saved.
    Do you know if there is a user exit where as parameters there are available all line items, or where can I find them, if I use MBCF0002?

    Used MB_DOCUMENT_BADI but get an error using the described business logic.
    The implementation text for MB_DOCUMENT_BEFORE_UPDATE method is:
    (... some select from ztable and call for HR infotype, no insert or update...)
    MESSAGE 'display text here' TYPE 'W'.
    The problem is that user will see the message then try to modify the document lines. When trying this, he gets an ABAP error, message class M7, message number 372.
    Checked the code in include MM07B9_BUCHEN_AUFBEREITEN in SAPMM07M program and found that this 'before_update' method is not supposed to be called more than once for some reason. In this case my business flow is broken (the request is to show the warning and then allow some modifications to the document, then check again).
    Do you know of another user exit/badi that can help? For the workflow to function as requested, such a function should allow access to all document lines (not just a current line of the document line).

  • User exit for material code based on number range

    Hi viewers,
    Can you please tell me the User exit to be identified for material code t based on  the number range (External or Internal)
    For ex: LAFAMLP is the material code I want this material code as case sensitive .
    It should take what ever case we give.
    Regards
    Kumar

    Hi,
    First goto MM01 transaction code in menu System-> status..pick the program name ,then
    Goto SE38 give that program name select Attributes radio button click on Display button,
    you will get one popup from the popup pick Package ...
    Then now goto SMOD transaction in menu utilities(or/any one of the menu you will find (find option ))->Find this will list out all the possible exits...As follow
    mga00001 material master (industry): checks and enhancements
    mga00002 material master (industry): number assignment
    mga00003 material master (industry and retail): number display
    I think second one will help for you ,,,here you can code your requirement

  • BADI or User Exit - Change Material Document(GL/Account) before posting

    Hi,
    I want to change the MSEG and FI Posting values before the material documet is posted. I am not using the transaction MIGO for the material document posting. The material document which has to be changed was created during the stock adjustment (MI01,MI02,MI07.etc)
    The Details I want to change is "GL Account No" based on
    storage location. Since I cannot solve this requirement throught customization, I need a way to achive this using
    user exits or badis..
    Points will be rewared.
    Prasath
    Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM
    Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM

    Hi ,
    What you advised is right, But my customer demands to set the Gl Account at Storage location level.
    Is there any way that i can change GL/Account after Posting....????!!!!  I hope it also not possible..
    Plz advise..abt my assumption.
    Regards
    Prasath
    Dear All,
    Please let me know the possiblity of achiveing the above reqmt. Your suggestions will be helpful..
    Regards
    Prasath
    Edited by: Prasath Kumar R on Jul 25, 2008 9:33 AM

  • User exit for check/save/hold in Purchase order

    >The client requirement is like this :-
    >The client has development a Order Approval Form process and want the user to create all the purchase orders having value all inclusive value of Purchase order above Rs. 300000/-.
    >The user should not be able to save/hold/modify any purchase order above Rs. 300000/- in normal SAP through tcodes ME21N, ME22N, ME23N.
    >For this we need to use a user exit and flash an error message that PO value is above Rs. 300000/-, hence please process the purchase order in OAF.
    >Can any one please provide details of which user exit to use for the above scenario.
    >Thanks in advance
    >AJ

    BADi:ME_PROCESS_PO
    Method: PROCESS_HEADER
    PROCESS_ITEM
    Or
    BADi:ME_PROCESS_PO_CUST
    Method: PROCESS_HEADER
    PROCESS_ITEM
    Call your ABAPer to do the same.

  • User Exit on the save of Billing document (VF01)

    Hello All,
    I have a requirement where in during the creation of a billing document of a particular type i need to put in a block to prevent the creation of a accounting document and call a workflow to remove the block in the Invoice.
    My requirement is that I require a user exit which is triggered on the save of the invoice document so that a call to the workflow can be done where in the runtime information of the document would be available in the workflow for further processing .
    Helpful answers would be rewarded.
    Thanks in Advance,
    Sowmya.

    Hi,
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).
    USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).
    USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy).
    USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.
    USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
    This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.
    USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)
    Printing the item line of a billing document can be supplemented or changed.
    USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Printing the header line of a billing document can be supplemented or changed.
       Refer the help
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    Regards
    Kiran Sure

  • User Exit for material valuation is not called up

    Dear all,
    We want to add special logic when user process the material valuation through CK11N.
    We have also activated the project with the user exit COPCP005, changed valuation variant to "valuation price with user exit" and modified ZXCKAU08 in the component EXIT_SAPLCK21_002.
    And this special logic is correctly workd on development but we are not able to get the desired result on pre-production and production.
    Could you please guide that I check anything more?
    Thanks in advance.
    SK Roh.

    Can you explain a little more where you encountered the problem?
    1. Is there a Val Strategy before the Val Strat U that is probably able to find a price for costing?
    2. Is the User Exit being triggered?
    3. Can you run CK11N in the debug mode (/h) and check if the User Exit is triggered?
    4. If all of these occur, the problem probably lies in the ABAP code... check for changes in the material number range or plant codes, or the plant-specific material status - the system does not valuate if the status does not permit it to.
    If nothing works, come back with confirmation of the above and we'll go forward from there.
    Cheers.

  • MIRO user exit  at material document creation

    I need to find out where or how material documents are created.  Right now we have one material document per day per invoice so a single document can have many payments made against it (if they are made in the same day).  What I need to do is change it so that each payment has its own material document.  If you have 3 payments against invoice 001 in the same day then you have three material documents against that invoice instead of just one.
    I am assuming this is done, or can be changed, in a user exit.  If not is this a configuration issue?
    Regards,
    Davis

    Here is the list of User Exits and BADIs for MIRO.
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification

  • User exit / Badi on save of trip/receipt line

    Hi All,
    I am trying to find a user exit / BADI that is called when the user either accepts a line of a receipt within a trip or simply saves the trip in total (preferably the latter) and I have been unable to find it.
    Any ideas would be great,
    Thanks,
    Brenton.

    Hello
    In program SAPMWAKA (tcode WAK2) you will find routine MWAKAF03_CALL_PROMOTION_U in which fm PROMOTION_UPDATE is called.
    Within this fm you find at the end the coding:
    * BADI Aufruf
      PERFORM CALL_BADI_INTERF_PROM_UPD USING FXWAKHD.
    ENDFUNCTION.
    This routine check for implementation of BAdI WAKT_BADI_001. The BAdI method INTERFACE_PROMOTION_DATA is used to "Make Update Data Available to External Applications".
    In addition, you should look through the manyfold BAdIs and enhancement spots within package WAKT.
    Regards
      Uwe

Maybe you are looking for

  • PDF form with line printer

    Hi, Is there a way to use PDF form with line printer? how, and the pros & cons. Currently we are using SPF to develop pdf form in sap, however it has limitation to print on line printer that we need to print on 3 ply form. The only option is to conve

  • Generate PDF in WebDynpro 4 ABAP

    Hi, I have the problem, that I would generate a PDF from WebDynpro 4 ABAP and show it in the WebDynpro application. I found the possibility to solve it with the interactive Forms but therefore Adobe Document Service must be installed and the Usage Ty

  • PO Not populating the Message

    HI all, in the past, when we would create PO's from an NBS contract that someone else created with a different buying authority, a message in GLOBE/SAP would pop up stating that we didn't have the authority to create the PO. We would then change the

  • Transferring Data from phone to FB

    Just figuring this Thunderbolt out.  Looking to transfer videos and pix from phone to FB.  Says I need driver.  Went to HTC to download but said it was harmful to my computer.  No driver came with phone.  So what is a gurl to do?  Ha-elp!

  • Sqlplus Client issue

    We're running Linux RH5 x86-64 server with Oracle 11.2 EE Server (64 bit) for a local database and Oracle Client 11.2 (32 Bit) for db connectionss using the SQR (EPMS) reporting program. When attempting a sqlnet connection to a database through the 3