Edifact, la mappatura Copaym - messaggi Coplat
Domanda
Ho un messaggio Coplat nel seguente formato
DEB1234567890 5 CODE1 5 2007020610471COPLAT0
(... other data here ....)
DEB1234567890 5 CODE2 5 2007020610471COPLAT0
(... other data here ....)
FIN00000245
il messaggio di cui sopra ha due sezioni DEB, come si può notare.
Voglio creare un messaggio Copaym che può essere mappato a quel messaggio Coplat, questo è un esempio di un messaggio Copaym con un segmento BGM.
UNB+UNOC:2+1234567890:5+CODE1'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNZ+2+091000000'
Voglio creare due messaggi come questo da tradurre al messaggio Coplat sopra, significa che quando tradotto, devo ottenere 2 sezioni DEB con CODE1 e CODE2 respectivily, ho provato questo:
UNB+UNOC:2+1234567890:5+CODE1'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNZ+2+091000000'
UNB+UNOC:2+1234567890:5+CODE2'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNZ+2+091000000'
ma mi sono errore di sintassi, così mi rende tutti i dati all'interno di un segmento UNB che funziona, ma il Coplat generato ha una sola DEB con CODE1, questo è il messaggio:
UNB+UNOC:2+1234567890:5+CODE1'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNZ+2+091000000'
Un UNB e 2 segmenti UNH all'interno. Chiunque può aiutare a fare un messaggio Copaym in modo da ottenere 2 segmenti DEB con CODE1 e CODE2?
Soluzione
questo è il formato corretto, basta specificare diverse identifires Interchange per i due messaggi
UNB+UNOC:2+1234567890:5+CODE1'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNZ+2+091000000'
UNB+UNOC:2+1234567890:5+CODE2'
UNH+1000000+COPAYM:0:4.2:RT'
BGM+903:ZZZ+1000000'
(... other data here ....)
UNT+62:1000000'
UNZ+2+091000000'