on 04-20-2009 1:23 PM
Hi Friends,
I have following XML file :
<?xml version="1.0" encoding="UTF-8" ?>
- <PaymentInfoMessageResponse>
- <PaymentInfoResponse>
<TransactionType>MT940</TransactionType>
<SequenceNum>1345</SequenceNum>
<ReceiptTime>4</ReceiptTime>
<ProcessStatus>ok</ProcessStatus>
<Comment>ok</Comment>
- <TransactionData>:20:2000000003 :32A:081227SAR10000,00 :50:AL WAHA PETROCHEMICALS AL-JUBAIL INDUSTRIAL CITY KSA :52A:AAALSARI :53B:/010-049-123-008 :57A:BSFRSARI :59:/812-8300-270 SAHARA PETRO. (TESTING FOR B2B) OFFICE NO. 987 45678 AL JUBAIL INDUSTRIAL CITY :70:INV. 9876543 FR.27.12.08
</TransactionData>
<CompanyCode>1100</CompanyCode>
</PaymentInfoResponse>
</PaymentInfoMessageResponse>
From this I want to create text file that only contains <TransactionData>, that is:
:20:2000000003 :32A:081227SAR10000,00 :50:AL WAHA PETROCHEMICALS AL-JUBAIL INDUSTRIAL CITY KSA :52A:AAALSARI :53B:/010-049-123-008 :57A:BSFRSARI :59:/812-8300-270 SAHARA PETRO. (TESTING FOR B2B) OFFICE NO. 987 45678 AL JUBAIL INDUSTRIAL CITY :70:INV. 9876543 FR.27.12.08
How can I achive this using FCC on receiver side?
Thanks
Brij..
Hi,
if u want only the data of node<TransactionData> the create the target structure as
<MT_Target>
<PaymentInfoMessageResponse>
- <PaymentInfoResponse>
<TransactionData>:20:2000000003 :32A:081227SAR10000,00 :50:AL WAHA PETROCHEMICALS AL-JUBAIL INDUSTRIAL CITY KSA :52A:AAALSARI :53B:/010-049-123-008 :57A:BSFRSARI :59:/812-8300-270 SAHARA PETRO. (TESTING FOR B2B) OFFICE NO. 987 45678 AL JUBAIL INDUSTRIAL CITY :70:INV. 9876543 FR.27.12.08
</TransactionData>
</PaymentInfoResponse>
</PaymentInfoMessageResponse>
</MT_Target>
in the receiver communication channel specify theFCC parameters as given below
_Parameter Name Value_
RecordsetStructure: PaymentInfoMessageResponse, PaymentInfoResponse
now add these parameters alsoby clicking on( +) button
PaymentInfoMessageResponse.fieldSeparator: 'nl'
PaymentInfoMessageResponse.endSeparator 'nl'
While Mapping do like this
TransactionData(Source Field)----------TransactionData(target Field)
Hope this will fullfill ur requirement
Thanks and reagads,
Kubra Fatima.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to generated the required text file. Last message from Fatima was really helpful..
I created datatype as that.. and thn as suggested by Chandra I mapped...
and Cheers........:-)
Thanks All
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Chandra's suggetion is good.
Better way is, to implement Mapping Program to get only Transaction Data in the target XML message.
Regards,
Ravi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Havent you tried to generate XML of target itself in Message mapping only for transaction data node.
Do not map all fields only map transaction data node.
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I would go for message mapping and get a message like this:
<PaymentInfoResponse>
<TransactionData>:20:2000000003 :32A:081227SAR10000,00 :50:AL WAHA PETROCHEMICALS AL-JUBAIL INDUSTRIAL CITY KSA :52A:AAALSARI :53B:/010-049-123-008 :57A:BSFRSARI :59:/812-8300-270 SAHARA PETRO. (TESTING FOR B2B) OFFICE NO. 987 45678 AL JUBAIL INDUSTRIAL CITY :70:INV. 9876543 FR.27.12.08
</TransactionData>
</PaymentInfoResponse>
Once done this, in the content conversion parameters of the channel should be written something like:
Recordset Structure: PaymentInfoResponse
PaymentInfoResponse.fieldFixedLengths: (Length of TransactionData element) eg: 200
PaymentInfoResponse.addHeaderLine: 0
PaymentInfoResponse.endSeparator: 'nl'
Hope this helps.
Best Regards,
Luis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to map only transaction data field in Mapping and do File content conversion by not specifying field fixed lengths as parameter.
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
:20:2000000003 :32A:081227SAR10000,00 :50:AL WAHA PETROCHEMICALS AL-JUBAIL INDUSTRIAL CITY KSA :52A:AAALSARI :53B:/010-049-123-008 :57A:BSFRSARI :59:/812-8300-270 SAHARA PETRO. (TESTING FOR B2B) OFFICE NO. 987 45678 AL JUBAIL INDUSTRIAL CITY :70:INV. 9876543 FR.27.12.08
Do u want the above data in 3 lines as a text file
could u please eloborate more on ur req?
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.