on 05-30-2007 5:34 PM
Hi,
I have an xml-output (as a string) but I need to use the content converstion tool in the receiver file adapter to make this into one string without the nodes etc. Example of the format that i want the file to be in:
1AXXX10363501 00000013PC..........etc.
And I need each instance of SBR in a new row. How can I do this? Please tell me if things are unclear.
Example of the structure the file has now without content converstion.
<?xml version="1.0" encoding="UTF-8"?>
<StockBalanceFlatfile><Rows><SBR>
<Type>1</Type>
<Mode>A</Mode>
<Owner>XXX</Owner>
<SKU>10363501</SKU>
<Quantity>00000013</Quantity>
<UOM>PC</UOM>
<Attr1>2476</Attr1>
<Status>0000</Status>
<Filller>----
</Filller>
<ELM>*</ELM>
<CRLF>CRLF</CRLF>
</SBR></Rows></StockBalanceFlatfile>
Best Regards
Claes
Solved the issue with some help from Raj and these links:
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Claes,
You can concat all the fields at Mapping level if ur target structure is not specific.
Thanks,
Maheshwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Claes,
Use the below content conversion parameters.
<u>Content Coversion Parameters</u>
<b>Recordsetstructure</b> StockBalanceFlatfile,Rows,SBR
<b>Name</b> <b>Value</b>
SBR.endSeparator 'nl'
If it doesn't help, reply back.
Best Regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes Raj this is what I'm looking for.
My file adapter isn't working right now so I can't test it properly. Do you know if this is possible to test in the test configuration in the ID (Tools > Test Configuration)? I think not. I have to come back to you when I have got my adapter to work.
Thanks
/Claes
Claes,
Using the Concat functionality will solve your issue. If you have more fields then a user defined funciton can help you. This is what you are looking for?
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.