Skip to Content
author's profile photo Former Member
Former Member

BAdIs in MM02 to update VBAP field

Hi All,

I know some Badis getting triggered when we save data in MM02, can we write an implementation of these BAdIs to update the fields from database table "VBAP" with the data updated in MM02?

Thanks & Regards,

Amruta

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jul 04, 2008 at 09:52 AM

    Miss i hope you know VBAP is for SO table and MM02 is for material master.

    What is exact requirment, why you want to do like that by the way it is not good idea.

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 10:01 AM

    Hi,

    There is a field called batch management indicator which is changed in material master at some point of time. Now I want the same updation in my sales order which is using this material. As I want this process to be automated ie when change has been done in material data , same to be reflected in corresponding sales order, I am trying to do it when changes are saved in MM02.

    So I want to know if it is possible to update through BAdIs of MM02.

    Thanks & Regards,

    Amruta

    Add a comment
    10|10000 characters needed characters exceeded

    • Amruta,

      there is no need of BADi for same.

      you can write small piece of code in se38 and update VBAP.

      code somthing like that:

      data:itab type vbap.
      
      select matnr vbeln from vbap into table itab.
      itab-batch management indicator = do change.
      
      update vbap from itab.

      can you tell us which field you want to update in VBAP.so that i can bit elaborate.

      Amit.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 10:23 AM

    Hi,

    The field is XCHPFie batch management indicator. But I didn't understand how this program will automatically trigger the change when the same field is changed in MARA ie in material master.

    Thanks & regards,

    Amruta

    Add a comment
    10|10000 characters needed characters exceeded

    • Amruta,

      you have to schedule this program in some duration regularly.

      either you can see these exit and badi but i am not sure you can apply either of one.

      Enhancement/ Business Add-in            Description                                                                                
      Enhancement                                                                                
      MGA00001                                Material Master (Industry): Checks and Enhancements             
      MGA00002                                Material Master (Industry): Number Assignment                   
      MGA00003                                Material Master (Industry and Retail): Number Display                                                                                
      Business Add-in                                                                                
      WRF_DISCONT_PARAMS_I                    BAdI: Parameters in Fashion Discontinuation                     
      WRF_DISCONT_FACT_E                      BAdI: Follow-Up Actions in Discontinuation                      
      WRF_DISCONT_CHECKS_I                    BAdI: Scope of Check in Material Reorganization                 
      MG_MASS_NEWSEG                          User-Specific Fields & Segments in Mass Maintenance             
      MATGRP_SKU_UPD                          BAdI for Article Hierarchy Connection                           
      CDT_CHECK_MATERIAL                      Checks for Existence of a Material in a CDT                     
      BADI_MM_MATNR                           Modification-Free Archiving Enhancement of MM_MATNR             
      BADI_MAT_F_SPEC_SEL                     BAdI for Material Special Field Selection                       
      BADI_MATNR_CHECK_PVS                    Check Material for Use in iPPE                                  
      BADI_MATERIAL_REF                       Addition of customer-defined default data for material          
      BADI_MATERIAL_OD                        Integration of New Objects in Material or Article Master        
      BADI_MATERIAL_CHECK                     Enhanced Checks for Material Master Tables                      
      BADI_GTIN_VARIANT                       User Exit for Customer-Specific GTIN Variant Check              
      BADI_EAN_SYSTEMATIC                     BAdI for Internal Control of EAN Logic

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 12:05 PM

    Hello,

    Of course depending on when u want ot update the VBAP table you can use the Badi to modify it. But as per my analysis it will definately result in performance issue(for this just go to VBAP and put any material in material field and execute in my server it is going to time out dump). I think u need to change the design of this requirement.

    Regards,

    Saurabh Chhatre

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.