on 2006 Nov 20 11:30 AM
Hi Forums,
What are the prerequisites can be take place for connecting between
ERP-XI-XMII.
I want to send the Production Order from my(ERP) system into XI and then XMII into the Plant. similarly viseversa.
what are the thing i want to follow,can any body explain in detail.
Thanks in advance,
Regards,
Ravi.
Request clarification before answering.
Hi Ravi,
First of all you need to decide whether you want to pull the data from xMII or push it from ERP.
If you want to push the production order data from ERP to xMII you can use the following options :
1) RFC
2) IDOC
3) ABAP Proxy
If you want to use RFC to push the data from ERP to XI you can use a custom RFC to push the data from ERP to XI. You need to create a RFC destination using transaction SM59 in ERP and create a corresponding RFC adapter communication channel in XI. Pass the relevant data in the table parameters of the RFC and execute it from a report or screen with the XI(RFC) destination created in background task.
If you want to use IDOC you can use the transaction POIT and send LOIPRO IDOC with the production order data to XI. you need to create the logical destination, logical port and partner profile in ERP for IDOC communication and IDOC receiver communication channel and relevant configuration in XI.
You can also use ABAP proxy to push the data. In that case you need to create an outbound asynchronous interface in XI for the production order data and then generate the proxy in ABAP and call the proxy execute_asynchronous method from your report or screen to send the data to XI.
In all the above cases you need to map the RFC/IDOC/Interface with the xMII interface in XI using graphical, Java or xslt mapping. As there's no standard interface provided in xMII to receive production order data you can simply create a custom interface in XI or use a WSDL/XSD/DTD file with the interface structure.
If you want to pull the data from xMII then you can call the BAPI for production order get detail.
xMII can receive/post data from/to XI using HTTP or SOAP adapter. If you want to use HTTP adapter in XI you can post the data to a xMII BLS transaction using the following URL pattern :
http://<server>/Lighthammer/Runner?Transaction=<BLS transaction>&XacuteLoginName=<login name>&XacuteLoginpassword=<login passwd>&InputParameter=ProductionScheduleMessage
For consuming a xMII webservice you can use the following URL pattern:
1) The URL http://<server>:<port>/Lighthammer/WSDLGen/<transactionname>; generates the WSDL for the web-service(BLS transaction as specified in the url as <transactionname>).
2) You can run the transaction as a web-service by the following URL:
http://<server>:<port>/Lighthammer/SOAPRunner/<transactionname>;
For authentication you can use the xMII user name and password which has reader/writer roles assigned to that transaction.
But you can also directly communicate with xMII from ERP without using XI in between using the IDOC listener in xMII (to send IDOC from ERP to xMII directly) or webservice call from ABAP as described above. xMII can also directly pull the data from ERP by calling a BAPI/RFC using the JCO action block in BLS transaction.
Please let me know if you need more information.
Thanks & Regards,
Dipankar
[P.S. Points for helpful answer...:)]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipankar,
I want to configure the XI system so that i can push data from SAP ERP to xMII.
I want to get the details abt the method 1 which tell abt data transfer through RFC.
Scenario is that i want to send ERP data once there is any transactional activity happens like create a order, change in quantity...
So once the transactional activity happen, i want to send that data to XI so that i can send that to Oracle through xMII.
Can u tell me detailed steps of it. Steps which needs to be done on ERP and steps which needs to be done in XI.
I have already posted question for this.
Regards,
Sumit Gupta
Hi Sumit,
First of all let me explain that you can directly push data from ERP to xMII by various ways. Please refer my blog <a href="/people/dipankar.saha3/blog/2007/02/05/how-to-integrate-sap-xmii-with-sap-erp To Integrate SAP xMII with SAP ERP</a> for more details on this. You can even do the message mapping (from the ERP RFC/IDOC structure to a custom structure) in the xMII BLS transaction by using Reference documents. So if you don't have any other special reasons for using XI you can follow the above methods.
Otherwise if you need to use XI in between then follow the steps below:
1) ERP - You can automatically fire ABAP XI proxy on certain business events or ABAP class event. To activate this use the t-code swf_bam. Refer this weblog <a href="/people/michal.krawczyk2/blog/2006/11/06/xi-bam--episode-i--introduction: BAM - Episode I - Introduction</a> for more details. Otherwise you can also fire an IDOC on any business event in ERP (Though you can directly receive the IDOC in xMII from ERP using the IDOC Listener in xMII). Even you can leverage user-exits on your ERP application to fire a ABAP proxy, send IDOC or execute a RFC with the destination system (XI/xMII).
I you want to fire an ABAP proxy to XI it's detailed in the above mentioned weblog otherwise for firing IDOC you need to maintain certain configuration in ERP and in XI. Refer this doc for IDOC-XI configuration: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-e56e-2910-1187-d8eba09c7a4a">How To Sample IDOC-XI Scenario</a>. For sending RFC data you need to create a RFC destination in SM59 t-code with SAp service and gateway details which you need to maintain in the RFC sender adapter in XI as well.
2) xMII - Create a BLS transaction in xMII to process the data coming from XI and send it to the database.
3) XI - Create the message and interface mappings in XI from the RFC/IDOC/Proxy structure to the custom structure (to be sent to xMII) and the configurations following the standard docs. In the receiver system/service in XI create a communication channel of type HTTP or SOAP and enter the xMII BLS transaction's HTTP or WebService URL. Please refer my weblog mentioned above to get the format of the URLs.
Please let me know if this helps.
Thanks,
Dipankar
[P.S. Award points for helpful answer]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.