‎2011 May 31 7:40 AM
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
‎2011 May 31 2:30 PM
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)
‎2011 Jun 01 8:57 AM
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
‎2011 Jun 01 11:54 AM
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.
‎2021 Apr 07 8:21 AM
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