on 07-14-2008 12:33 PM
hello experts
I have a txt file to txt file scenario.
I would like to know if it is possibleto avoid a specific line in the text file?
for example
I have a files that contains the same architecture:
FILE=S0123123 REPORTS=000
6019, ,024312
6019, ,024313
6019, ,024313
and I would like that the recieving file will contain only:
6019, ,024312
6019, ,024313
6019, ,024313
(to avoid the first line). is it possible to do? how can I avoid the first line
Thanks
Kfir
Hi,
In the FCC specify the Document Offset value as 1.
This will always skip reading the first line from the file.
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>(to avoid the first line). is it possible to do? how can I avoid the first line
Set the Document Offset value as 1.
This will always skip reading the first line from the file.
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If i am not wrong, you just wanted that watever come into your target file , just remove the first line if it is starting with
>> FILE=S0123123 REPORTS=000
You can do this with the file adapter option Run Operating System command After Processing. Write a small shell script and add it there. In the Shell script write the logic to remove first line. or make it commented. Try this.
Else write an UDF to remove the line if it starts from FILE. If program finds the FILE kepword directly go to next line and check if it again contain the keyword if no then append whole string to resultset.
Hope this will help you.
Regards
Aashish Sinha
PS : reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.....
You can do that in the mapping itself.
Don't map the field in target structure that is not required.
No need to handle it at adapter level.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is what I think that I did and I see the error MSG in RWB
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'Item':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified
User | Count |
---|---|
93 | |
10 | |
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.