Pergunta

Eu tenho uma mensagem Coplat no seguinte formato

DEB1234567890    5   CODE1     5   2007020610471COPLAT0
(... other data here ....)

DEB1234567890    5   CODE2     5   2007020610471COPLAT0
(... other data here ....)

FIN00000245     

a mensagem acima tem duas seções DEB, como você pode notar.

Eu quero criar uma mensagem Copaym que podem ser mapeados para essa mensagem Coplat, este é um exemplo de uma mensagem Copaym com um 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'

Eu quero criar duas mensagens como esta a ser traduzido para o acima mensagem Coplat, meios, quando traduzido, devo obter 2 seções DEB com code1 e CODE2 respectivily, eu tentei isso:

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'

mas eu tenho erro de sintaxe, então eu faz todos os dados dentro de um segmento UNB que funciona, mas o Coplat gerado tem apenas um DEB com code1, esta é a mensagem:

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'

Uma UNB e 2 segmentos UNH dentro. Alguém pode ajudar a fazer uma mensagem Copaym por isso fico com 2 segmentos DEB com code1 e CODE2?

Foi útil?

Solução

que é o formato correto, você tem apenas que especificar diferentes identifires Interchange para as duas mensagens

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'
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top