on 03-30-2014 7:35 PM
Hi expert ,
When I upload file by using binary mode in cg3z tranjection and try to read the file by this bellow code it can not read file and it will give dump
( A character set conversion is not possible.) .but when i upload exact file by using ascii mode i can read this file .
I think may be bold part of coding is any wrong .So can anyone help me what is the exact problem ?
Code:-
OPEN DATASET ofile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
DO.
READ DATASET ofile INTO wa_tab .
IF sy-subrc EQ 0.
APPEND wa_tab TO it_tab .
ELSE .
CLOSE DATASET ofile.
ENDIF.
ENDDO .
close DATASET ofile .
Thanks & Regards
Rajesh
Hello Rajesh,
I suggest you to firstly conver the binary file to UTF-8 format and then upload it into system if your
system is unicode.Pls aslo refer to the note 752835 and 747615.
Regards
Jie Bai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
if your system is unicode or not, that should be a basic thing you have to know. Your a developer!
Work through the suggested notes and if you are facing again problems, you come back again and ask for further support. There is a lot of discussions here, what you can do to get your question answered.
IT is also the wrong space, this space is the correct one for questions like that.
~Florian
PS: Read through the ROE. 3rd and 4th point right here
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.