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

Remote-Enabled Method (wrt ABAP Objects)

Former Member
1,258

Hi All,

Adhering to ABAP Objects, in my project, i am creating instance methods or static methods instead of Function modules.

now i have a requirement, where some functionality needs to be invoked on another server using an RFC destination.

if i create a function module,

1)i can tick the radio button "Remote-Enabled Module" under the Attributes of function module and

2)i can invoke it as

 
CALL FUNCTION 'ZMY_FM' DESTINATION 'RFCDESTNAME'
	EXPORTING
	...            
	IMPORTING
	...

in such cases is it mandatorily required to create an FM like above, or can i avoid it by writing an equivalent instance method or static method

if we replace the FM with a method, then

1)how can i make the method rfc enabled, and

2)what is the syntax of providing the rfc destination name while invoking method.

Is there any other concept provided in ABAP Objects, that is recommended instead of "Remote-Enabled Function Modules"

thanks in advance,

Madhu_1980

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
851

Hello Madhu

If you look at the properties of any global class you will find that the DropDown list for "Category" contains item:


30 = Proxy Class for Remote Interface

For me this sounds like that there might be something in the pipeline of SAP to provide RFC-enabled methods. However, if and when this becomes true is probably unknown.

Regards

Uwe

Read only

851

From the F1

Class/Interface category

This field cannot be maintained explicitly, but is assigned to special types of classes.

Read only

0 Likes
851

That's right. Type 30 is used for proxy classes generated for SOAP and PI (I think).

Read only

Former Member
0 Likes
851

Hi,

I think you have to use RFC function modules from within you can call the methods of your classes with the parameters given by RFC!

Regards,

Klaus