Import parameters
Files reference
-
filename : header
-
filename-contexts : activity contexts
-
filename-details : effective date
-
filename-items : input/output items
-
filename-substitutes : substitute items
-
filename-operations : operations
-
filename-costitems : cost items
Other parameters
Import mode
Imports can be done with "full" or "update" mode.
-
Full mode : All entities in the file but not in the target application are created. All entities present in the target application but not in the file are deleted. The others are updated.
-
Update mode : same as "full" mode except that the entities present in the target application but not in the file are not deleted.
Files content
Header
Data structure
Field | Column | Data type | Required | Business rules |
---|---|---|---|---|
Code |
activityCode |
String |
X |
20 characters max |
Company code |
companyCode |
String |
X |
2 characters max |
Establishment code |
establishmentCode |
String |
X |
2 characters max |
Label |
label |
String |
X |
50 characters max |
Reference item code |
refItemCode |
String |
X |
20 characters max |
Reference unit code |
refUnitCode |
String |
X |
5 characters max |
Flow type |
flowType |
String |
X |
IN(PUSH,PULL) |
Area code |
areaCode |
String |
If Suite MES is active |
10 characters max |
Family code |
activityFamilyCode |
String |
X |
10 characters max |
Validity end date |
validityEndDate |
String (ISO-8601) |
AAAA-MM-JJTHH:MM:SSZ Set a passed date to make the entity inactive. |
Activity contexts
Effective date
Data structure
Field | Column | Data type | Required | Business rules |
---|---|---|---|---|
Code |
activityCode |
String |
X |
20 characters max |
Company code |
companyCode |
String |
X |
2 characters max |
Establishment code |
establishmentCode |
String |
X |
2 characters max |
Effective date |
effectiveDate |
String (ISO-8601) |
X |
AAAA-MM-JJTHH:MM:SSZ |
Reference quantity |
referenceQuantity |
Double |
input/output items
Data structure
Field | Column | Data type | Required | Business rules |
---|---|---|---|---|
Code |
activityCode |
String |
X |
20 characters max |
Company code |
companyCode |
String |
X |
2 characters max |
Establishment code |
establishmentCode |
String |
X |
2 characters max |
Effective date |
effectiveDate |
String (ISO-8601) |
X |
AAAA-MM-JJTHH:MM:SSZ |
Item type |
itemType |
String |
X |
IN(INPUT,OUTPUT) |
Area code |
depositCode |
String |
10 characters max |
|
Item’s unit code |
unitCode |
String |
X |
5 characters max |
Shrinkage line |
shrinkageLine |
Boolean |
X |
|
Shrinkage rate |
shrinkageRate |
Double |
MUST BE SET IF shrinkageLine = TRUE |
|
Item code |
itemCode |
String |
X |
20 characters max |
Constant quantity |
constantQuantity |
Boolean |
X |
|
Quantity |
quantity |
Double |
X |
MUST HAVE at most same number of decimal places as item’s unit |
Unique reference |
counter |
Integer |
X |
INTERNAL UNIQUE NUMBER |
Rank |
rank |
Integer |
X |
|
Comment |
comment |
String |
100 characters max |
Example
activityCode;companyCode;establishmentCode;effectiveDate;itemType;depositCode;unitCode;shrinkageLine;shrinkageRate;itemCode;constantQuantity;quantity;counter;rank;comment 01;02;03;2014-05-26T12:00:00Z;INPUT;01;KG;true;5.0;001;true;0.5;1;3;commentaire 01;02;03;2014-05-27T12:00:00Z;OUTPUT;;KG;false;;001;true;0.5;2;2;commentaire 01;02;03;2014-05-28T12:00:00Z;INPUT;01;KG;true;5.0;001;true;0.5;3;1;commentaire
Substitute items
Data structure
Field | Column | Data type | Required | Business rules |
---|---|---|---|---|
Code |
activityCode |
String |
X |
20 characters max |
Company code |
companyCode |
String |
X |
2 characters max |
Establishment code |
establishmentCode |
String |
X |
2 characters max |
Effective date |
effectiveDate |
String (ISO-8601) |
X |
AAAA-MM-JJTHH:MM:SSZ |
Item code |
itemCode |
String |
X |
20 characters max |
Substitute item code |
replacementItemCode |
String |
X |
20 characters max |
Item’s unique reference |
counter |
Integer |
X |
Operations
Data structure
Field | Column | Data type | Required | Business rules |
---|---|---|---|---|
Code |
activityCode |
String |
X |
20 characters max |
Company code |
companyCode |
String |
X |
2 characters max |
Establishment code |
establishmentCode |
String |
X |
2 characters max |
Effective date |
effectiveDate |
String (ISO-8601) |
X |
AAAA-MM-JJTHH:MM:SSZ |
Operating process code |
operatingProcessCode |
String |
X |
20 characters max |
By default |
isDefault |
Boolean |
X |
Cost items
Data structure
Field | Column | Data type | Required | Business rules |
---|---|---|---|---|
Code |
activityCode |
String |
X |
20 characters max |
Company code |
companyCode |
String |
X |
2 characters max |
Establishment code |
establishmentCode |
String |
X |
2 characters max |
Effective date |
effectiveDate |
String (ISO-8601) |
X |
AAAA-MM-JJTHH:MM:SSZ |
Item code |
itemCode |
String |
X |
20 characters max |
Constant quantity |
constantQuantity |
Boolean |
X |
|
Quantity |
quantity |
Double |
X |
MUST HAVE at most same number of decimal places as item’s unit |
Unit code |
unitCode |
String |
X |
5 characters max |