Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Thanks.

Mithun

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

You may need to look into CONCATENATE with RESPECTING BLANKS syntax

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

You may need to look into CONCATENATE with RESPECTING BLANKS syntax

Former Member
0 Kudos

Thanks.

Mithun