on 06-30-2009 11:08 AM
How can we specify the End of file in a CSV file ?
If I have included EOF at the end then how can i remove that field?
Any other option might also work.
Hi..
You can use below parameters, if youdont want the last field in your payload,
Record.fieldFixedLengths -- 0,0
Record.fixedLengthTooShortHandling --Cut
Regards,
Leela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thnx
But this is not working.
Actually I am having a csv file whose end is specified by EOF.None of the columns are of fixed lengths . I have used only fieldseperatot and end seperator.
If in this case it works then plz. tell me how to use the content conversions given above and also where can I get the list of content convrsions?
Hi,
Try this :
Record.lastFieldsOptional : NO
Pls refer: http://help.sap.com/saphelp_nw04/helpdata/EN/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Abid
Singh,
Create one more structure in the end of your target message type with 1..1 occurence and keep one field. Map it with constant EOF. Let the mapping so far you have done write the file and in the end it will put EOF.
If you want output as:
1234567890
EOF
Where 1234567890 are written by your mapping and EOF is with your new structure, add this parameters of the new structure in the content conversino receiver adapter.
If you want output as:
1234567890EOF
If you want EOF after your original data then for the new structure you create put .beginSeparator as backspace. Its value is '0x08' so that control will go up to the line and then print EOF.
Regards,
---Satish
hi Try with this.NameA.enclosureSignEnd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is just an idea. i guess u can handle tht into mapping.
example:
<root>
<details>
<name>fc</name>
<id>34</id>
</details>
</root>
this structure u need to generate out of ur csv file. then u at the end in name column u can put EOF.
and in mapping check for EOF value. if it exist then don't generate target node.
Regards,
Manisha
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.