Hello Friends.
I am trying to do is to download data in a file from a BAPI
structure and make a flat file with this format and
then try to upload the same data in different client
via LSMW.
What happens is that I get the download of the file
contents but the spacing of the characters have
shifted and so when I run the same file in LSMW the
values of the fields do not appear consistent.
Ours is a unicode system ecc 6.0 and when i go in
debugger I see the values in consistent format but
when it comes to download it changes .
kindly please suggest something.
I also tried to write the file directly with open
dataset for output but in that also I get an error
regarding encoding.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = i_file
filetype = 'ASC'
append = ' '
write_field_separator = ' '
header = '00'
trunc_trailing_blanks = ' '
write_lf = 'X'
TABLES
data_tab = i_data_tab
I use the most standard settings.
Kindly suggest how can I get the required output.
Thanks in advance.
Regards,
Sohail