Hi all,
I've read all the discussions and many Notes about the problems with SWIFT communications, but I couldn't find
the answer, so I'm writing.
For simplicity, imagine this scenario:
On the one hand the SAP BCM creates a file MT103 (txt) and saved in the folder. From this folder it loads AEX through Adapter module (via FINConversionToSWIFTModule) and creates a xml. This xml sends to the Adapter Module (via FINConversionFromSWIFTModule), which creates a file and save it to a folder. On the other hand, the Bank will take it from this folder. (File to File scenario) This is a simplified version of the scenario.
Through SAP BCM i saved message MT103 to file.
Example:
MessageIdentifier#fin.103
Format#MT
SenderReference#1000004510
ReceiverBIC12#ABCDEFGHIJKL
SenderBIC12#}{ }
TransactionCounter#00001
:20:2000000024
:23B:X
.
.
.
Through the adapter module FINConversionToSWIFTModule i sent data to AEX.
Example in AEX:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ns:SwiftMessagexmlns:ns="http://sap.com/xi/SWIFT">
<ListOfDataPDU>
<DataPDU>
<SenderReference>1000004510</SenderReference>
<MessageIdentifier>fin.103</MessageIdentifier>
<Format>MT</Format>
<SenderBIC12>}{ }</SenderBIC12>
<ReceiverBIC12>ABCDEFGHIJKL</ReceiverBIC12>
<Payload>DQo6MjA6MjAwMDAwMDAyNA0KOjIzQjpYDQo6...
.
.
.
But if I want to save this XML from AEX back into the file format (type MT) via adapter module FINConversionFromSWIFTModule, appears this error: com.sap.xi.swift.ParserException: Message does not start with character '0x1f'. This error has been mentioned in other discussions, but I think they are different cases. AEX convert txt file to xml message and should by the same again save to txt file. Or I'm wrong?
Please write me, what I'm doing wrong?Ispent the whole day with it!
Thx. BR
Pavel.