![]() Then call the static method GET_INSTANCE of the class CL_EXITHANDLER. Create a reference variable referring to the Interface name associated with the BADI definition. Go to TCODE – SE38 and create a report program. Calling the BADI implementation form the program. Provide some statement here and then click on the activate button and at last click on the back button.Now up to this point we crated a BADI implementation successfully. For this implementation the system automatically creates a Implementing Class which implements the method ‘DISPLAY_MESSAGE’ of the interface associated with BADI definition.Now double click on the method ‘DISPLAY_MESSAGE’ to implement the method. Provide a implementation short text and click on the Interface Tab. Provide the Implementation name as ‘ZBADI_IMPL_DEMO1’ and click on the continue button. Under the CREATE Implementation Section, Select the Radio button classic badi and provide the BADI definition name created above and click on the Create Impl. Up to this point the BADI definition is created with interface containing an empty method. Now the method is added to the interface. ![]() Now in the ‘METHODS’ tab, provide a method name as ‘DISPLAY_MESSAGE’, select the level and provide the description and activate the interface. The system also generate a Interface with no method based on the BADI name.Now double click on the interface name ‘ZIF_EX_BADI_DEFN_DEMO1’. In the TYPE section, as the multiple use option is not selected, it means ![]() In the properties section, the system automatically generates a BADI Class based on the BADI name. Provide the BADI name and go to the menu Utilities and Click on Create Classic BADI. Still there is a way to go ahead in the system to create it. ![]() It gives a error message as ‘Create operation is only possible for enhancement spots’.Īs SAP provided a new concept of BADI as Kernal BADI, the classical BADI is restricted but Select radio button BADI Name and provide a BADI definition name and click on Create button. Scenario: Creation of Classic BADI definition with single use and creation of BADI implementation and calling the BADI implementation from program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |