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

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,
It is ok. I changed my code. The chinese word is transfered the R/3 system.
Thanks.
Best regards,
tao

Similar Messages

  • How to upload data in the pdf file to the R/3 with fileupload element ?....

    Hi Experts,
    I need to upload the data in the pdf file to the R/3 with fileupload element.
    But I am not able to get the correct data(it is confusion code) in the pdf file when I debug the programe. However, I am able to get the data if the data is in the txt or excel file.
    Do you give some hint for this problem ?
    Thanks & Regards,
    Tao

    Hi, experts,
    The version of R/3 : ABAP: 10, BASIS:11.
    Best regards,
    tao

  • How to send really Chinese word, not the string "&# number " to web browser

    Each Chinese word on page sending to web browser is translated to a string in form "&#<number>" by default, it's a problem when Chinese word is included in url. How to specify sending really Chinese word, not the string "&#<number>" to web browser?

    Thanks that seems to make much more sense, still having some troubles though.
    Ok so now the majority of it seems to be working and it seems to be sending the String just fine. And I'm having it send the String to the BufferedWriter "out" and then using the newLine() method to send a carriage return but the BufferedReader on "in" seems to not detect the carriage return.
    I have it doing a readLine() so that (as I understand it) it should be blocking, waiting until an end of line character so I assume each call of newLine() should have it pick up something but a quick breakpoint shows that it never stops blocking on readLine().
    I assume the connection is fine because the application running as server uses the socket object returned by the accept() method.
    Is there something I've perhaps misunderstood about the BufferedReader's readLine() method?
    Here's the new version of my netbeans project:
    http://rapidshare.com/files/371224512/KerazehDood.rar
    Also on a different line of questioning, I'm just wondering about socket convention.
    I was thinking it'd be useful in a game similar to what I'm attempting to make to not only send player position information but also client keypress information, I was just wondering, if you're doing something like that would it be frowned upon to use two separate ports? I think it would make the implementation far more legible and easy to structure but wasn't sure if applications usually try to stick to only one port or not.
    Thanks.
    Edited by: ThePermster on Apr 2, 2010 10:54 AM

  • How to upload a Word doc from MacBook to iCloud?

    How to upload a Word doc from MacBook to iCloud?

    Just going to throw in again: iCloud is to keep's Apple's products on Apple's devices synced up between multiple devices. It isn't for sharing. It isn't for storage.
    iCloud is the Apple-branded cloud (see the "i"). It isn't meant to be a completely free-of-charge realization of the future that all the tech people keep calling "the cloud."
    It adds a lot of very nice functionality to Apple's own products, yet people are screaming their heads off about not getting free disk space and free bandwidth to use for whatever they want online. Apple added functionality, but tons of people seem to think they took away functionality. These things were never promised with iCloud.

  • Can i use chinese words in the iphoto ?

    can i use chinese words in the iphoto ?

    Yes.  The usual Chinese keyboard can be accessed from within iPhoto.

  • How to make Excel, Word, Powerpoint the Default programs?

    Hey guys,
    Just got my new MBP, and I need to know how to make Excel, Word, Powerpoint the default programs when opening one of their files? Currently, the trial version of Iwork opens the programs which drives me crazy.....
    So, for example, for an Excel file, I want Excel to open it, NOT Numbers......etc....
    Thanks In advance.
    JW

    Select a file of that type in the Finder, choose Get Info from the File menu, change the Open With entry for it to the desired application, click on Change All, and confirm the action.
    (47808)

  • When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    I don't use OpenOffice (I have it on my internal just to play around with, but seldom even open it). I do use MS Word and have few problems sharing files - it's usually a font issue so I tend to use MS fonts for documents that I know will need to be shared.
    Unless you need to make collaborative changed to the document, you could always save it as a pdf file. With Acrobat Pro you can even save a pdf file to a Word document with very little change in formatting.
    If I were you - and you have a need for .doc or .docx files to travel and play nicely - I'd just invest in MS Office. If you don't have to send a Word file, try pdf.
    Clinton

  • How to upload a song from the i phone to itunes match

    how to upload a song from the i phone to itunes match

    Hi Chandrapp,
    Welcome to the Apple Support Communities! I understand that you want to upload a song from your iPhone to iTunes Match. Local songs on your iPhone will not be uploaded to iCloud, you will need to transfer that song into your iTunes Library on your computer and upload it to the iCloud from there. The information can be found in the following article.
    iTunes Store: Subscribing to iTunes Match
    http://support.apple.com/kb/ht4914
    When you subscribe to iTunes Match from an iOS device, your local tracks will not be matched or uploaded to iCloud. You will need to sign in with your Apple ID from a computer in order to match and upload your local music library.
    Hope this helps, 
    -Joe

  • How can I enable the chinese subtilte in the rented movie with Chinese subtitle.

    How can I enable the chinese subtitle in the rented movie with Chinese subtitle. Like "50 First Dates" in Hongkong Store.

    You can do it with a trackpad but I am not sure about the mouse.  Take a look at his link, http://support.apple.com/kb/HT4288

  • How do you add words to the dictionary on the galaxy lll?

    how do you add words to the dictionary on the galaxy lll?

    Type in the word as you see fit, then press it in the list of options above the keyboard. It may save it on the first press, or it may ask you to press the word a second time to save it.

  • How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy

    How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy?
    It is very cumbersome to "re browse" for audio files/pics/movie clips to add to menu screens. Certainly there is a way to view the media and menu screen at the same time so I can drag and drop?

    Jayhawk
    I think I know exactly what you are seeking and believe it cannot be done in Premiere Elements 11, 12, and 13 as it can be done in versions earlier than 11 where the Disc Layout and Project Media are viewed side by side.
    Premiere Elements 13 uses a Movie Menu customization workspace which is not allowing viewing of Project Assets in the Expert workspace at the same time.
    ATR

  • I am a new iPad Air user. How do I get back to the home page with all the icons.

    I Am a new user. How do I get back to the home page with all the icons.

    iPad Manual
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • Firefox does not know how to open this address because the protocol (Sims3) with any program connects

    Firefox does not know how to open this address because the protocol (Sims3) with any program connects
    can you help me plz

    Was the message sent from Microsoft Outlook? When you embed an image in a message in Outlook (at least up to version 2003), it creates a hidden attachment for the image and then inserts a "cid" reference to it. If the attachment gets stripped for any reason then the "cid" reference is useless: Outlook does not store the original URL or path to the image.
    Edit: By the way, which webmail site has this problem?

  • How long will power last on the iphone 5s with 4g and 3g and 2g?

    How long will power last on the iphone 5s with 4g and 3g and 2g?

    I don't think anybody would know the answer to your question.
    Nobody here knows how you use your phone.
    to answer your question test it out yourself.

  • How to upload a word/excel doc for z table and view ltr

    Hi to all,
    I have a requirement to upload word/excel or ppt files from pc, so that i can store them in table with some other values. These files will be used by number of users to view or download.
    Please guide me how to upload the files and store the file deatils in z table so that users can view the file later.
    I can get a static folder to store all document in app server.
    Thanks in advance,
    Sanjeev

    hi
    use <b>gui_upload</b> to upload execl , txt ot dat files
    into itab & then append them into ztables which u hav to create.
    i'm not sure of ppt files
    *sample code to upload a text document to app.server
    open dataset v_header for output in text mode encoding default.
        if sy-subrc <> 0.
          message i000 with 'ERROR OPENING FILE'.
        endif.
        loop at gt_changed_pohd.
          transfer gt_changed_pohd to v_header.
        endloop.
      close dataset v_header.
    ****sample gui_upload to upload tab seperated text file
    ***to upload dat files use the seperator '|' instead ****of 'X' in the foll.
    call function 'GUI_UPLOAD'
          exporting
            filename                      = v_file
           filetype                      = p_type
           has_field_separator           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
          tables
            data_tab                      = gt_data
         exceptions
           file_open_error               = 1
           file_read_error               = 2
           no_batch                      = 3
           gui_refuse_filetransfer       = 4
           invalid_type                  = 5
           no_authority                  = 6
           unknown_error                 = 7
           bad_data_format               = 8
           header_not_allowed            = 9
           separator_not_allowed         = 10
           header_too_long               = 11
           unknown_dp_error              = 12
           access_denied                 = 13
           dp_out_of_memory              = 14
           disk_full                     = 15
           dp_timeout                    = 16
           others                        = 17

Maybe you are looking for

  • Trouble installing Photoshop CC

    I just subscribed to CC and am having trouble downloading Photoshop. It says that my current version (CS5) is open and I need to close it before finalizing the install. However, IT IS NOT OPEN! I have tried restarting the computer and that doesn't he

  • Opening folder Crashes Finder...Help

    Hi, Certain random folders on my system cannot be opened I double clicked the folder to open it and it seemed to freeze my mac finder and cleared my desk top for a couple of seconds but the folder still did not open. Only a finder window opened showi

  • HT1535 so I've done all that and I still can't add a playlist I've created in iTunes to the iPod...?

    I've followed the instructions to tell the iPod that I want to manage music and video manually, but I still can't add a playlist I've created in iTunes to the iPod...

  • Folio producer tools

    I have a standard acrobat accout and have been adding to a single folio which is now at a fair size and I could do with re-ordering and changing some scrolling/ swiping actions. But am unable to change the folio at dp.acrobat because my account is no

  • BAM Host /Domain Change issue

    HI , I got to re-install my standalone XE DB where BAM is there. Paralelly my domain and machine pwd got changed. Prob here is rest of services are running fine except ADC. I have same port for both XE and db which came along with BAM .i.e 1522 appre