User exit for material document.

Hi,
does any one know and user exit or BADi which gets triggered when ever a material document is posted  ( Saved) in to the system and is irrespective of transaction used.  we want to send the updated stock information and their status to a third party system when ever there is a material document posted via an IDoc.

Try BAdI [MB_DOCUMENT_BADI|http://www.sdn.sap.com/irj/scn/advancedsearch?query=mb_document_badi], method [IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=mb_document_badi+mb_document_update]
Regards,
Raymond

Similar Messages

  • 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 for FI document

    Hi All,
    I need a user exit for FI document posting.
    My purpose is based on types of G/L accounts i need to add line item data to FI document.(i.e.,inserting into BSEG table )
    Can you please suggest me the user exir.
    Thanks and regards
    Praveen

    Transaction Code - FB01                     Post Document                                    
    Exit Name           Description                                                                               
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment                  
    F050S002            FIDCC1: Change IDoc/do not send                                         
    F050S003            FIDCC2: Change IDoc/do not send                                         
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send                
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document                 
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document                         
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change                  
    F180A001            Balance Sheet Adjustment                                                
    FARC0002            Additional Checks for Archiving MM Vendor Master Data                   
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text                  
    RFEPOS00            Line item display: Checking of selection conditions                     
    RFKORIEX            Automatic correspondence                                                
    SAPLF051            Workflow for FI (pre-capture, release for payment)                      
    If you know tcode then you can find out user exits associated with the same with the following code:
    *& Report  ZUSEREXIT                                                   *
    *& Finding the user-exits of a SAP transaction code                    *
    *& Enter the transaction code in which you are looking for the         *
    *& user-exit and it will list you the list of user-exits in the        *
    *& transaction code. Also a drill down is possible which will help you *
    *& to branch to SMOD.                                                  *
    REPORT zuserexit NO STANDARD PAGE HEADING.
    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.
    *---End of Program.
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • User exits for Material Master in ECC 6.0

    Hello,
    We would like to have a function for checking descriptions when we are saving a material in the material master. We are today running R/3 on release 4.6C and as I understad there are no user exits at that point for this release. We are going to do an upgrade to ECC 6. Do you know if there are more user exits for the material master for this release?
       Regards
       Ann-Sofie

    Following are the user exists available for Material master :-
    -> MGA00001
          Enhancement and addition of checks and (limited) changes to data
    -> MGA00002
         Control for the material number assignment
    -> MGA00003
         Control for the material number display
    -> MGV00001
         Distribution via ALE
    -> MGV00002
         Read customer-specific filter objects for a material

  • User-Exit for material

    Hi!
    I have to create an user-exit for a material to force a water content value to be added to it. Can anyone tell me what user-exit should I be using for it please.
    Thanks

    Actually there is a material by number 20000 which alreday has this functionality set up for it and the method (ABAP objects) for it is :
    ZCL_IM_SD_SHP_DEL_PROCESS    IF_EX_LE_SHP_DELIVERY_PROC~SAVE_DOCUMENT_PREP
    . But I am not sure if this can be used for the other material too which si 73420.
    I have never used a user-exit like this before so not aware how to use it or what to do. Can anyone explain me plz.
    Thanks

  • 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

  • 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 on material document

    Is there a user-exit on the material document to enter a field for goods movement reason codes?
    ...or any other place where you could maintain goods movement reason codes (drop-down list)
    Thanks

    Hi Torkel,
    In which transaction you need this field and on what is the version of your SAP system(4.6C, 4.7 etc)
    There is one BADI with name MB_MIGO_BADI in transaction MIGO which allowes adding our Customer tab on level of Header or item with our self defined fields. This BADI exist in mySAP ERP 2004 but I'm not sure if exist on previous releases.
    Regards,
    Drazen Lovrencic

  • 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 BTE or User-Exit for FI Document

    I need to know if exists a BTE or User-Exit I can use for the MIRO Transaction after the system assign the FI document number, because I need to assign that information in a 'Z' table.
    Regards,
    Juan

    Hi,
    1) Create a RFC Function modules which takes MIRO INVOICE number as input..
      In that select from BKPF with the invoice to get the accounting document details....
    2)
    Try to use the BADI INVOICE_UPDATE.
    In that use the method..CHANGE_IN_UPDATE..
    When you implement the method..
    In that code..Call the RFC FM IN BACKGROUND TASK.
    THis should work..
    Thanks,
    Naren

  • User Exit for Material Plan Costs

    I have an escenario where the client needs another option to calculate the material plan costs, but need to identify the correct user exit.
    In transaction OKYF exist the option "U Valuation Price with User Exit" but need the user exit to use.
    Hope to receive information soon...
    Best Regards...

    Hi
    you can use unit costing for material option for this...
    Automatic netowrk costing for material component
    you need to maintain proper costing variant for material component in config.
    in projects assign material then select material -edit - cost - unit costing.
    which will get reflected in network cost in CJ40.
    Venkatesh

  • 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

  • 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

  • Update vbup/vbuk from user-exit for sales document

    Dear All.
    Is it possible to update the sales document status for an item (vbup) from a user exit , customer function, badi, or other, in the billing document?
    We'd like to make the control of updating the status tables dynamic, rather than based on the confiuration for an exception process.
    For example, when service item (order related billing) is partially billed, depending on some conditions we would set the sales order service item to fully invoiced. 
    In this case vbup-FKSAA = C.
    Many thanks!

    There is a BAdI LE_SHP_ITEM_STATUS that can change the item status in VBUP. Be sure to read the documentation first. It states
    If you use this BAdI to change the delivery item status that was set in delivery
    processing, it can affect further processing of the delivery extensively, and
    lead to data inconsistencies. Therefore, SAP recommends that you only use
    the BAdI to modify your own status fields.
    Regards,
    Brenda

  • 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

Maybe you are looking for

  • Problems after upgrading

    Yesterday I upgraded my iphone to the new software, like it prompted me to. and ever since ive had nothing but problems. whenever the screen locks the whole phone turns off and it takes at least 3 mins to turn back on. any suggestions on how to fix?

  • Very slow Lightroom 4.4 to Photoshop CS6 in Windows 8

    I have a problem with my Windows 8 computer. Please notice that on this computer I did not change any of the default settings in the operating system, it is a clean install of Windows 8. I have also installed the latest version of Photoshop and Light

  • Import from Hf-10

    Want to import from Vixia Hf-10 (USB), into FCE, but program looks for Firewire. Same with trying to import to Imovie. Any thoughts? Boe

  • String to date not converted correctly

    Hello, Why am I getting the following error message when i beleive i have formatted the variable date to be in 'MM/dd/yyyy' format? Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Err_Date = Sat Dec 12 00

  • Mm issue

    hiii in vendor master i want the cin details tab to be appear. Presently now that tab is not showing.Could any one suggest how to make that tab appear in the vendor master.. It is very urgent..