UOM KG is not allowed while creating material data in MM01 using classic BADI.
BADI - BADI_MATERIAL_CHECK
1. Goto T-code SE19.
2. Select classic Badi and give BADI name and click on create.
3. Give implementation name and hit enter.
4. Give short description and activate implementation.
5. Click on interface tab and double click on class.6. Go to method and put a break point.
7. Goto MM01 and create a material data.
8. Repeat steps 6, 7 up to debugger is triggered (IF_EX_BADI_MATERIAL_CHECK~CHECK_DATA
).
***************************************************************************
9. Write the code and activate and go back and activate the implementation.
* UOM is stored in work area( wmara ).
* Goto T-code SE91 and create a message.
***************************************************************************
Checking
***************************************************************************
* Goto MM01.
* Give Industry sector 'P' and material type 'ROH'.
* Press enter select basic data1 and give short description and unit of measure 'KG'.
***************************************************************************
Undo implementation.
* Goto SE19.
*. Give implementation name click on change.
* Click on deactivate.
Comments
Post a Comment