i need to write 10 records each of 80 char size. of these 10 records, each record might have different data and the last field will be a filler field which only has space.
DATA : BEGIN OF gs_mrecord ,
id(1) VALUE'M' ,
refid(2) VALUE 'RR' ,
sec_cd(4) VALUE '2437' ,
sub_typ(1) VALUE '6' ,
sec_cd1(4) VALUE '2437' ,
record_no(6) TYPE n ,
filler_4(4) , fill blank spaces
filler(6) , " fill blank spaces
END OF gs_mrecord .
like this there are 10 types with 80 char size, however the last field is a filler, in which we need to fill only blank spaces.
when i wrtie this data to the application server file i can't see the spaces and when download(to .TXT file) also i can't see the spaces.
is there anyway that i can keep the spaces at the end of the record.
Please note, in the middle of the record, we can keep the spaces as there is some data after that.
Any hint would be of great help.