Fallback Class in A BADI
Fallback Class in A BADI
2.3. Enter a name and a short text for the BAdI Definition.
2.3. The new BAdI appears as a node in the tree display of the tab page.
2.4. Deselect thee Multiple Use check box.
3.
Create a Interface:
Methods are defined in the interface which determines what use you can make of your
BAdI.
3.1. Expand the BAdI node and click on the Interface as shown below.
3.2. Enter a name for the BAdI Interface.
3.6. Save and activate the BAdI Interface and Enhancement spot.
3.7. Go back to Enhancement spot screen.
Note:
We have created a single use BAdI, Now if we the run the Application Program it dumps
because there should be one active implementation for a single use BAdI.
We can handle this in two ways:
4.2. Press Enter or click on change icon it will take us to class builder.
The method of the BAdI interface is already defined.
Implement Class:
5.1. To Implement Class double click on the method Z_IF_BADI_FALLBACK~ADD.
5.2. Write the below code in method.
result = value1 + value2.
Result:
Execute the Application.
Result : 300