Skip to Content
Former Member
Aug 22, 2008 at 06:38 PM

How to save blank spaces in flat file from internal table?


I have a requirement to create a fixed length flat file with 3 records each 400 characters in length. I have an internal table that maps to each field in the file and everything works fine except when the file gets created it is not saving extra spaces! For example the first record is only 200 characters in length then in the file the carriage return starts immediately after 200th character and goes to the next line. The carriage return should start after 400th character even though after 200 characters there are all spaces. As soos as it sees 200 extra spaces it starts immediately after 200th character! Is there any way I can still have a place holder for 200 spaces?