Dear Experts,
I have a scenario where PI (7.1) has to pick file from a FTP server and also IDoc data should write on File using FCC in both cases. However the incoming file (fixed lengths) will be in following format without any end-separator, so I would like to know whether the FCC will work for this requirement or not...
usually file with End-separator looks like below...
002 123 2345BBB C
003 231 ADD2213 E
However, in my case the file comes contentiously without any End-separator...
002 123 2345BBB C003 231 ADD2213 E
In the same way, we have to write the file in another interface (IDoc to File) without any End-separator using Append functionality...
Could you please check and give me some idea on this requirement?
Thanks-
Rams
Request clarification before answering.
Hi rams,
As there is no end separator you can read the whole file in single line and use UDF in mapping to split it.
Regards
GB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
read each line into separate string.. follow Greg's suggestion in the below thread for FCC.
For splitting the string based on fixed length go through below discussion which has lot of suggestions.
splitting string in java into fixed length chunks - Stack Overflow
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.