Posts

Showing posts with the label classic badi

First way to find classic badi in ABAP.

Image
  Unit of measure KG is not allowed while creating material data in MM01. 1. Goto T-code SE24 and give class name ' CL_EXITHANDLER '. 2. Click on display. 3. Double click on get instance method. 4. Put a break point on   cl_exithandler => get_class_name_by_interface. 5. Open T-code in new window ( MM01 ). 6. Double click on exit name . 7. Click F8 and check exit name up to  MM01 is triggered .               *  BADI_MATERIAL_OD.               *  BADI_MATERIAL_CHECK 8. Goto SE18 and check.               *  BADI_MATERIAL_CHECK

UOM KG is not allowed while creating material data in MM01 using classic BADI.

Image
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 '. **************************...

Third way to find classic BADI in ABAP.

Image
 Pass the package name of the program in SE84 transaction code (enhancements - business add-in's -definition). Unit of measure KG is not allowed while creating material data in MM01. 1. Find package name.           * Goto  MM01 .          * Click on  system  and double click  status .            * Double click on  program name .          * Click on  goto  and also click on  attributes .            * Package -  MGA. 2. Goto SE84 Enhancements- business add 'ins - definitions . 3. Double click on definitions   and give package name. 4. Execute.

Second way to find classic BADI in ABAP.

Image
  Pass the package name of the program in SE18 transaction (Click on F4 help BADI name-new selection-pass the package name). **************************************************************************** Unit of measure KG is not allowed while creating material data in MM01. 1. Goto T-code SE18. 2. Click on F4 help and click on information system. 3. Find package name.          * Goto MM01 .          * Click on system and double click  status .          * Double click on program name .          * Click on goto  and also click on attributes .          * Package - MGA     4. Give package name and choose classic Badi .          * Choose all classic Badi has no enhancement spot, Kernal Badi has enhancement spot.     * Hit enter and choose Badi as per our requirement.