on 03-31-2008 5:35 AM
HI Friends,
Now im working with file upload. I reffered the standard application wdr_test_events. Now i got the contents in My dynpro application.
But the datas consist of numbers only. How can i get my actual data as stored in my file.
Thanks.
Prakasam.
Hi,
Now your data's are in Xstring format.
So you can change it to Xstring format to string Format.
DATA : loc_conv TYPE REF TO cl_abap_conv_in_ce,
data_string TYPE 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.
Now your actual datas are stored in variable data_string.
Thanks.
Edited by: Viji on Mar 31, 2008 6:39 AM
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.