Skip to Content
Former Member
Jan 29, 2010 at 04:56 PM

Problem with trailing spaces in fixed width layout file



We are writing a fixed width layout file using the standard Transfer command in ABAP and we are seeing a problem - when the last field ( character data type ) of the record is blank ( has an initial value ) - the whole layout of the record gets shortened as if the last field value does not exist - this upsets the layout of the fixed width file - and the receiving application that interprets this file - has an issue..

What we do expect is that - the spaces equivalent to the character field length of the last field - gets written as trailing spaces in the record and thus the fixed width layout is maintained.

Seems to be a basic issue - are we missing something here ? Any extra add-ons to the transfer statement to be specified to avoid this issue ?