05-30-2006 10:52 AM
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
05-30-2006 11:48 AM
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.
05-30-2006 11:52 AM
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