Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SAPCODES
ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO
Scenario: Creation of Classic BADI de nition with single use and creation of
BADI implementation and calling the BADI implementation from program.
RECENT POSTS
As SAP provided a new concept of BADI as Kernal BADI, the classical BADI is
Enter your email address
restricted but
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 1/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
BLOG STATS
1,141,984 hits
RECENT COMMENTS
Step5. Click on the Interface tab. 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’.
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 2/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
Step7. Now the method is added to the interface. Up to this point the BADI
de nition is created with interface containing an empty method.
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 3/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
Step9. Provide a implementation short text and click on the Interface Tab.
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 4/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
Step11. 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.
Then call the static method GET_INSTANCE of the class CL_EXITHANDLER. Pass
the BADI de nition name and it ll return the object of the active implementing
class to the reference variable. Activate the program and run it.
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 5/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
____________________________________________________________________________
___
Step15. Further scenarios. As the badi is a single use BADI let’s create another
implementation of it.
Go to TCODE- SE19 and in the Create Implementation Section provide the BADI
de nition name and click on the Create Impl. Button. In the popup screen
provide the Implementation name and click on teh continue button.
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 6/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
Step16. Provide a implementation short text and then click on the interface
button.
to implement it.
Step18. Provide some statement and activate the same . At last click on the
back button.
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 7/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 8/10
6/6/2019 Classic BADI with Single Use(Single Implementation) – SAPCODES
Advertisements
REPORT THIS AD
REPORT THIS AD
Rate this:
1 Vote
Related
https://sapcodes.com/2015/11/20/classic-badi-with-single-usesingle-implementation/ 9/10