Import parameters

Directory

/data/production-items

Files reference

  • filename : header

  • *(optional) filename-items* : launch 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

Data structure

Field Column Data type Required Business rules

Code

itemCode

String

X

20 characters max

Company code

companyCode

String

X

2 characters max

Establishment code

establishmentCode

String

X

2 characters max

Launch items

launch

String

X

IN(NONE, PUSH, PULL, PUSH_PULL)

Deposit code

depositCode

String

10 characters max

Normative shrinkage

normativeShrinkage

Double

MO unit code

moUnitCode

String

5 characters max

Validity end date

validityEndDate (DEPRECATED)

String (ISO-8601)

AAAA-MM-JJTHH:MM:SSZ Set a passed date to make the entity inactive.

Example

itemCode;companyCode;establishmentCode;launch;depositCode;normativeShrinkage;moUnitCode;validityEndDate
01;02;03;INPUT;01;10.5;G;2014-05-28T12:00:00Z
01;02;03;OUTPUT;02;10.5;G;2014-05-28T12:00:00Z
01;02;03;INPUT;;;;

Launch items

Data structure

Field Column Data type Required Business rules

Code

itemCode

String

X

20 characters max

Company code

companyCode

String

X

2 characters max

Establishment code

establishmentCode

String

X

2 characters max

Item type : input/output

itemType

String

X

IN(INPUT,OUTPUT). Depends on the launch type.

Launch item code

launchingItemCode

String

X

20 characters max

Example

itemCode;companyCode;establishmentCode;itemType;launchingItemCode
01;02;03;INPUT;001
01;02;03;OUTPUT;002
01;02;03;INPUT;003