07-04-2008 10:43 AM
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
07-04-2008 10: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.
07-04-2008 11: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
07-04-2008 11:14 AM
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.
07-04-2008 11: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
07-04-2008 1:10 PM
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
07-04-2008 1: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