Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI using JCO

Former Member
0 Kudos

There are 2 systems. One is java based system called sapphire system and another is sap r/3. jco is installed in java based system. Since I want to send PR data from sapphire to sap so that it create PR no in SAP through transaction and it should store in data base.

I should call bapi_po_create. Where should I call this.. how it will pick up the file and how to give input parameters.

Another scenario is user creates PO in sap. And it should go to Sapphire system as soon as he saves it.. How to do this using bapi or rfc…there is no other interface like xi

2 REPLIES 2

Former Member
0 Kudos

For creating PO from your JAVA based system, you may need to:

Call the BAPI in your JAVA system. Before that you have to create connection objects and establish the link with R/3. For that you have to import the respective SAP LOGON classes in java. After establishing the connection you can assign values to the BAPI internal tables and call the bapi with the help of the respective object.

For sending PO from SAP to java you have to use ALE/IDoc method.

Cheers,

Thomas.

Former Member
0 Kudos

hi

Please refer to following links.

/people/tarun.telang2/blog/2005/10/01/debugging-a-rfc-call-using-jco-api

http://www.persistentsys.com/presentation/Java_SAP_Integration.pdf

http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm

Please reward if it helps