cancel
Showing results for 
Search instead for 
Did you mean: 

MES Interface with SAP using xMII

Former Member
0 Kudos

Hello,

We are working to setup a PoC integration between SAP & MES ( GE Fanuc). We are using SAP xMII for this purpose.. We are quite new to SAP xMII. But thanks to SDN community Projects, We have downloaded the sample Project ( ( refer the url: http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e090ef23-dbc5-2a10-0994-b589d869c... . With this Project able to pull data from SAP to xMII and able to view following business Scenarios

PP u2013 Production Planning: Provides a production order list in SAP XMII based off of an order range or a material range selection . After selecting the Production Order it provide the details of that Production Order.

QM u2013 Quality Management: in SAP XMII provides the inspection lots for a given Material, Plant

MM u2013 Materials Management: in SAP XMII provides a detailed material list selected by plant, material range and storage location. Retrieve further details, such as material inventory

Now we have road block as we do not know how do we send the Production Order Data to MES System. As per of our understanding and based on search in Google it seems we need to create a xml File in xMII and than this XML file will be uploaded in MES system for further processing..

Following are my queries:

(1) Is our approach to create a XML file and upload to MES is a correct approach

(2) How do we create a XML file in SAP xMII so that it can upload to MES System. Can anyone provide me the sample code for the same

Thanks

Rupesh

Accepted Solutions (0)

Answers (1)

Answers (1)

agentry_src
Active Contributor
0 Kudos

Hi Rupesh,

How does GE Fanuc want to receive the file? In other words, is there a webservice that is called or do you drop the data into a file folder? What are the mechnisms by which the data gets sent to the MES?

Do you have a template for how the xml needs to be built? MII has the MII XML Document functions, but those use the standard MII format. In other words:



<Rowsets>
<Rowset>
<Row>
<datafield1>
<datafield2>
...
<datafieldn>
</Row>
<Row>
<datafield1>
<datafield2>
...
<datafieldn>
</Row>
</Rowset>
</Rowsets>

If you need some other structure, please provide the details.

Regards,

Mike

Former Member
0 Kudos

I m attaching the XML file which i got from my MES expert. Let me know if it help

Edited by: Michael Appleby on Oct 11, 2011 6:04 PM Added tags

Edited by: Michael Appleby on Oct 11, 2011 6:06 PM attached file since tags did not work

Edited by: Michael Appleby on Oct 11, 2011 6:11 PM

Former Member
0 Kudos

Hello,

I have send u the sample XML file through email. We are planning to send this XML file to a ffolder using FTP. this is the only approach we know..

Thanks

Rupesh

Edited by: rupesh_Agrawal on Oct 11, 2011 2:01 PM

Former Member
0 Kudos

Hi Rupesh,

Your XML structure is B2MML structure of ProductionShedule. this we normally use B2MML with connection to MES systems.

Check with your MES expert about exact version of B2MML.

To integration with MES will depend on the MES system. Talk to your MES expert about other ways you can integrate with MII.

You are sharing a file via FTP which is also the one of the common approaches.

Other ways are :-

1. Using intermediate database where mii will dump the data and MES can read it from there.

2. Call a web service exposed by MES system.

Your approach in high level will be look like [This.|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16448] [original link is broken] [original link is broken] [original link is broken] [original link is broken];

To generate XML in B2MML structure you can use one of the following approaches.

1. Use mii logic and other action blocks to generate the structure.

2. Use XSL which will transformation output of SAP to B2MML.

You can use Schema Reference to ease in development.

Check this [Blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4931] [original link is broken] [original link is broken] [original link is broken] [original link is broken];

Hope this will help!!

Thanks

Anshul

Former Member
0 Kudos

Hello Ansul,

I have seen the blog of loading Reference Document in XMII. We are using xMII 12 and i did not find any folder where these default B2MML are present. Can u share these default refrence document

I hope i will change my XML file to B2MML format using these refrence document and push them to GE Fanuc system

Former Member
0 Kudos

I got B2MML Supported XML file from my MES team member. Now in XMII using the Reference Document Loader i have created the required mapping.. But i do not see any new XML created by SAP xMII

any idea wht is missing ..