‎2014 Apr 01 6:33 AM
Hello Folks,
I have developed FM using global class(se24), just calling method inside FM. My question is that, which has more prefrence a class or PERFORM.
Thanks,
Amol.
‎2014 Apr 01 8:07 AM
Your question is unclear. However, you seem to be saying you have created an RFC enabled function module in which you use a class. If this is the case, you've done the right thing as in later releases of ABAP performs are marked as obsolete. Further, if all your logic is inside the class, then you've the opportunity to exploit the benefits of OO over procedural programming.
‎2014 Apr 01 6:58 AM
Hi,
Global class is best as compared to subroutines.
Advatages.
1. calling a method of class will take less time compared to subroutine as per sap best practice.
2. reusability of class
‎2014 Apr 01 8:07 AM
Your question is unclear. However, you seem to be saying you have created an RFC enabled function module in which you use a class. If this is the case, you've done the right thing as in later releases of ABAP performs are marked as obsolete. Further, if all your logic is inside the class, then you've the opportunity to exploit the benefits of OO over procedural programming.
‎2014 Apr 01 11:38 AM
Thanks all,
@Matthew, exactly i have achived by using class.
Ragrds,
Amol