‎2011 Feb 24 7:00 AM
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
‎2011 Feb 24 11:16 AM
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
‎2020 Jul 02 2:44 PM
From the F1
This field cannot be maintained explicitly, but is assigned to special types of classes.
‎2020 Jul 02 7:38 PM
That's right. Type 30 is used for proxy classes generated for SOAP and PI (I think).
‎2011 Feb 24 11:35 AM
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