2005 Dec 22 2:05 PM
Hi,
i use the function gui_dowload to download an internal table into a pc file
in my table there is a text field with sometimes the character '#'. when this character is in the description
we have a carriege return in the file, but it happens only in one machine (quality) and not in developpment..
very strange ??
has someone got an idea please ??
thanks in advance
Hi
Before you download using gui_download , pass the data through this FM SSM_REPLACE_CHAR_BY_HEX_VALUE
. It will solve the problem.
Regards
Kalpana
2005 Dec 22 2:20 PM
Hi,
i think, there must be different operating systems
and/or different code pages.
-> so experiment a very little with abap command:
translate wa to code page <b>TCP00</b>-CPCODEPAGE.(look f1)
Andreas
2005 Dec 22 3:28 PM
Hi
Before you download using gui_download , pass the data through this FM SSM_REPLACE_CHAR_BY_HEX_VALUE
. It will solve the problem.
Regards
Kalpana
2005 Dec 22 3:51 PM
Hey Jean,
I got your Point, Please check the FM Used in the Development System & Quality System also There might be some chances like while sending the Patches somebody might have changed the Parameters, if you were using the Exporting Parameters like File Type(Exporting paramter0 as 'ASC' and the write_field_sepeartor is equal to space. then it will be Padded with '#' While Downloading. When ever you are the File Type(Exporting Parameter) as 'ASC', you should see the Write_field_seperator(Exporting Parameter) is equal to '#'.
Please let me know, If you were not able to solve this, I will give you another solution, Which really Helps you a lot.
Thanks,
Satya Krishna.M
2005 Dec 22 4:39 PM
Hi,
Pass the following
v_filtyp = 'ASC'.
v_separator = cl_abap_char_utilities=>horizontal_tab.
call function 'GUI_UPLOAD'
EXPORTING
filename = File name
filetype = v_filtyp
has_field_separator = v_separator
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
Thanks
Rajeev
2005 Dec 23 6:36 AM
Hi Jean,
1. finally what u want the output to be in text file.
Should the output be with carriage return
as :
THIS IS LINE1
AND THIS IS LINE 2.
2 OR (without carriage return)
THIS IS LINE1 AND THIS IS LINE 2.
regards,
amit m.
2005 Dec 23 8:35 AM
Thanks to all for your informations
we have two operating systems and it works fine with one of them and not fine with the other, so our administrator will check the parameters of the second operating systems to see the difference..
in parallel, i will try to implement abap corrections..
2010 Mar 12 2:27 PM
2010 Mar 13 10:57 AM
there is no any problem
just drag the excel sheet column and incresed the lenghth of it it automatically sort ur problem
Edited by: pranay panchbhai on Mar 13, 2010 4:28 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |