on 07-23-2007 10:14 AM
hy guys,
I have a log file and want to convert it into xml. that works fine.
the problem is: can I skip some fields that I do not need in the xml with file content conversion
the fields I want to skip are the same in every record of the log file.
thanks.
Ralf,
You can only ignore lines in the begiining of the file using Document Offset option.
If you have the unwanted field in the end of the record and you are in SPS12 (PI 7.0), you can use the option additionalLasstFields in FCC parameters. have a look into the blog /people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
Easier, is to ignore those fields in mapping.
Also, you can try to remove those fields using a shell script which can be called from the File adapter.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
yes, you can
ignore defining the parameters for those fields
regards
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
what do you mean by ignoring parameters?
i have recordset structure: R,* and R.fieldNames: ACCOUNT,ACCWERT,UNWANTED,DATE
fieldSeparator is: ; and endSeparator: 'nl' (nothing more)
'UNWANTED' should not be in the xml. but if i leave it away in fieldNames it's wrongly interpreted, isn't it?
Ralf,
During content conversion its not possible to skip fields which u don't want.You can ignore particular row , but not particular field. In comm.channel u can see the optio Document.offset if you give 1 then the first line from input will not be considered for content conversion.
Best regards,
raj.
you cant ignore fields, but you can ignore nodes.
use - NameA.fixedLengthTooShortHandling and Cut option ref: http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Else in case you want to ignore the fields, then handle it in the mapping by not mapping them to the target message.
Hi Ralf
>><i>can I skip some fields that I do not need in the xml with file content conversion</i>
Yes you can skip the fields.
Regards,
Ramesh P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.