Program to create GDSN Catalogue Item Subscription (CIS) messages for a data recipient based on a list of supplier GLNS.
Background
The CIS message is used by a data recipient create a subscription for the data of a certain supplier. The data recipient will receive data if a publication from the supplier is in place.
More information about Global Data Synchronisation Network (GDSN): https://www.gs1.org/services/gdsn
Usage
- Create a csv file in the input directory with the structure:
The input file has all possible parameters in it.
gln_dr,gln_ds,gpc,gtin,tm
gln_dr = gln data recipient
gln_ds = gln data source
gpc = global product classification
gtin = global trade item number
tm = target market
gln_dr and tm are mandatory
values not used should be 0 (zero)
combination of gpc and gtin is not allowed
see ./input/test_file.csv for examples
-
Change (if needed) the data_pool_gln in the source code
-
Run the program from the command prompt with the name of the csv-file as parameter
create_cis.py test_file
-
In the directory output a new directory will be created with the same name as the csv file. In the created directory there a one or more batches with CIS messages. The batchsize can be changed in the source code.
-
Upload the xml files via FTP or AS2 to your GDSN data pool.
-
Messages will be processed by the datapool.
-
If a publication exits data will be received.