on 06-03-2005 3:06 PM
Hi all,
I would like to connect from a J2EE component of a WebAS 6.40 to a 4.6c SAP system via RFC.
I know I could use the JCo for this... However, SAP note 549268 states the following:
<quote>The SAP JCo 2.1.5 is only for stand-alone use, i. e. the communication between any non SAP Java platform and ABAP applications ranging from SAP R/3 to SAP ERP and SAP NetWeaver. Note that in the SAP J2EE application server another version of SAP JCo is in use, which cannot be used separately from the SAPJ2EE engine.</quote>
This puzzles me a little bit...
Does it mean that I should not use the JCo inside of WebAS Java 6.40? What should I use instead?
Could someone enlighten this for me? Any help would be appreciated!
- Matthias
Hi Fueller,
You can use JCO for your R/3 connectivity.It is perfectly fine to use JCO from j2ee applications.
You can also get sample code for this from JCO API.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
No, you can use JCos for the situation you describe. There is a standalone JCo piece out there, although I've not seen it.
Open the Visual Administrator of your 6.40 J2EE engine. Navigate: Server -> Services -> JCo RFC Provider. Create your Jco setting here and test.
One catch here though - Jco's are not resilient. If you J2EE engine loses connection with the 46C back-end, you have to restart your Jco on the J2EE to build the connection back. SAP has stated "this is the way it is" - but you should know as a good troubleshooting tool.
Best of luck,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tim,
thanks for the info. However, I don't know if the JCo RFC provider is really the right tool...
As I mentioned, I want to go from JAVA to ABAP. The SAP help on the JCo RFC provider states the following:
<i>In the J2EE Engine the RFC functions are implemented by the JCo RFC Provider service, which is used for processing <b>ABAP to Java</b> requests.</i>
Link: http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Could you give an example (Java source code) of how to use the JCo RFC provider to call an ABAP function module from a J2EE component?
Thanks,
Matthias
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.