SAP Tutorials Blog


 



BAdI interface


The BAdI enhancement spot repository object is opened.


Choose the Interface link in the Configuration section.


Follow the New ABAP Interface wizard:


Enter the name ZIF_DEMO_ABAP_CALCULATOR and provide a description.

Ensure that the interface IF_BADI_INTERFACE is included in the Interfaces list.

Add the following code and activate the interface. Note that the returning parameter in this simplified example is intentionally typed as string, and an appropriate error handling is not covered.


INTERFACE zif_demo_abap_calculator

  PUBLIC .


  INTERFACES if_badi_interface .


  METHODS calculate IMPORTING num1          TYPE i

                              num2          TYPE i

                    RETURNING VALUE(result) TYPE string.



Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com