Hello,
I am an intern and willing to learn alot. What is to your opinion the best way to solve the following problem.
I want to develope an application that will connect to oracle db per JDBC.The same application should connect to SAP.But how? I do not know.Data exchange (update or download of data)b/w SAP and the Oracle db should be in real time. Both of them(SAP and Oracle db) are two different systems.
The application should be able to call BAPI(i am told) from SAP.
But before I call a BAPI I think I need first to access the SAP system(just like I would use jdbc to access the oracle db right?).Could Any one tell me how to do this? Do I use SAP RFC to access the SAP system? where do I get the RFC? (Are these classes to say?)
Is there a sample code some where in the nett which show how a java application access the sap R/3? Also in other to be able to call a BAPI from a Java Application what do I need to learn first? Is it java, BAPI, RFC JCo or what? What's the best approach? A sample code will be highly appreciated. Thanks to all the participant.
Hi Rudolph,
You can find SAPJCO.JAR from the SAP site and this jar file is coming in one zip file with some sample codes to access SAP R/3 from JAVA. This SAPJCO.jar file is required to accomplish this task.
So, Just download zip file for SAPJCO.jar and you will get sample code also.
If you can't find this then give me your mail id, I will give it to you.
Regards,
Bhavik
Hello Bhavik,
Thank you very much. I got the sapjco.jar file. But there is one more thing I wanna ask. During the installation, where is it approprate to do the installation? Is it on the server where SAP resides OR on my client PC OR on both of them?
Thanks again.
Hi Emange,
Its required only at client side. And you can install it anywhere on client side and make reference in properties of the application --> Java Build path --> Library --> External JAR file.
Do not forget to reward points 😉
Regards,
Bhavik
Add a comment