How can fixed length files be sent with OFTP
The Trading Partner receiving the data file runs a Host Application that requires fixed length records
Resolving the problem
Since the records in the target system have a fixed length, it is necessary to:-
- remove Carriage Returns (CR) or Linefeeds (LF) from the data to be sent, since the target system would consider these as regular characters and not as control characters
- make sure that after removing the LFs and CRs the length of the file is a whole-number multiple of the record size that has been agreed with the trading partner and which is configured in your system. This can be values like 80 or 128 characters per record
So for a 80 character record length, the transmitted file length can have sizes such as. 240, 320 bytes, but not 241 or 319.