2005 Jun 29 8:21 AM
I have a requirement like adding 2 fields in purchasing view screen in MM01 transaction. Can anybody help me out in this regard?
Thanks in Advance
I have a requirement like adding 2 fields in purchasing view screen in MM01 transaction. Can anybody help me out in this regard?
Thanks in Advance
2005 Jun 29 8:32 AM
Hi,
Check the BADI 'BADI_MATERIAL_REF', the documentation clearly says that this is used to add custom defined fields while creating the material, hope this helps.
Rgds,
2005 Jun 29 12:03 PM
Hi,
Can u give me little more information because I am new to BADI concepts.
Thanks in advance.
2005 Jun 29 12:24 PM
Hi,
BADI's are similar to Customer exits, but BADI's use object oriented programming.
BADI definition is found in SE18 transaction, if you want to make use of the definition available in SE18, you need to implement the BADI in SE19, for ex, if you want to use the BADI definition 'BADI_MATERIAL_REF', you create the implementation by name 'ZBADI_MATERIAL_REF' using the defintion. Once you activate, go to Interface tab of the BADI, there you find the 'Method', by double clicking the method you can open an editor, there between method....endmethod, you write your logic. You can always go thro' the documentation available in SE18 to understand more about any BADI as SAP has provided very good documentation on BADI's.
Follow the link to understand more about BADI's,
http://help.sap.com/saphelp_47x200/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm.
Hope this helps.
Rgds,
2005 Jun 29 2:02 PM
Hi Sailatha,
Thank you for your guidance. I created the implementation with the name ZBADI_MATERIAL_REF. I found method and endmethod. Here my question is after writing our code how it will reflect in Material creation.It means how to attach this method to that program.Can you please guide me in this regard.
Thanks in advance.
2005 Jun 30 11:08 AM
Hi,
You dont have to attach the BADI to the transaction, like customer exits BADI's have been developed by SAP to have custom functionality in addtion to the standard functionality.
To test the link between the two, you may put a break point in the method of a BADI and try to create the material from MM01, you will understand it better.
Hope this helps.
Rgds,
2005 Jul 01 6:44 AM
Hi,
Can u explain me how to create subscreen in that.
Thanks in advance.