Overview
Path: Planning > Data Exchange > Production Orders Exchange
Production orders exchange is only possible by sending XML files to GK RESTapi. All new imported production orders are first sent to a data exchange table, there the system will check if the sent data has no errors, and only then the data is uploaded to the system. Data in the exchange table will appear only if the structure of the file is as presented later. If data upload fails all of the errors will be presented in this table why the import failed.
It is possible to import data from XLSX file, but a system script is necessary, that is why it is not mentioned as one of the import methods.
Toolbar
Upload Ext. Data - upload data from the exchange table to the system.
Import from XLSX - import data from an XLSX file. A system script is needed for this import, for more information about this script please ask you GK Consultant.
Export XLSX - similar to downloading an XLSX template, excep here the fields will be filled with data from the exchange table.
Import from Script - data in the exchange table if filled from custom logic befined in a script. The data the can be extracted or imported that is totaly custom and is commonly used when data must be imported from 3rd party systems that have very strict and/or specific data export logic.
Download XLSX template - template excel of the production order import can be downloaded, it contains the correct structure.
Download XML template - a XML template file can be downloaded:
v1 - version 1 of the file. (Not supported)
v2 - version 2 of the file.
Before importing anything, please check and setup - Exchange setup.
XML format
Requirments
- ERP system must support production order functionality.
- ERP system must support synchronical HTTP queries.
- GK Proact will return HTTP STATUS CODE 200 if data was imported successfully or STATUS CODE 400 if data import failed. When import fails the respons will be returned in XML format. It is recommended to display the error for ERP system users or save it to a log.
Sending production order data
Data must be sent using HTTP POST metod. POST request body must contain production order data in XML format.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/ProductionOrdersExchange/importProductionOrdersXML
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/ProductionOrdersExchange/importProductionOrdersXML
- systemAddress - main link to GK system.
Items must already be created or uploaded to the system before uploading production orders, otherwise errors will be shown that items are missing. Item card exchange
V2
Tabs
XML v2
<?xml version="1.0" encoding="UTF-8"?>
<productionOrderList>
<productionOrder>
<productionOrderNo></productionOrderNo>
<workCenterCode></workCenterCode>
<externalDocumentNo></externalDocumentNo>
<item></item>
<uom></uom>
<quantity></quantity>
<description></description>
<comment></comment>
<notes></notes>
<dueDate></dueDate>
<plannedStartDate></plannedStartDate>
<plannedProductionDate></plannedProductionDate>
<shipmentDate></shipmentDate>
<configurationKey></configurationKey>
<planningType></planningType>
<runTime></runTime>
<qualityReport></qualityReport>
<productionOrderPackageList>
<productionOrderPackage>
<item></item>
<uom></uom>
<quantity></quantity>
<runTime></runTime>
<expirationDate></expirationDate>
<comment></comment>
<notes></notes>
<componentList>
<component>
<item></item>
<uom></uom>
<quantity></quantity>
<rowOrderNo></rowOrderNo>
<pickPriority></pickPriority>
<standardOperation></standardOperation>
<comment></comment>
<isCritical></isCritical>
<positionInCart></positionInCart>
<mpsComponentDistributionType></mpsComponentDistributionType>
<componentBatchList>
<componentBatch>
<batchNo></batchNo>
<quantity></quantity>
</componentBatch>
</componentBatchList>
</component>
</componentList>
<routeList>
<operation>
<operationNo></operationNo>
<standardOperationCode></standardOperationCode>
<standardOperationDescription></standardOperationDescription>
<runTime></runTime>
<setupTimeInMinutes></setupTimeInMinutes>
<timeBufferInMinutes></timeBufferInMinutes>
<machineCenter></machineCenter>
<notes></notes>
<comment></comment>
<quantity></quantity>
<link></link>
<standardOperationCategory></standardOperationCategory>
<itemProperty></itemProperty>
<qualityTree></qualityTree>
</operation>
</routeList>
<productionOrderLabelList>
<productionOrderLabel>
<batchNo></batchNo>
<serialNo></serialNo>
<expirationDate></expirationDate>
<numberOfLabels></numberOfLabels>
<productionDate></productionDate>
<businessPartner></businessPartner>
<quantity></quantity>
</productionOrderLabel>
</productionOrderLabelList>
</productionOrderPackage>
</productionOrderPackageList>
</productionOrder>
</productionOrderList>
XSD v2
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="productionOrderList">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrder">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrderNo" type="xs:string" />
<xs:element name="workCenterCode" type="xs:string" />
<xs:element name="externalDocumentNo" type="xs:string" />
<xs:element name="item" type="xs:string" />
<xs:element name="uom" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
<xs:element name="description" type="xs:string" />
<xs:element name="comment" type="xs:string" />
<xs:element name="notes" type="xs:string" />
<xs:element name="dueDate" type="xs:date" />
<xs:element name="plannedStartDate" type="xs:date" />
<xs:element name="plannedProductionDate" type="xs:date" />
<xs:element name="shipmentDate" type="xs:date" />
<xs:element name="configurationKey" type="xs:string" />
<xs:element name="planningType" type="xs:integer" />
<xs:element name="runTime" type="xs:decimal" />
<xs:element name="qualityReport" type="xs:string" />
<xs:element name="productionOrderPackageList">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrderPackage">
<xs:complexType>
<xs:sequence>
<xs:element name="item" type="xs:string" />
<xs:element name="uom" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
<xs:element name="runTime" type="xs:decimal" />
<xs:element name="expirationDate" type="xs:date" />
<xs:element name="comment" type="xs:string" />
<xs:element name="notes" type="xs:string" />
<xs:element name="componentList">
<xs:complexType>
<xs:sequence>
<xs:element name="component">
<xs:complexType>
<xs:sequence>
<xs:element name="item" type="xs:string" />
<xs:element name="uom" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
<xs:element name="rowOrderNo" type="xs:integer" />
<xs:element name="pickPriority" type="xs:integer" />
<xs:element name="standardOperation" type="xs:string" />
<xs:element name="comment" type="xs:string" />
<xs:element name="isCritical" type="xs:boolean" />
<xs:element name="positionInCart" type="xs:integer" />
<xs:element name="mps" type="xs:string" />
<xs:element name="componentBatchList">
<xs:complexType>
<xs:sequence>
<xs:element name="componentBatch">
<xs:complexType>
<xs:sequence>
<xs:element name="batch" type="xs:string" />
<xs:element name="quantity" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="routeList">
<xs:complexType>
<xs:sequence>
<xs:element name="operation">
<xs:complexType>
<xs:sequence>
<xs:element name="operationNo" type="xs:integer" />
<xs:element name="standardOperationCode" type="xs:string" />
<xs:element name="standardOperationDescription" type="xs:string" />
<xs:element name="runTime" type="xs:decimal" />
<xs:element name="setupTimeInMinutes" type="xs:decimal" />
<xs:element name="timeBufferInMinutes" type="xs:decimal" />
<xs:element name="machineCenter" type="xs:string" />
<xs:element name="notes" type="xs:string" />
<xs:element name="comment" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
<xs:element name="link" type="xs:string" />
<xs:element name="standardOperationCategory" type="xs:string" />
<xs:element name="itemProperty" type="xs:string" />
<xs:element name="qualityTree" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="productionOrderLabelList">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrderLabel">
<xs:complexType>
<xs:sequence>
<xs:element name="batchNo" type="xs:string" />
<xs:element name="serialNo" type="xs:string" />
<xs:element name="expirationDate" type="xs:date" />
<xs:element name="numberOfLabels" type="xs:integer" />
<xs:element name="productionDate" type="xs:date" />
<xs:element name="businessPartner" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Data v2
productionOrder
Main production order information.
- productionOrderNo* - production order number.
- workCenterCode* - work center code.
- externalDocumentNo* - external document number.
- item - item code or item code2.
- uom - item variant code.
- quantity - quantity to produce.
- description - production order description (free text).
- comment - procution order comment (free text).
- notes - procution order notes (free text).
- dueDate* - production order due date.
- plannedStartDate - planned date to start production.
- shipmentDate - planned production order's output shipment date.
- plannedProductionDate* - planned production date.
- configurationKey - production order's configuration (free text).
- planningType - production order's planning type. 15 - "Item variant". If we leave it empty or type anything else than 15 type - "Item" will be chosen.
- runTime - production order planned run time.
- qualityReport - production order's qualty report number. This number is used in printed production route papers to search for production tasks in the tablet so that products and subproducts can be joined in one QR code.
productionOrderPackage
Production order's package information.
- item* - item code or item code2. If production order has only one package than package item and order item should match.
- uom* - production order package item variant. If production order has only one package than package variant and order variant should match.
- quantity* - package quantity.
- runTime - planned package run time.
- expirationDate - expiration date, until the product will expire, only if product requires expiration date.
- comment - procution order package comment (free text).
- notes - procution order package note (free text).
component
Component list of a production order. Component list can not be sent, the system will take components from a standard BOM assigned to an item.
- item* - item code or item code2.
- uom* - variant the item.
- quantity* - needed quantity to produce the order.
- rowOrderNo - component's row number.
- pickPriority - component's row number in a pick document.
- standardOperation - standard operation code which requires this component to be consumed. If nothing is set than by default the component is required for the first operation.
- comment - comment for component (free text).
- isCritical - if this a critical component,
YES=1, NO=0. - positionInCart - component position in a cart. When pick for production is needed, this option allows to point out where in the cart a component should be placed.
componentBatch
Detailed components by batch numbers and quantity for each batch.
The component must have an item tracking group that has the option "Require Component Batch No." enabled. If not an error will be shown.
- batch - components batch number in the warehouse
- quantity - quantity of the batch
operation
List of standard operations that needs to be done in order to produce output. Operation list can not be sent, the system will take operations from a standard production route assigned to an item.
- operationNo* - operation row number. Which operation in the list it is.
It is recommended to number operations in tens - 10, 20, 30 and so on, so that it would be possible to insert and additional operation in the middle.
- standardOperationCode* - standard operation code.
- standardOperationDescription* - description of the operation.
- runTime* - time needed to produce one unit of the product in seconds.
- setupTimeInMinutes - setup time for a specific operation, if needed in minutes.
- timeBufferInMinutes - buffer time for specific operation, if needed in minutes.
- machineCenter - default machine center that should preform a task created by this operation.
- notes - notes for an operation (free text).
- comment - comment for an operation atlikimo (free text).
- quantity - operation quantity is multiplied by coefficient that is set in the standard operation and run time is automatically recalculated.
- link - link to additional schemas in external source. Only used when machine center tasks are being done in the system not in a tablet.
- standardOperationCategory - standartinės operacijos kategorijos kodas. Naudojama apskaičiuojant darbo užmokestį. standard operation category code. Used to calculate work price.
- itemProperty - operation's item property.
- qualityTree - quality tree code.
productionOrderLabel
Additional information to generate production labels
- batchNo - product's warehous batch no.
- serialNo - product's warehous serial no.
- expirationDate - product's expiration date
- numberOfLabels - amount of labels needed
- productionDate - date produced
- businessPartner - business partner code for which the production was made.
- quantity - product quantity.
V1
This XML version is not supported anymore. For all the new integrations with GK Proact please refer to V2 version.
Tabs
XML v1
<?xml version="1.0" encoding="UTF-8"?>
<productionOrderList>
<productionOrder>
<productionOrderNo></productionOrderNo>
<workCenterCode></workCenterCode>
<externalDocumentNo></externalDocumentNo>
<item></item>
<uom></uom>
<quantity></quantity>
<description></description>
<comment></comment>
<dueDate></dueDate>
<plannedStartDate></plannedStartDate>
<expirationDate></expirationDate>
<plannedProductionDate></plannedProductionDate>
<shipmentDate></shipmentDate>
<configurationKey></configurationKey>
<runTime></runTime>
<qualityReport></qualityReport>
<componentList>
<component>
<item></item>
<uom></uom>
<quantity></quantity>
<rowOrderNo></rowOrderNo>
<pickPriority></pickPriority>
<standardOperation></standardOperation>
<comment></comment>
<isCritical></isCritical>
<positionInCart></positionInCart>
</component>
</componentList>
<routeList>
<operation>
<operationNo></operationNo>
<standardOperationCode></standardOperationCode>
<standardOperationDescription></standardOperationDescription>
<runTime></runTime>
<setupTimeInMinutes></setupTimeInMinutes>
<timeBufferInMinutes></timeBufferInMinutes>
<machineCenter></machineCenter>
<notes></notes>
<quantity></quantity>
<link></link>
<standardOperationCategory></standardOperationCategory>
<itemProperty></itemProperty>
<qualityTree></qualityTree>
</operation>
</routeList>
<productionOrderLabelList>
<productionOrderLabel>
<batchNo></batchNo>
<serialNo></serialNo>
<expirationDate></expirationDate>
<numberOfLabels></numberOfLabels>
<productionDate></productionDate>
<businessPartner></businessPartner>
<quantity></quantity>
</productionOrderLabel>
</productionOrderLabelList>
</productionOrder>
</productionOrderList>
XSD v1
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="productionOrderList">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrder">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrderNo" type="xs:string" />
<xs:element name="workCenterCode" type="xs:string" />
<xs:element name="externalDocumentNo" type="xs:string" />
<xs:element name="item" type="xs:string" />
<xs:element name="uom" type="xs:string" />
<xs:element name="quantity" type="xs:unsignedByte" />
<xs:element name="description" type="xs:string" />
<xs:element name="comment" type="xs:string" />
<xs:element name="dueDate" type="xs:date" />
<xs:element name="plannedStartDate" type="xs:date" />
<xs:element name="expirationDate" type="xs:date" />
<xs:element name="plannedProductionDate" type="xs:date" />
<xs:element name="shipmentDate" type="xs:date" />
<xs:element name="configurationKey" type="xs:string" />
<xs:element name="runTime" type="xs:decimal" />
<xs:element name="qualityReport" type="xs:string" />
<xs:element name="componentList">
<xs:complexType>
<xs:sequence>
<xs:element name="component">
<xs:complexType>
<xs:sequence>
<xs:element name="item" type="xs:string" />
<xs:element name="uom" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
<xs:element name="rowOrderNo" type="xs:unsignedByte" />
<xs:element name="pickPriority" type="xs:unsignedByte" />
<xs:element name="standardOperation" type="xs:string" />
<xs:element name="comment" type="xs:string" />
<xs:element name="isCritical" type="xs:unsignedByte" />
<xs:element name="positionInCart" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="routeList">
<xs:complexType>
<xs:sequence>
<xs:element name="operation">
<xs:complexType>
<xs:sequence>
<xs:element name="operationNo" type="xs:unsignedByte" />
<xs:element name="standardOperationCode" type="xs:string" />
<xs:element name="standardOperationDescription" type="xs:string" />
<xs:element name="runTime" type="xs:decimal" />
<xs:element name="setupTimeInMinutes" type="xs:decimal" />
<xs:element name="timeBufferInMinutes" type="xs:decimal" />
<xs:element name="machineCenter" type="xs:string" />
<xs:element name="notes" type="xs:string" />
<xs:element name="quantity" type="xs:unsignedByte" />
<xs:element name="link" type="xs:string" />
<xs:element name="standardOperationCategory" type="xs:string" />
<xs:element name="itemProperty" type="xs:string" />
<xs:element name="qualityTree" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="productionOrderLabelList">
<xs:complexType>
<xs:sequence>
<xs:element name="productionOrderLabel">
<xs:complexType>
<xs:sequence>
<xs:element name="batchNo" type="xs:string" />
<xs:element name="serialNo" type="xs:string" />
<xs:element name="expirationDate" type="xs:date" />
<xs:element name="numberOfLabels" type="xs:date" />
<xs:element name="productionDate" type="xs:date" />
<xs:element name="businessPartner" type="xs:string" />
<xs:element name="quantity" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Data v1
productionOrder
Main production order information.
- productionOrderNo* - production order number.
- workCenterCode* - work center code.
- externalDocumentNo* - external document number.
- item - item code or item code2.
- uom - item variant code.
- quantity - quantity to produce.
- description - production order description (free text).
- comment - procution order comment (free text).
- dueDate* - production order due date.
- plannedStartDate - planned date to start production.
- expirationDate - expiration date of the product, if expiration date is used for it.
- plannedProductionDate* - planned production date.
- configurationKey - production order's configuration (free text).
- runTime - production order planned run time.
- qualityReport - production order's qualty report number. This number is used in printed production route papers to search for production tasks in the tablet so that products and subproducts can be joined in one QR code.
component
Component list of a production order. Component list can not be sent, the system will take components from a standard BOM assigned to an item.
- item* - item code or item code2.
- uom* - variant the item.
- quantity* - needed quantity to produce the order.
- rowOrderNo - component's row number.
- pickPriority - component's row number in a pick document.
- standardOperation - standard operation code which requires this component to be consumed. If nothing is set than by default the component is required for the first operation.
- comment - comment for component (free text).
- isCritical - if this a critical component,
YES=1, NO=0. - positionInCart - component position in a cart. When pick for production is needed, this option allows to point out where in the cart a component should be placed.
operation
List of standard operations that needs to be done in order to produce output. Operation list can not be sent, the system will take operations from a standard production route assigned to an item.
- operationNo* - operation row number. Which operation in the list it is.
It is recommended to number operations in tens - 10, 20, 30 and so on, so that it would be possible to insert and additional operation in the middle.
- standardOperationCode* - standard operation code.
- standardOperationDescription* - description of the operation.
- runTime* - time needed to produce one unit of the product in seconds.
- setupTimeInMinutes - setup time for a specific operation, if needed in minutes.
- timeBufferInMinutes - buffer time for specific operation, if needed in minutes.
- machineCenter - default machine center that should preform a task created by this operation.
- notes - notes for an operation (free text).
- comment - comment for an operation atlikimo (free text).
- quantity - operation quantity is multiplied by coefficient that is set in the standard operation and run time is automatically recalculated.
- link - link to additional schemas in external source. Only used when machine center tasks are being done in the system not in a tablet.
- standardOperationCategory - standartinės operacijos kategorijos kodas. Naudojama apskaičiuojant darbo užmokestį. standard operation category code. Used to calculate work price.
- itemProperty - operation's item property.
- qualityTree - quality tree code.
productionOrderLabel
Additional information to generate production labels
- batchNo - product's warehous batch no.
- serialNo - product's warehous serial no.
- expirationDate - product's expiration date
- numberOfLabels - amount of labels needed
- productionDate - date produced
- businessPartner - business partner code for which the production was made.
- quantity - product quantity.
Deleting production orders
Data must be sent using HTTP DELETE method.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/Redmes2/api/productionOrder?documentNo=documentNo
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
- documentNo production order's document no to delete.
URL structure if the system is deployed in GK Proact server
https://`systemAddress`/api/productionOrder?documentNo=`documentNo`
- systemAddress - main link to GK system.
- documentNo production order's document no to delete.
Production order's that is needed to be deleted, number is passed as a parameter to the link. Production order can't be deleted if it's status is Confirmed/Finished/Done.