05-17-2006 6:32 AM
hi.. whenever user creates PO in SAP i want to send data to JAVA based system..there is JCO in JAVA based system.for this i should use BAPI or is it possible using ALE/IDOC..which is most preferable and how to do
regards
shankar
05-17-2006 7:13 AM
Hi shankar,
U can use either BAPI or idoc method to do this.I guess there will be some middleware in between SAP and the legacy system which will have either idocadapter or bapi adapter.
So you have to choose the right one.
One more thing using BAPI is a synchronous method and using
idoc is an asnchronous method...
regarding the Po creation in SAP if u use Idoc method then u have to use the method (DISTRIBUTION OF TRANSACTIONAL DATA).
The transaction codes that are required for this method are
We81
We30
We31
We82
We21
We20
Bd64
Nace
Me22n (purchase order), va02 (sales order) etc.
Ex: purchase order.
Message type: ORDERS
Idoc type: ORDERS05
Outbound process code for purchase order: me10
If u find helpful please reward points
Regards,
Nagaraj
05-17-2006 7:13 AM
Hi shankar,
U can use either BAPI or idoc method to do this.I guess there will be some middleware in between SAP and the legacy system which will have either idocadapter or bapi adapter.
So you have to choose the right one.
One more thing using BAPI is a synchronous method and using
idoc is an asnchronous method...
regarding the Po creation in SAP if u use Idoc method then u have to use the method (DISTRIBUTION OF TRANSACTIONAL DATA).
The transaction codes that are required for this method are
We81
We30
We31
We82
We21
We20
Bd64
Nace
Me22n (purchase order), va02 (sales order) etc.
Ex: purchase order.
Message type: ORDERS
Idoc type: ORDERS05
Outbound process code for purchase order: me10
If u find helpful please reward points
Regards,
Nagaraj
05-17-2006 8:23 AM
Hai Shankar
check the following Document
Bapi to create customer master
-
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
Or you can use FM SD_CUSTOMER_MAINTAIN_ALL
what is BAPI?
BAPI stands for Business API(Application Program Interface).
I have answered this question before..
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
Please check out this thread..
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
Java Connector(JCO) can call not only BAPI's but also the function modules which are remotely enabled..
BAPI's as i said earlier are remotely enabled function modules..
Hence, JCO can call also BAPI's(n not only BAPI's as u mentioned).
Thanks & regards
Sreenivasulu P
05-17-2006 8:31 AM
Hi Shankar,
I think your requirement is to SEND the data to some other 3rd party system. You can achieve this
1) using ALE/IDoc if the 3rd party system is capable to read the IDoc format of SAP.
2) Create IDoc and send it to some other system which will understand this IDoc, convert it into the format where your JAVA system can understand.
3) Create physical files in .csv / .xls / .txt format which will in-turn read by your JAVA/some other system and process accordingly.
Regards,
Sanidp