on 03-28-2005 12:14 PM
Can any one help me in calling an ABAP program from Java.
The version of SAP with me is 4.7.
Thanks in advance.
Regards ,
Nagaraju Donikena
How to do other way round i.e if want to call java program from SE38. At present using version 4.7.
Kindly help.
thanks
ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the JavaConnector (JCO) to build a RFC-Server in JAVA. After defining the RFC-Destination in SM59, you can call the Java-program from ABAP easily by
CALL FUNCTION ... DESTINATION ...
There is a sample included to the JavaConnector. See:
To call ABAP from Java when I tried doing it from sample code given in help I was getting the following error. Can any one help in this regard.
Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classIniti
alize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjco
rfc in java.library.path]. java.library.path
at com.sap.mw.jco.JCO.<clinit>(JCO.java:735)
at TestConnect.<init>(TestConnect.java:8)
at TestConnect.main(TestConnect.java:25)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.