cancel
Showing results for 
Search instead for 
Did you mean: 

Class method with RFC Destination

balajishahrsap
Participant

Hello Experts,

Is there any way we can execute a class-method with RFC Destination in program.

For example.. Any RFC function module when we call it in program we use the Destination so that internally the super User id configured in SM59 will take control of doing things, Similary is there any way to call a Class-method with RFC destination.

Please let me know for any queries/updates.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

matt
Active Contributor

To emulate RMI, you'll have to serialise your class instance, send it to an RFC FM as a parameter of that FM, which then deserialises it and does the necessary work.

Answers (3)

Answers (3)

pokrakam
Active Contributor

No, RFC is one of the few things you still need function modules for. RFC is due to be replaced with RMI, but this is not available yet.

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/abenabap_obj_progr_model_guidl.ht...

0 Kudos

Hi,

if you want to call another class in another SAP system you could check the <removed by moderator> which is able to call function modules and class methods in other SAP systems via RFC destination. It requires some additional customizing and is generic.

It supports also to call class methods using the RFC stack from Java or .net.

Thanks,
Alfred

balajishahrsap
Participant
0 Kudos

Hi Mattew/Mike,

Please correct me if i am wrong.

My understanding is that for this typical requirement i need to create a RFC FM and have the same input parameter. and inside of this FM call the Class method will be called.

Thanks and regards,

Balajisha