cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing BAPI through Java

Former Member
0 Kudos

Hi

I am trying to develop a webpage through which one can access BAPI. this will be used by people not familiar with sap transactions. please tell me how i can access sap reports. Should i use JCo?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi , As it been said for using JCO for connecting thru Java . I have question regarding SAP userid licence. Is only one SAP licence is enough for whole web application been used accross globe. In that case all the posting on SAP side will be recorded with one sap userid . Is that workable solutions in legal way.

Regards ,

K Bhatia

Former Member
0 Kudos

Hi ppl

Thank you guys for sharing with me all your ideas. i was on the move these few months. so cud not participate inthis discussion.

my scenario is. I have installed ECC 5. Does it come with a WebAS . if i do not want to use a WebAS but directly access SAP from java, how do i go about it?

is SAP Jco a part of the ECC 5 or should we install the jar file from a specific location? Do we require any license.?

I think we require a server where we can deploy the jar files to be able to work with the classes provided. I do not want to run servlets but would like to access sap from through java program. Is there a possibility of that?

Thanks again for your earlier replies.

Hari

Former Member
0 Kudos

Hi Hari,

ECC 5 comes with WebAS. WebAS can handle http calles as well as soap calls. If you want to access SAP from your java programs you can build web services for RFC's/BAPI's in SAP and call these web services via the SOAP runtime from Java. You can also use JCo to connect to SAP from Java. You do not need licenses for web services/JCo however you will need an SAP userid.

SAP JCo does not come with ECC 5. You have to download it from the SAP service marketplace. JCo will also work for 4.6C. You do not need WebAS to be able to run JCo.

Former Member
0 Kudos

Hi,

You have a number of options depending on your systems... You could write an ITS transaction, or use BSP's or you could write an Enterprise Portal application such as a JSPDynPage or even a Web Dynpro application ni either Java or ABAP, you could even write a straight J2EE style application and access SAP.

If you give us some more information about what SAP systems you have and what exactly you are trying to achieve, we will be able to help more. In the meantime, have a search through the various forums here for more infomation.

Gareth.

Former Member
0 Kudos

Actually you can use ICM to handle http request which is sent by a java program and call the bapi in the http-handle program.

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/0a/a7903febb15a7be10000000a11405a/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/0a/a7903febb15a7be10000000a11405a/frameset.htm</a>

Also, you can use JMS programming.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bb0764f2-0b01-0010-bd85-c7849b40561e">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bb0764f2-0b01-0010-bd85-c7849b40561e</a>

As a XI consultant. I recommanded you to use XI.

You can define a webservice in XI, and send a soap by Java to trigger a ABAP program which calls a bapi in R/3.

Hope it helps.

B'Rgds,

Former Member
0 Kudos

> Actually you can use ICM to handle http request which

> is sent by a java program and call the bapi in the

> http-handle program.

> <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0a/a

> 7903febb15a7be10000000a11405a/frameset.htm">http://help

> .sap.com/saphelp_nw04/helpdata/en/0a/a7903febb15a7be10

> 000000a11405a/frameset.htm</a>

>

> Also, you can use JMS programming.

> <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/pr

> troot/docs/library/uuid/bb0764f2-0b01-0010-bd85-c7849b

> 40561e">https://www.sdn.sap.com/irj/servlet/prt/portal/

> prtroot/docs/library/uuid/bb0764f2-0b01-0010-bd85-c784

> 9b40561e</a>

>

> As a XI consultant. I recommanded you to use XI.

> You can define a webservice in XI, and send a soap by

> Java to trigger a ABAP program which calls a bapi in

> R/3.

>

> Hope it helps.

>

> B'Rgds,

XI wouldn't be ideal for a real time transaction...

Former Member
0 Kudos

hi thanks for the link..

i saw something called BAPI Proxy classes in SAP help..

I want to know if i can access BAPI without using JCo..?

Wat does a JCo essentially do?

CAn we call such BAPI from servlet or java server pages coding?

Former Member
0 Kudos

Hi Hari,

BAPI is nothing but an RFC in other words Remote enabled function modules which contain the business logics.

JCo is a Java connector. This is used to connect to SAP System from a Java Application. Using the JCo you can call RFC or BAPI and use the business logics in the SAP System.

Please go through the below links on how to call a RFC or BAPI from a JAVA Application.

http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm

Hope it helps.

Regards,

Maheswaran.B

Former Member
0 Kudos

Hi,

JCo is outdated!

JCo creates the BAPI proxy at ur end but the stub is of no use if there is a change in the BAPI.

Go for JCA (J2EE Connector Architecture) This is robust,scalable, (connection management is already handled within this) + (This is built on the dynamic proxies, meaning a change in BAPI will automatically be incorporated)

for more details have look at the below URL

http://help.sap.com/saphelp_erp2005vp/helpdata/en/6f/1bd5caa85b11d6b28500508b5d5211/frameset.htm

Regards,

Arvind Kugasia

Former Member
0 Kudos

Hi,

I totally agree that JCA is the way to go.

I have problems to find the sapjra.rar (the sap java resources adapter). Can anybody tell me where to find it? In some mails I've found this hint:

//<SAPJ2EE Engine Installation>/usr/sap/<System ID>/sys/global/ra/sapjra.rar.

I cannot find these directories and file! Which binaries should I download to get it?

I've downloaded the latest SAP Netweaver for Windows (SAPNWAS_JAVAEE5_T06.rar) and cannot find the resource adpather.

Regards

Klaus

Former Member
0 Kudos