hello everyone we will continue that topic body and we will start with our first type of body that is classic body we will follow the same to same approach which we followed in customer exit we will take a requirement first then we will learn how to find that particular thing then we will learn how to implement that thing now we will take a requirement first so what is our requirement I will go to mm01 transaction port [Music] we all know with the help of mm01 we can create a material I will pass the industry sector I will choose the material type suppose I am passing raw materials I am pressing enter I'm selecting basic data one I am giving that description and I am passing unit of measurement now what customer is saying yes we are creating a material through mm01 but unit of measurement cannot be equal to kg means we cannot create a material with the unit of measurement as kg suppose if I am passing kg I am clicking on to save button system is not stopping as of now system is creating the material but what customer is saying yes if unit of measurement is equal to kg system should give a error that unit of measurement kilogram is not allowed it means in this sap transaction code customer wants his own requirement we want a additional requirement we will achieve this requirement through classic body through Classic Party now firstly we will go for same to same approach we will learn how to find a classic body then we will implement the classic party now whenever you are achieving the requirements from the customers in sap programs never say yes blindly your answer should be you should check the feasibility then you should revert to the customer so firstly we will see is this requirement feasible or not feasible because this is sap transaction code this is sap program so firstly we will learn how to find a classic body and we will start with our first bit how to find a classic body sap has provided a class CL underscore exit Handler we will use this class in this class we have the method get underscore instance in this particular method we will use this particular method to find the classic body definitions and from it a bad perspective from a technical person perspective he or she is always always preferring this way because we have a option to go for debugging in this method and from a technical person or a bad person debugging is very important so a technical person always always prefer this way whenever they want to find a classic body see this is CL underscore exit Handler is only only applicable to Classic body in the future when we will move on to Kernel body or new body this class will not work so this class is used to find a classic body only so I will go to this class we all know sc24 is the transaction code for the global classes we will put CL underscore exit handle I will display this class so we have a method get underscore instance now I will not put the breakpoint as of now firstly we will reach up to that level in mm01 then I will put the breakpoint I will go to mm01 we will pass industry sector we will pass material type enter basic data one I will pass the description I will pass the unit of mass effect now whenever user will click on to save button and if the unit of measurement is kg the system should give us a error it means on the save button we want to find the bodies we want to find the plastic bodies so just we will put the breakpoint now in this CL underscore exit Handler get underscore instance method always put a breakpoint on this size sub RC prediction so in this exit underscore name you will get all the classic bodies one by one and we will see now and this is most impreferable way I will click on to save button and break point will automatically stop control will automatically come is it stop yes now we will double click on exit underscore day so on the save button this is the first body available this is the first classical body available so just go to sc18 and check is this body is useful to you we all know SC 18 is the transaction code for body definition put your body which you find party GTI invariate display this body and check the description of the body this body is for gtin variant check is this body useful to us no this is not useful to us because we want to check we want to check the material that unit of measurement should not be equal to H now we will go for second I will again do F gate I will again do f8 now you can see this is the second body we are getting so I will check this body in sc18 this body definition in sc18 now this body is for customer defined default data this is not useful to us because we want to check the material so this is also not useful to us now I will again do f8 now we are getting third body definition body material check I will display this card now just check this description check for material master table it means we are checking the material and in the previous video I discussed that in every by definition by definition means we have a interface there just check do we have a interface yes we have a interface here in the interface we have the method check underscore data we can check the data we can check the unit of measurement is equal to kg or not it means this body definition this classic by definition is useful to us so in this classic by definition we have this interface and we have this method in the interface so this by definition is useful to us so this is the way how you can find a body suppose if I will do again f8 so this is fourth body it is not useful to us because we already find the respective body now we came out so just do one thing firstly delete the breakpoint now we are able to find a body and what is the name of the body body material check and this body we will use to achieve our requirement and this is the most most preferable way always put a break point into CL underscore exit Handler class the method name is get instance once you put a break point it will show you all the respective body definitions available so you can check which by definition is helping you to achieve your requirement now we will go for second or third way also from a bad person is always comfortable in the first way but many time people will use the second and third way also to find a classic body to find a classic body definition so what is second and third way you will find it very much similar to customer exit but is second day take the package name of the program and go to sc18 transaction code if you remember in customer exit you went to S Mode transaction code in the in this case in case of body we will go to sc18 transaction so I will go to mm01 I will take the package of this program so I'll go to system status I will double click go to attributes so this is the package you can simply simply go to sc18 which is the transaction code for body definitions we want to find body click on to F for help path is mentioned already yes you have to go to sc18 transaction code click on to F for help of body name we clicked on to F for help of body name go to information system see we have two types of body we have kernel body classic body and all all means it will show you both type of bodies but we want to check only classic parties so we will choose classic body radio buttons we will put the package will go to ok these all are the classic bodies available in that particular package and if you remember when we use CL underscore exit Handler class at that time we got this body yes we got this body we got this body yes we got this body we got this body also that body material check so if you are going by this way it will show you all the bodies available in that package all the body definitions available in that package but with the help of that class we found out the body see if you remember we put the break point in that class uh when we click on to save button so those three bodies this one this one this one these three bodies are available on the save button and we want that we want to check the material on save button so people might make some time prefer this way also but in this way you will get all the body definition so it is not specific to save button or something it will show you all the parties then you can check the bodies one by one and we already found that body material check is useful to us now Third Way is very similar which we did in customer exit also you can go to SC 84 transaction code go to SC 84 transaction code go to enhancements in case of customer exit we went to customer exit now we will go to business add-ins path is mentioned business add-ins definition we want to check body definitions we'll choose classic body will put the package name and you can see we have same to same result is there and we will use this body definition to achieve our requirement so what is the summary of the topic or what we learned in this particular topic we started with classic body and we took a requirement that in mm01 the unit of measurement should not be equal to kg then we studied how to find classic bodies sap provided a class CL underscore exit Handler and in that class we have a method get underscore instance once you put the break point there you will get all the body's definition one by one and you can check which by definition is helping you second way you can go to sc18 transaction code pass the package name and check the classic by definitions or you can go to SC 84 transaction code and first one this is the most important point in the video and which is used by the technical persons or a bad persons in the next video we will see how to implement this classic body definition whatever the classic by definition would identify we will Implement that classic body definition so that's it in this video thank you