Skip to content

ERP Production Feed

If your ERP already records production (for example the weight produced on each bobbin, and whether quality accepted it), Enture can bring those records into the Shopfloor Log as production entries. Nobody has to type them in twice.

Your ERP stays on your own network. The Enture hub in your factory asks the ERP for new records and sends them to Enture. Nothing is ever written back to the ERP.

You set this up once in Accounts → Connectors, on an ERP connection. You need engineering access.

Before you start

  • A hub that can reach your ERP's web service on your network, with ERP switched on under Settings → Control Panel → (the hub) → Hub specification → Connectors. It is off by default; restart the hub after switching it on.
  • The ERP's web service details: its address, the request it expects, and where the records are in its reply. Your ERP team can provide these.
  • A shift chosen in Shift Mapping. Every entry is booked against a row of that shift.
  • Your machines and SKUs set up in Enture. Enture never creates them from ERP data.

1. Create the connection

  1. Open Accounts → Connectors and add an ERP connection.
  2. Choose the Hub, set ERP Type to Web service (JSON), and pick how often to sync.
  3. Tick Production Entries under Enabled Data Types, then save.

Production Entries can only be ticked when the ERP Type is Web service (JSON). For other ERP types the option is greyed out.

2. Web service settings

On the connection's Overview tab, fill in Web service settings:

Setting What to enter
Address The web service address, for example http://192.168.1.23:9090/service/getData
Method POST or GET, as your ERP expects
Request body The request your ERP expects. Choose JSON, or Text for anything else (for example a SOAP XML envelope), which is sent exactly as written. Put {{from_date}} and {{to_date}} where the date range goes; Enture fills them in on each sync.
Headers Only if your ERP needs them
Date format in the request How your ERP writes dates in the request
Longest date range per request If your ERP only answers for a few days at a time (for example 5), enter that. Longer periods are asked for in parts.
Where the records are in the reply The path to the list of records, for example data.Records. Use a dot for each level.

Example request body:

{ "FromDate": "{{from_date}}", "ToDate": "{{to_date}}", "ScreenName": "SFC2124" }

SOAP (.asmx) web services

Many ERP web services ending in .asmx accept only SOAP XML. If a JSON request comes back with an error like "Data at the root level is invalid", set the body type to Text, paste the SOAP envelope, and add the headers:

{ "Content-Type": "text/xml; charset=utf-8", "SOAPAction": "\"http://tempuri.org/getData\"" }
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getData xmlns="http://tempuri.org/">
      <inParameter>{"FromDate":"{{from_date}}","ToDate":"{{to_date}}","ScreenName":"SFC2124"}</inParameter>
    </getData>
  </soap:Body>
</soap:Envelope>

The reply must still be JSON. Your ERP team can confirm the method name and namespace.

3. Production mapping

On the Production Mapping tab, say which field in your ERP's records feeds each part of a production entry. Type the field names exactly as your ERP uses them.

Entry What to set
Machine The ERP field, and how it matches a machine in Enture: by machine code, by machine name, or by a manual list (see below).
SKU The ERP field, and how it matches: by SKU name or by a manual list.
Shift row Either an ERP field holding the row name (for example A) of the shift chosen in Shift Mapping, or from the time of production.
Time of production The ERP field and its time format. It decides which shift row the entry belongs to.
Record ID One or more fields that together identify a record (for example Document_no, bobbin_id). If the ERP sends the same record again, its entry is updated, never duplicated. Choose enough fields to make it unique: if two different records share a Record ID, neither is saved.
Counts See below.
Reason for scrap / rework Optional: the ERP field holding the reason.

Which time to use

If a record has both a start and an end time, check which shift your ERP books it to. Most ERPs book a batch to the shift in which it finishes, so use the end time. With the start time, a batch that started the night before is checked against the wrong shift and ends up in Failed Records.

Also make sure the shift row's times in Enture cover the times in your ERP records. A record finished a few minutes after the row ends does not match that row.

Counts

Choose the style that matches your ERP:

  • Separate quantities: the ERP has its own fields for good, scrap and/or rework. Map each one you have.
  • One quantity plus a status: the ERP has one quantity and a status saying what happened to it. Map both, then list each status value and what it means: Good, Scrap or Rework.

    For example, with quantity net_quantity and status FTTP, a value Y meaning Good and N meaning Scrap: a record with FTTP = N and 1451 kg becomes 1451 scrap, 0 good. Its reject reason becomes the reason for scrap.

Status values are matched ignoring upper and lower case.

A status value that isn't listed

A record whose status is not in your list is not saved. It is held in Failed Records, so a new or unexpected status never changes your OEE figures without you knowing.

Manual lists

If the ERP's machine or item codes don't match anything in Enture, choose Manual list and link each ERP code to an Enture machine or SKU on the Entity Mappings tab.

4. Failed records

The Failed Records tab lists every record that could not be saved, with the reason. Typical reasons:

  • No machine has that machine code, or no SKU has that name.
  • The status value is not in the mapping.
  • The time is not inside the named shift row.
  • A field the mapping needs is empty.
  • Two different records have the same Record ID. Add another field to Record ID.

Fix the cause (the mapping, a machine code or a SKU name), then click Retry on a record or Retry all. Enture reads the stored record again with your current settings. View record shows the record exactly as the ERP sent it.

5. Switch the connection on

A new connection starts Inactive, and the hub does not sync an inactive connection. When the web service settings and the production mapping are ready, turn on the Active switch at the top of the connection's page. The status changes to Active and the hub picks the connection up within about 10 minutes, with no restart needed.

The hub syncs a connection only when all of these are true:

  • The connection is Active.
  • Production Entries is ticked under Enabled Data Types on the Overview tab.
  • A production mapping is saved.
  • ERP is switched on in the hub's Hub specification, and the hub has been restarted since.

Turn Active off to pause one connection without touching the hub.

What you see in the Shopfloor Log

Entries from the ERP appear in Production Entries like any other entry, with their total production and the scrap reason from the ERP. They count towards OEE straight away.

Sync History on the connection shows each sync: how many records came in, how many were saved and how many failed.

How syncing works

  • The hub asks the ERP for new records as often as the connection's sync setting says. Longer periods are asked for in parts, no longer than the Longest date range per request.
  • The most recent day is read again on every sync, so records added or changed in the ERP that day are picked up. Records already saved are updated, not added twice.
  • If the ERP, the network or Enture can't be reached, nothing is lost. The hub tries again shortly afterwards, waiting a little longer each time, and carries on from where it stopped.
  • To stop one connection, turn its Active switch off. To stop the feed for a whole hub, switch ERP off in the hub's Hub specification and restart the hub.