Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC using global class.

Former Member
0 Likes
674


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.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
626

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.

3 REPLIES 3
Read only

Former Member
0 Likes
626

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

Read only

matt
Active Contributor
0 Likes
627

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.

Read only

Former Member
0 Likes
626

Thanks all,

@Matthew, exactly i have achived by using class.

Ragrds,

Amol