on 07-27-2012 10:58 PM
Hi All,
I have to generate text file at the target folder. I am using FCC in Receiver File adapter . (referred the link already :http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm) But unable to genrate the output file correctly. Request your help regarding the same.
I have used the following parameters:
Trasport Protocal: NFS
Message Protocal:File Content Conversion
Recordset Structure:Detail
Detail.fieldSeparator = |
Detail.endSeparator = 'ln'
Input :
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Response xmlns:ns1="urn:test.com">
<root>
<Detail>
<Type>C</Type>
<Timestamp>20122402</Timestamp>
<FirstName>mimi</FirstName>
<LastName>yy</LastName>
<ComName>xx</ComName>
<DId>909</DId>
<ID>sdfwer23454</ID>
<Address>vfgdf</Address>
</Detail>
</root>
</ns1:Response>
I am getting the following output txt file which is wrong: (only first field value repeating)
C|C|C|C|C|C|C|C
Hi Prem,
You have to add the <root> node as well in your Recordset structure.
Try with below parameters.
Recordset structure: root, Detail
root.fieldSeparator='nl'
Detail.fieldSeparator=|
Hope this should solve the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Following should work
Recordset structure: root,Detail
root.fieldSeparator='nl'
Detail.fieldSeparator=|
Detail.endSeparator='nl'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
The endSeparator should be : 'nl'
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/658ac3344a4de0e10000000a1553f7/frameset.htm
Regards
Lucho.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
1) Name :Detail.fieldSeparator
Value : ,
result : C,C,C,C,C,C,C,C
2) Or put value as : '|'
result : C'|'C'|'C'|'C'|'C'|'C'|'C'|'C
3) Or.insted of the endSeparator 'nl', use '0x0A'
same as above
I have used adapter specific attributes in this channel also Trasport Protocal is NFS ..will this be an issue for FCC ?
Ok.
Yep is strange , maybe is an issue for FCC.
One more thing , can you delete the object and recreate the FCC.
Have you checked this ?
http://www.riyaz.net/sap/xipi-file-content-conversion-for-simple-structure/75/
Regards.
Hi ,
I am able to resolve this by changing the XML structure. Removed one top node <root>.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Response xmlns:ns1="urn:test.com">
<root>
<Detail>
<Type>C</Type>
<Timestamp>20122402</Timestamp>
<FirstName>mimi</FirstName>
<LastName>yy</LastName>
<ComName>xx</ComName>
<DId>909</DId>
<ID>sdfwer23454</ID>
<Address>vfgdf</Address>
</Detail>
</root>
</ns1:Response>
My massage structure is a 3 level hierarchy ..even then it ' not working . Does Receiver File adapter won't work for a 3 level hierarchy.
Thank you
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.