on 07-15-2005 9:05 PM
I have an R/3 RFC -> XI -> File scenario. Everything is working fine except that my output file has an extra line feed on the end of it. I assume it has something to do with the fieldSeparator value. I cannot use fieldFixedLengths because my field can vary.
Is there a way to set fieldSeparator to "nothing"? Is there a way to turn off the endSeparator? I have tried a few different Content Conversion parameters but nothing is working.
Here are some details:
RECEIVER DATA TYPE (integration repository):
complus_receiver_dataType complex type
cp element
myrequest element
myheader element (optional)
RECEIVER COMM CHANNEL:
File Content Conversion is the Message Protocol
Recordset Structure - cp
cp.fieldSeparators - 'nl'
I just remove the extra newline in the receiving system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the xml Response payload that gets sent to my RECEIVER CHANNEL. You do not see it, but there is a newline character in the middle of the data (before 00010007847705251) and another at the end (after BREAKER 1 POLE 4). When I write out the file I don't want to add yet another line feed or character to the end.
My channel parameters are just:
cp.fieldSeparator 'nl'
cp.endSeparator '0x20'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Keith,
you are getting the extra space in your data because of the value you are giving in the parameter <i>'endSeparator'</i>, i.e. '0x20' or a <i>space</i>.
Don't use the endSeparator parameter and make the following changes in the parameters:
<b>cp.fieldSeparator '0x20'</b>
Please make these changes, activate your object and test the scenario.
I hope if it helps you'll give me points )
Thanks & Regards,
Varun Joshi
With this recommendation I still have two newline characters at the end of the file. The default endSeparator is newline, so that is what you get when you don't put anything.
I guess I have to just figure out how to get the newline character out of my data since XI forces you to have an endSeparator.
Hi Keith,
http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
Hope this link help you..
Regards,
Divya
Thanks, but these leave a space at the end of my file. The problem is that the data I receive already ends with a newline. I don't want an endSeparator at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
H Keith,
You could also try with the hexcode for space ie '0x20' as the field separator.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Keith,
Keep your fieldSeparator value as a <i>'space'</i>.
For eg:
cp.fieldSeparator: //give a space here
I hope it helps,
Thanks & Regards,
Varun Joshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.