on 06-04-2009 5:21 PM
Hi, All,
I have a ABAP proxy -> FTP scenorio. The sender side MT is like this:
<Sender_MT>
<FileName>abc.txt</FileName>
<Record>
<TEXT>.......</TEXT>
<TEXT>.......</TEXT>
.......
<TEXT> ......</TEXT>
</Record>
</Sender_MT>
I would like to output the data which are the values of the tags <TEXT> to a flat file with the file name of the value of <FileName>
I tried to use Variable Substitution in FTP CC. I set a val1 = payload:Sender_MT:1,FileName,1 . But I got an error says "Unknown structure 'ns0:Sender_MT' found in document'. I looked at the message monitoring. It shows payload <n0:Sender_MT>. not <ns0:Sender_MT>. I think that is why I got the error. Then I tried to use XSLT mapping. I set
<Receiver_MT>
<Record>
<xsl:value-of select="ns0:Sender_MT/Record"/>
</Record>
</Receiver_MT>
But I get an error says "XMLParser: No data allowed here: (hex) 32, 64, 66(:main:, row:1, col:3): ".
Could anybody help me out? Thanks!
Jack
Edited by: Jack Mathew on Jun 4, 2009 6:22 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dude this looks purely like a variable reference error. Have you mapped the the Filename field in the target too? UR XSLT mapping dosent seem to indicate that... run ur mapping test to check that..
Second ... if ur source structure is hierarchcially similar then var 1 should be -
payload:Receiver_MT:1,FileName,1
Regards,
Arvind R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Error looks like related to your schema definition at receiver side adapter,check the schema definition
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.