Proact

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

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

URL structure if the system is deployed in GK Proact server

https://api.systemAddress/api/ProductionOrdersExchange/importProductionOrdersXML

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.

productionOrderPackage

Production order's package information.

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.

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.

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.

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.

productionOrderLabel

Additional information to generate production labels

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.

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.

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.

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.

productionOrderLabel

Additional information to generate production labels

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

URL structure if the system is deployed in GK Proact server

https://`systemAddress`/api/productionOrder?documentNo=`documentNo`

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.