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

Call a static method via RFC

Former Member
0 Likes
724

Hello people,

How can I call a static method via RFC?

I am in SRM and would like to call a static method defined in ECC.

What is necessary to be configured in this class/method?

Thanks!!!

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
567

You may need to write RFC in ECC and call it from SRM

and write following code in RFC for call a static method


reference_obj=>method_name
EXPORTING
.....
.....

Hello people,

How can I call a static method via RFC?

I am in SRM and would like to call a static method defined in ECC.

What is necessary to be configured in this class/method?

Thanks!!!

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
568

You may need to write RFC in ECC and call it from SRM

and write following code in RFC for call a static method


reference_obj=>method_name
EXPORTING
.....
.....

Read only

0 Likes
567

Thanks aRs,

How can I set a method or a class as RFC enabled?

Read only

0 Likes
567

This is not possible to call a method just like RFC.

Workaround way will be write a RFC and within that instantiate the class and call your method .

and then call RFC with destination option