cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect to R/3 and execute BAPI's in an JAVA class

Former Member
0 Kudos

Hi,

Can any one guide me How to connect to R/3 and execute BAPI's in an JAVA class.

Regards,

Lakshmi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Use the SAP Java Connector (JCo) (http://service.sap.com/connectors), it is free for customers, high performance and very stable.

Also check this link

http://help.sap.com/printdocu/core/print46c/en/data/pdf/bcmidapii/cabfaapiintro.pdf

Regards

Ruturaj

Former Member
0 Kudos

Hi,

You can execute BAPI in your java class uding JCO API.

As well as you can use Enterprise connector to generate the java proxies for the BAPI. it will reduce the developement efforts, all you need to do is just write execute statements.

For Details: http://help.sap.com/saphelp_nw04s/helpdata/en/79/c6213e225f9a0be10000000a114084/frameset.htm

Regards,

Naga

pravesh_verma
Active Contributor
0 Kudos

Hi,

You need to create a RFC model.

For sample RFC implementation please go through the below thread.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10c2c440-7f8c-2b10-7db0-dce34360...

I hope this helps!

Thanks and Regards

Pravesh

Former Member
0 Kudos

Hi Pravesh,

I need to execute BAPI in a JAVA CLASS not in webdynpro application.

Regards,

Lakshmi

pravesh_verma
Active Contributor
0 Kudos

Hi,

Sorry I misunderstood the problem.

For this case you need to use the JAVA proxy method. You need to create the JAVA proxy in the code andthen access the BAPI's.

Please refer to this link, this will help you to understand the complete steps to create the JAVA proxy.

http://help.sap.com/saphelp_46c/helpdata/en/9d/ab1afa055b11d2806500c04fadbaa1/frameset.htm

Also refer to this link:

http://help.sap.com/saphelp_46c/helpdata/en/c2/d1726c0ab311d2806800c04fadbaa1/frameset.htm

I hope this solves your issue.

Thanks and Regards

Pravesh