'use strict';var avia_is_mobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart' in document.documentElement){avia_is_mobile=!0;document.documentElement.className+=' avia_mobile '} else{document.documentElement.className+=' avia_desktop '};document.documentElement.className+=' js_active ';(function(){var e=['-webkit-','-moz-','-ms-',''],n='',o=!1,a=!1;for(var t in e){if(e[t]+'transform' in document.documentElement.style){o=!0;n=e[t]+'transform'};if(e[t]+'perspective' in document.documentElement.style){a=!0}};if(o){document.documentElement.className+=' avia_transform '};if(a){document.documentElement.className+=' avia_transform3d '};if(typeof document.getElementsByClassName=='function'&&typeof document.documentElement.getBoundingClientRect=='function'&&avia_is_mobile==!1){if(n&&window.innerHeight>0){setTimeout(function(){var e=0,o={},a=0,t=document.getElementsByClassName('av-parallax'),i=window.pageYOffset||document.documentElement.scrollTop;for(e=0;e

How do we access weighing equipment using MII with ERP-Scale

You are here:

Setting up ERP-Scale’s built-in web server for XML connector

1. Activate the web server:

Open the ERP-Scale configuration utility. In the SapScaleServer tab, activate the web server and nominate a TCP/IP port to listen on:

Make sure you update the setting to the SapScaleServer by clicking on
Then restart the SapScaleserver by clicking RestartServer

2. Create an XML Template:

In the ERP-Scale configuration utility, click on the XML Templates tab. Add a new template.

The response types supported are:

  • text/plain
  • text/html
  • text/xml
  • text/csv

To define the text of the response, click on 

You can use the template editor to create the response text:

The template holders available will depend on the data fields defined. The following are always available:

  • [%scale%]
  • [%result%]
  • [%target_weight%]
  • [%target_unit%]
  • [%target_min%]
  • [%target_max%]
  • [%target_text%]
  • [%motion%]
  • [%datetime%]
  • [%datetime_utc%]
  • [%erp_scale_version%]

There are two default templates available:

  • xMII XML format
  • HTML Debug
The templates can be inserted by first selecting a device and then selecting a default.

Creating an XML query in MII

To access the data from ERP-Scale in MII, create an XML query as follows:

Step 1: Create a new XML query and enter the Source URL.  No Transform URL is necessary as the data returned from the source is already in the standard MII Rowsets-Rowset-Row xml structure.
Step 2: Consume the XML query as required, for example within a Business Logic Transaction.

Step 3: Use the query results as required, for example map / join / append etc with other XML data, or select data fields for subsequent actions such as store to DB

Was this article helpful?
Dislike 0
Views: 362
Still have questions? Create a support ticket