on 01-09-2008 4:53 AM
HI, experts,
I am working with a File Upload Web Dynpro Application. And i am using the File Upload UI Element to upload data to R/3, every thing works fine if i upload the file that content is English word. I have 2 questions :
(1)But it give me dump. Stat 'A character set conversion is not possible' if I try to upload the file that content is Chinese word.
(2) But it give me dump. Stat 'A character set conversion is not possible' if I try to upload a pdf file that content is English word.
The code is:
method ONACTIONON_UPLOAD .
DATA XCONTENT TYPE XSTRING.
DATA: CONTENT TYPE STRING .
DATA: MIME_1 TYPE STRING .
DATA: NAME TYPE STRING .
DATA:
ROWS TYPE STANDARD TABLE OF STRING ,
WA_ROWS(300) TYPE C .
DATA: CONV TYPE REF TO CL_ABAP_CONV_IN_CE.
DATA: INPUT TYPE REF TO IF_WD_CONTEXT_NODE.
INPUT = WD_CONTEXT->GET_CHILD_NODE( 'INPUT' ).
INPUT->GET_ATTRIBUTE( EXPORTING NAME = 'UPLOAD' IMPORTING VALUE = XCONTENT ).
INPUT->GET_ATTRIBUTE( EXPORTING NAME = 'FILENAME' IMPORTING VALUE = NAME ).
INPUT->GET_ATTRIBUTE( EXPORTING NAME = 'MIMETYPE' IMPORTING VALUE = MIME_1 ).
CONV = CL_ABAP_CONV_IN_CE=>CREATE( INPUT = XCONTENT ).
CONV->READ( IMPORTING DATA = CONTENT ).
SPLIT CONTENT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE ROWS .
LOOP AT ROWS INTO WA_ROWS .
*******
ENDLOOP.
endmethod.
could you please suggest for uploading Chinese word ?
could you please suggest for uploading English word in the pdf file?
Thanks
Mahesh
Hi, experts,
The version of My R/3 system: abap: 10, BASIS: 11
The Chinese language package of the R/3 is right.
Best regards,
tao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.