You could try replacing TRANSFER statement with this.
DATA lv_str TYPE string.
lv_str = mydata.
CONDENSE lv_str.
TRANSFER lv_str TO myfilename.
You could try replacing TRANSFER statement with this.
DATA lv_str TYPE string.
lv_str = mydata.
CONDENSE lv_str.
TRANSFER lv_str TO myfilename.