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 Method using RFC -

MichiFr
Participant
0 Likes
2,549

Hi,

is it possible to call a method of a class from a remote system without using a RFC enabled function module?

I mean without calling a class method instantiated in a function module.

Michael

4 REPLIES 4
Read only

former_member182670
Contributor
0 Likes
842

Unfortunately no. This is one of the areas not covered by ABAP OO.

The list of missing features (as of 7.0 ehp 2) is outlined in "Official ABAP Programming Guidelines" book:

- remote method invocation as a replacement for rfc

- replacement for update FMs (CALL FUNCTIOn IN UPDATE TASK)

- replacement for call of subroutines during COMMIT WORK and ROLLBACK

- OO handling of classic screens

- dynamic generation of programs (GENERATE SUBROUTINE POOL)

- direct support of background processing (SUBMIT VIA JOB)

Read only

0 Likes
842

Tomek, thanks for your reply.

This means no changes in EhP 2 either. This is really annoying since SAP does encourage everyone to jump on the OO bandwagon but shows some lack of essential techniques, available in standard ABAP.

Michael

Read only

0 Likes
842

replacement for call of subroutines during COMMIT WORK and ROLLBACK

This is possible with registering an event handler for CL_SYSTEM_TRANSACTION_STATE=>TRANSACTION_FINISHED.

Read only

Former Member
0 Likes
842

Hi Michael,

as far as I know this is not possible using RFC in SAP standard. If you want to call a SAP class in .net or Java you can check www.posting-connector.de or the link here Posting Connector

It supports also to call class methods using the RFC stack.

Thanks,
Alfred