Differences Between Classic & New BAdIs :
Differences Between Classic & New BAdIs :
Classic & new BAdIs differ in a number of features that are important for migration :
1).BAdI object :
a).With classic BAdIs, a BAdI object is created by calling a factory method & referenced via a reference variable of the type of the BAdI interface.
b).With new BAdIs, a BAdI object is created via the ABAP statement GET BADI as a handle for the calls of BAdI methods & referenced via a reference variable of the type of the BAdI.So a BAdI object is an instance of an internal BAdI class which otherwise is invisible to the outside.
2).Passing comparison values for the filter :
a).With the classical BAdIs, the filter values are stored in a structure & passed with the call of the BAdI methods.
b).With the new BAdIs comparison values for the filters used to search for implementation are passed when the BAdI object is created with the GET BADI statements & there is no way of migrating the call of the factory method one to one into the SAP ABAP
statement because GET BADI can also return an existing BAdI
object which isn't possible with the factory methods.
3).Calling BAdI methods
a).A classic BAdI can be called only once & the call positions are registered centrally.
b). With new BAdIs, multiple calls are possible & the call positions are not registered centrally and for the above reasons, an automatic call migration is not possible.
Comments
Post a Comment
If you have any doubts let me know