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: 15
© Copyright - Pocket Programs