User exits material

hii frnds
can anybody give me some materials in exer exits .. i want to learn it from scratch ..
thanking you
rohit

Hi,
  Have a look at these good links-
User Exits
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
Mark useful answers.
Regards,
Tanuja.

Similar Messages

  • User exits - material cost estimates

    hello
    Can anyone help me with a user-exits for the transaction CK11N?
    standard program: SAPLCK00
    include: LCK01F0E
    thanks
    regards
    Nitin

    Hi Nitin
    There are not user exits. But there are few BADI's for CK11n transaction. I got a BADI just chekc whether it helps
    Definition Name :  DYNPRO_EXTENSION_CK
    ~Ranganath

  • Need user exits material

    hi.,
    This is satish we requesting to all. I need user exits materials. It is very important me so please any one send the link or pdf file.
    thanking you all

    Please see the following program. This helps you to find user_exits...
    Start -
    REPORT ZFIND_USEREXITS .
    TABLES : tstc,     "SAP Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      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 = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP Modifactions
        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.
    Take the user to SMOD for the Exit that was selected.
    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.
    *--End--
    Hope this`ll work .
    Thanks

  • User Exit manually created, needs to be activated

    Dear All,
    I am a PP consultant and in the absence of ABAPER here needs to do the following. Please provide your inputs.
    For MRP run material selection, I have created a user exit manually in PP-config. The help of this transaction says "User exist must be activated in the SAP externsion concept. The name of the extension is M61X0001."
    Please let me know what is this, where do i activate this and what are the codes that i write to choose the materials having certain MRP controller(MARC-DISPO).
    Thanks in advance.
    Sumeet
    P.S. > The config is done in SPRO>PRODUCTION>MATERIAL REQ.PLANNING>PLANNING-->uSER eXIT.material selection for planning run.

    Hi Summet,
    See sumeet, u see the definition of user exit in Tcode SMOD.
    So goto Tcode SMOD->M61X0001. Once u enter into it, click on components on application toolbar. Then u can find 2 Function modules.
    EXIT_SAPLM61C_001
    EXIT_SAPMM61X_001
    Goto Tcode CMOD to implement the user exit. So goto Tcode CMOD->ZM61X0001->create and add M61X0001 to ur implementation.
    Now write the required code in these function modules, and then click on Activate Project to activate the user exit.
    Try this and get back to me incase of anu queries.
    Dont forget to reward points if found useful.
    Thanks,
    Satyesh

  • User Exit for MQC functionality

    Hi All,
    Can anybody suggest if some user exits are available for MQC functionality?
    regards,
    Mohit Goyal

    Hy,
    Program is  LCOMLF01 - Calling up Material Quantity Calculation
    XCOM0001 - User exit: Material quantity calculation
    Function Module is EXIT_SAPLCOML_001
    INCLUDE ZXCOMU01
    Regards,
    Dhaval

  • MRP run user exit

    Dear Experts,
    I want to club more than one material through MRP controller in the MRP run at MD01.will you pl let me know if the exit M61X000 is sufficient,where I have to mentain the DISPO (My MRP Controller Name) so that the relevant materials where this controller is assigned will be chosen.
    Regards
    Reshmi

    Dear ,
    Please find below the set up as mentioned  required for MRP  for those material whaih are under certain MRP controller
    This can be possible with User Exit: M61X000.
    You need to maintain the required Material Types in OMIX.
    Then you can use the Material Type in MD01/MDBT for Planning for specific Material Type.
    Before hand, check the Example code for the Function Module EXIT_SAPMM61X_001 and the documentation for the User Exit.
    Some documentation;
    For example, for each plant, you can define that in the selected plant the system will only plan;
    materials to be planned using MRP procedures,
    materials of a certain MRP controller
    externally procured materials or materials produced in-house
    Requirements
    User exist must be activated in the SAP extension concept. The name of the extension is M61X0001.
    In the documentation for this extension, you will find information on the use of user exits.
    For more information on the extension concept, please refer to the appropriate documentation
    Example:-
    To execute MRP run for particular MRP group you have to activate User Exit.
    1. Create User Exit
    Nav: Production > Material requirements Planning > Planning > User Exit: Material selec
    For ex: Z01 - MRP Group
    2. Create Project using enhancement M61X0001 in Tcode CMOD
    3. Write following code in function module EXIT_SAPMM61X_001 include ZXM61U01
    CLEAR: NO_PLANNING, STOP_PLANNING.
    CASE USER_KEY.
    WHEN 'Z01'.
    UXPAR = USER_PAR.
    CONDENSE UXPAR.
    WRITE UXPAR+0(3) TO DISGR.
    IF DISGR IS INITIAL.
    EXIT.
    ENDIF.
    IF MT61D-DISGR DISGR.
    NO_PLANNING = 'X'.
    ENDIF.
    ENDCASE.
    4. When you want to execute MPR only for MRP group "001", in MD01 select User Exit Key Z01 and MRP group in User parameter.
    5.In MD01or MDBT , Select  NETCH, 1,1,3,3,2  and In user exit tab select the MRP controler as configured based on the above set up.
    Refer : MRP run only for certain MRP controllers
    Regards
    JH

  • MRP Run with User Exit key for Follow up material

    Dear Gurus,
    I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
    So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y. 
    WHEN 'ZFL'.
    DATA : BEGIN OF ITAB5 OCCURS 0,
    KZAUS LIKE MT61D-KZAUS,
    END OF ITAB5.
    TRANSLATE USER_PAR TO UPPER CASE.
    SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
    IF ITAB5[] IS INITIAL.
    EXIT.
    ENDIF.
    CLEAR: NO_PLANNING, STOP_PLANNING.
    READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
    IF SY-SUBRC <> 0.
    NO_PLANNING = 'X'.
    ENDIF. 

    Hi Kumar,
         You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
    If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
    Thanks

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • User Exit or BADI for Material,BOM,Customer,Vendor

    Dear All,
    I have requirement where if User A changes a Material X .It should go for approval by workflow.
    When the Material X is waiting for approval no other User should be able to change the material .It should give him a message
    and restrict him from changing the Material.
    Is there any User Exit or BADI to restrict him from changing the material. The exit or BADI should be called as soon as the Material is entered in MM02.
    I need exit or BADI for BOM, Vendor and Customer also.
    Thank you.

    Hi,
    You can go to Transaction SE80 and check in Function Group MATF. There have been two User Exits which are called during MM02 Transaction execution (via Analysis Transaction SE30) - MATERIAL_FIELD_SELECTION_NEW and MATERIAL_FIELD_SELECTION_COMB.
    BAdI called by FM MATERIAL_FIELD_SELECTION_NEW.
    Thanks and Regards,
    Prabhakar Dharmala

  • 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 / ENHANCEMENT / BADI -- Material Valuation Class (MBEW-BKLAS)

    Hi,
    I m looking for any user-exit, enhancement or BADI  which is triggered while executing MIGO!!!! .
    For example, for good movement 101related to a purchase order.
    If  MIGO item (material) have batch management we have to inform the batch number (mandatory). When material document is posted system updates material master data with a new valuation type (MBEW-BWTAR) with the same name of the batch number.
    We need to inform the valuation class (MBEW-BKLAS) related to this valuation type (MBEW-BWTAR) but we don´t know where it´s possible.
    Thanks and sorry for my english!!

    Hi Orion,
    You can refer to the following user exits for MIGO:
    Exit Name           Description                                                                               
    MBCF0002            Customer function exit: Segment text in material doc. item   
    MBCF0005            Material document item for goods receipt/issue slip          
    MBCF0006            Customer function for WBS element                            
    MBCF0007            Customer function exit: Updating a reservation               
    MBCF0009            Filling the storage location field                           
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1   
    MBCF0011            Read from RESB and RKPF for print list in  MB26              
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.   
    Hope this will help you...

  • Material Master User-Exit Query?

    Hi..
    I want to implement a change pointer for a material master in my system.
    Can I use the already existing message type / IDOC type or do I need to create a new IDOC type.
    And if yes, please tell me the step by step procedure in short:-)
    I was thinking of using a user-exit EXIT_SAPLMGMU_001 wherein I will fill a customised Z-Table on the basis of Plant ie. if it is my plant then I'll capture that material in my Z-table(Used a simple If-Endif)
    And later I will create a customised report to run BD10 with those materials and then I will delete all those records from my Custom report.
    But now I am facing a strange problem, that if the user changes only the basic data(first and second views in the material master screen) then , I can't capture that material in my Z-table because, I am using Plant key in my IF-Endif condition(that coding is done in the user-exit itself) and the plant is coming from the Structure WMARC which is one of the import parameter in the user-exit-->EXIT_SAPLMGMU_001.
    So, I think unless and untill the user makes changes in the views related to Plant, we wont be able to capture those materials.
    So, I want to know that is there any alternative to it?
    Thank you.

    Hi,
    The plant and all the plant dependent data for a material will be in importing parameter WMARC. If this table is not being populated is becouse you are creating only the basic material views, otherwise, that table should contain data.
    Regards,
    Jose

  • User exit for sale order material serial number change

    I am looking for User exit for changing the serial number for the saleorder material va01.

    Hey,
      Check the include program : MV45AFZZ. it will trigger at the of saving the sale order.
    IF SY-TCODE EQ 'VA02' OR SY-TCODE EQ 'VA01'.
    Endif.
    Note : Write your coding inside the IF clause to avoid affecting the other transaction codes.
    Regards,
    Saravanan M

  • User-Exit - MIGO How to get the Number of Material Document

    Hi everyone!!
    I'm looking for an user-exit after saving in MIGO transaction. I need the Number of Material Document (MKPF-MBLNR) to generate an IDOC.
    Does anybody knows an user-exit to get this number?
    Regards,
    Rubens Kumori
    Edited by: Rubens  Kumori on Oct 20, 2008 3:26 PM

    In BADI definition [MB_DOCUMENT_BADI|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badi&adv=false&sortby=cm_rnd_rankvalue], you may use interfaces [MB_DOCUMENT_BEFORE_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_BEFORE_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (before update task) and [MB_DOCUMENT_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (in update task)
    Regards

  • User exit  for MIGO  after the material document is created?

    hi  guys ,
    I have requirement like after the   material document was creted in migo  i need to call my new transcation. can any one please let me know how  i have to solve this ?
    Moderator Message: Unfortunately, this is not a training forum and we can teach all about Exits and Badi's. I suggest you take a classroom course..... or do some R&D first
    Edited by: kishan P on Nov 30, 2010 11:57 AM

    Hi
    U need to create a FM with UPDATE MODULE attribute checked: so you fm can be run in UPDATE TASK
    This fm has to have the same interface of the method of the BAID (or user-exit) or a parte of it, if you don't need to use all parameters of the interface.
    All code to schedule the job has to be placed in this fm: you can use the fm JOB_OPEN and JOB_CLOSE in order to scheule a job programmatically.
    Call this fm in the BADI, the call has to be in UPDATE TASK, in this way your porgram can start as soon as all updating processes are over
    Max

Maybe you are looking for

  • Clearing document not generated on cancelling billing document

    When we cancel a billing document through VF11 the cancelled billing document generates a reverse document. The billing document and the cancelled billing document are not getting cleared i.e they show as an open item in the customer account.

  • Adobe LifeCycle in a JEE5 application

    Hello, I would like to know if it's possible to access Adobe lifecycle API in a "standard" JEE5 application like it's possible to do in a WD4J application? My need is to be able to generate pdf documents, that come from user input and Adobe forms. We

  • Generic sync not work correctly

    Hi, We are trying to get the inbound container in Java application, we use the method GetElementsWithFieldName(String) in the object InboundContainer, this method returns an array that has only one entry, but really the wrapper function in R3 returns

  • Host Name and version.

    All, Applogize for posting non-oracle questions. 1.How to find out the host name and version of the OS on Linux and Solaris OS. 2. How to find out the free space on Solaris in terms of GBs. Thanks

  • Weather SOA required for Enterprise Manager Console

    i installed oracle 10g express edition in my system. I want to access Enterprise Manager Console.To access that console weather it is required to install SOA?