Badi enhancements will be used in the project. Today, I read the Taw teaching material and have a preliminary understanding of the operations of Badi. A brief introduction to the operations is my idea and will be further explored in the future. The tcode of Badi includes se18 and se19, se18 is to create Badi, and se19 is to create Badi. Of course, you can also create an implementation in se18. When a Badi is created, an interface class will be created. I think the concept of this interface class is the same as that of Java. It should be sap rather than Java. With the interface class, of course, there must be implementation classes, which will be described one by one below.
First, enter se18 and enter any name as a Badi Name:
You may think you can click Create. The SAP User Experience is poorly designed. An error will be prompted when you click Create! Creating a custom type is the same as creating a self-built table. A warning message is displayed! To create from menu,
You can create one after you select it. Click the tab page of the interface and double-click interface name.
Name is automatically generated for us. The prefix zif_ex_xxxx is added before, and X is the name of our Badi. If is the interface, ex does not know what it is. After you double-click it, You can define methods. After writing a method, you can click the parameters button to define parameters.
After the input parameter is activated, the interface class is generated. You can then define its implementation in se19, or in se18, but it is found under the menu,
When creating an implementation class, the method in it is the method in the interface just now. After double-clicking it, you can write the implementationCode.
Double-click lineseletcion to write code.