on 02-05-2007 6:40 AM
Hi,
I have the following problem. We send invoices to an external system and it sends back funtional acknowledgment (ANSI 997). We convert this file with the Seeburger Adapter to an XI-XML and then send it through email to different recepients. Everything is working fine but now, we have the following issue. Sometimes, there come in two or more acknowledgments in one file:
ISA00 00 ZZ1234 121234123456 0701231445U004010000000220P<~
GSFAULULUL12341234562007012314451821X004010~
ST9970001~
AK1IN1~
AK2810010127263~
AK5*A~
AK9A111~
SE60001~
GE121~
IEA1000000022~
ISA00 00 ZZ1234 121234123456 0701231445U004010000000210P<~
GSFAULULUL12341234562007012314451620X004010~
ST9970001~
AK1IN1~
AK2810010127262~
AK5*A~
AK9A111~
SE60001~
GE120~
IEA1000000021~
We receive an error message by XI that the file is not XML because only one header line is allowed. How can we split this file into 1...n messages? I tried to do a multiple mapping but there is still an error. Any ideas?
Regards,
Stefan
HI,
In EDI we can have the multiple Ack.., i mean make this as occur as unbounded an try.
Other wise try to do JAVA mapping to handle.
Other wise , At Adapter level we can split.becoz all Adapters on AE can support msg split at Adapter level..
Regards
Chilla...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stefan,
As your source file has multiple XMlL's created by the SeeBurger Adapter,
1. Check if the splitting can be done at the adapter level itself?
2. If no, and you want XI to handle this, then you will need to use Java Mapping to handle this. Convert your InputStream into a string and then use a substring funtion to split the Input String into the valid XML's and process the same as needed.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.