cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload chinese word in the R/3 with fileupload element?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi, experts,

It is ok. I changed my code. The chinese word is transfered the R/3 system.

Thanks.

Best regards,

tao

loren_schmidt
Participant
0 Kudos

can you explain what you did?