on 03-31-2008 3:40 PM
Experts,
I'm using File Upload UI element to upload my excel files.
when I convert the xstring to string I could read only "?#".
Can anyone help me out ??
I used below code to conert xstring to string.
Convert XString to String
CALL METHOD cl_abap_conv_in_ce=>create
EXPORTING
input = item_filecontent
encoding = 'UTF-8'
replacement = '?'
ignore_cerr = abap_true
RECEIVING
conv = loc_conv.
*Read the file contents
TRY.
CALL METHOD loc_conv->read
IMPORTING
data = data_string.
CATCH cx_sy_conversion_codepage.
Thanks,
Suba
hi suba ram.....
it happens when you give it directly as an excel... but when you give it as a tab delimited text file, it works fine.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.