Skip to Content

Class method with RFC Destination

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 18, 2017 at 08:05 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • May 18, 2017 at 08:39 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 18, 2017 at 09:26 AM

    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

    Add comment
    10|10000 characters needed characters exceeded