10-08-2008 2:28 AM
Dear All,
I'm about to upload text file into SAP using the FM 'GUI_UPLOAD'.
Previously I've developed a test program to upload the same file in SAP v4.7
and it returns correctly into several lines as expected.
Snippet:
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_filename
filetype = 'ASC'
has_field_separator = ' '
header_length = 0
read_by_line = 'X'
TABLES
data_tab = gt_tabfile
As we can see, the 'read_by_line' parameter is already 'X'. gt_tabfile only consist of 1 string column.
But as I run the same code using the same parameter and file in SAP v4.6C
it returned only 1 line of very long string instead of the correct lines resulted in 4.7.
Is there anything to do with codepage (4.6 is English 1100, I forgot the codepage in 4.7 but i believe it's the same due to language selection is EN). Or anything to do with OSS Note?
Kindly help me to resolve the issue.
Appreciate it very much
10-08-2008 3:17 AM
hey,
call function 'GUI_UPLOAD'
exporting
filename = filename
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X' "<---use this
Regards,
Midhun Abraham
10-08-2008 3:26 AM
Thank you for trying to help.
Please be noted I've done all the possible value on these parameter
- filetype 'ASC' OR 'BIN'
- has_field_separator ' ' or 'X'
- header_length 0 or 1 which is dont make sense since my file dont have header so must be 0
- read_by_line ' ' of 'X' doesnt work my expectation.
Any other good questions please? How 4.6C and 4.7 above make a different result?