Skip to Content
2

Class method with RFC Destination

May 18, 2017 at 06:50 AM

463

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Mike Pokraka May 18, 2017 at 08:05 AM
3

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.htm

Share
10 |10000 characters needed characters left characters exceeded
Matthew Billingham
May 18, 2017 at 08:39 AM
3

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.

Share
10 |10000 characters needed characters left characters exceeded
Balajisha T V May 18, 2017 at 09:26 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded