LSMW: Convertion of special character turn into #

Hi all,
Ich am Ulpoading a file in the step 'READ DATA' in LSMW and when I check the result in the next step 'DISPLAY READ DATA' I see that the upload (i do not know if LSMW make an WS_UPLAOD or GUI_UPLOAD or another function) converts a special character that we use in Portugal
in the file:           Fabricação
in LSMW after Upload:  Fabrica##o
The file was an Excel which I saved as txt (tab delimited)
Who can help??????
Thanks
Picasso

Hi Picasso,
LSMW is having 'GUI_UPLOAD' function module to upload data.
GUI_UPLOAD FM is having import parameter CODEPAGE.Whose functinality is to take care of such special character.
Include which is called for READ DATA step, you can very wel find out that the codepage is not suitable for your Portuguese language.
Do one thing write an BDC...Call GUI_UPLOAD FM and then Pass CODEPAGE number.
codepage number you will get from  tcp00 table.
here is example to take care of special Japanese character:
CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = l_ws_path
      filetype                = 'ASC'
      has_field_separator     = '#'
      codepage                = '6300'
    TABLES
      data_tab                = i_aenr
    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.

Similar Messages

  • Why is a special character  inserted into my drafts?

    After I save a draft, and then return later to finish it.... I frequently (more times than not) find that Thunderbird has inserted a ton of  characters in the email, all over. Usually at the end of every sentence. Often the are 3 in a row, with spaces between:   Â
    My Character Encoding, inbound and outbound: Weatern ISO-8859-1
    Any thoughts? Thank you kindly.

    I've been having the same problem recently. Checked the character encoding and it was set for utf-8. After several tests, I found that setting incoming and outgoing encoding to Western ISO-8850-1 solved the problem.

  • Special Character to convert to Space

    I have a field in BI "zpustreg" which has values with - and # which is not allowing me to load the data to cube so I am writing this code in transformation to convert any special character to space. but it is having error if you can help me fix the code below would really appreciate it
    Abap Code to Load ZPUSTREG
    METHOD compute_ZPUSTREG.
    IMPORTING
    request type rsrequest
    datapackid type rsdatapid
    SOURCE_FIELDS-/BIC/ZPUSTREG TYPE /BIC/OIZCUSTREG
    EXPORTING
    RESULT type tys_TG_1-/BIC/ZPUSTREG
    DATA:
    MONITOR_REC TYPE rsmonitor.
    $$ begin of routine - insert your code only below this line -
    ... "insert your code here
    *DATA:Monitor_REC TYPE rsmonitor.
    DATA:L_D_OFFSET LIKE sy-index.
    CONSTANTS:c_allowed(60) TYPE c.
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    RESULT = SOURCE_FIELDS-/BIC/ZPUSTREG
    TRANSLATE RESULT TO UPPER CASE
    DO 60 TIMES.
    L_d_offset = sy-index – 1.
    IF RESULT+1_offset(1) CO c_allowed.
    Else.
    RESULT+1_d_offset(1) = ` ’.
    ENDIF.
    ENDDO.
    ENDMETHOD.
    E:Statement "VALUE" is not defined. Check your spelling. spelling.
    E:Unable to interpret "C". Possible causes of error: Incorrect spelling
    Thanks
    Soniya

    Also, you'll need to change in this line:
    RESULT+1_d_offset(1) = ` ’.
    the ` for a  ’
    Have you maintained the RSKC transaction? If you put ALL_CAPITAL there it should allow you to use those characters.
    Regards,
    Diego

  • Looking for a name with special character

    Hi Gurus,
    In our HR system we use multiple language (eg: polish, french, german, english, finns, ...).  All those languages have some specific characters, like german with ß.
    When we use the search help to looking for someone, it seems that only people who have the special character on their keyboard can find directly the correct name.
    For example :
    If I use a german keyboard I can found an employe by completed the correct last name wich contain eg ß .
    if I don t use a german keyboard I have to put a * where the specific characters is.
    I would like to know if somehow it were possible to customize the system in order to do not need to enter a * but the correspondant singular letter.  Is there any function for converting a special character to a singular one to activated ?
    Thank you for all your help
    Best regards
    Hadrien

    indexOf() is used to find where a character or substring appears in a
    given string. What you probably need is charAt() which finds out which
    character is at a given position. Like this:private JTextField reportNameText;
    // something needs to be put in the text field here
    String reportName = reportNameText.getText();
    if(reportName.charAt(0) == ' ') {
            // printing a space isn't a lot of good...
        //System.out.println("first character is"+reportName.indexOf(0));
        System.out.println("first character is a space");
        JOptionPane.showMessageDialog(null,"Report Name should not start with Space", "", JOptionPane.PLAIN_MESSAGE);
    }An even better condition might beif(Character.isWhitespace(reportName.charAt(0))) {This checks for other sorts of space.
    The String methods are described here:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html

  • Problem in Smartform convert to PDF with special character

    Hi ABAP Guru,
    While convert smartforms to pdf.Some special character like ( - ) convert to ( # ).In development server there is no problem but the problem arise in quality.Please help

    Hi Palash,
                  Please use PDF! in print preview command field.. it will convert pdf file.
    regards,
           Thangam.P

  • Insertion of a special Character into a table

    Hi all,
    I came across a non keyboard character in an Oracle table (9i) and when i queried the table column with the following query
    Code:
    SELECT asciistr(col1) from test1;
    I got the output as
    \FFFD
    \02DC
    How could i insert the same character in my Oracle environment using the ascii code of the characters viz., \FFFD , \02DC
    I tried inserting with the followin insert query,
    INSERT INTO TEST1 VALUES ('\FFFD');
    INSERT INTO TEST1 VALUES ('\\02DC');
    but it inserted the above ascii codes as a character string rather than the special character.
    Kindly advice on how to insert the special character using their ascii codes.
    Please note that my Oracle version is 9i and its character set is WE8ISO8859P1.

    Just not possible. Whatever I tried I never could get back what I inserted:
    C:\temp>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    C:\temp>sqlplus user/passwd@dev
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon May 14 16:42:53 2007
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> @afiedt.buf
    SQL> SET NUMWIDTH 10
    SQL> COLUMN a format a30
    SQL> COLUMN a1 format 99999
    SQL> COLUMN a2 format a10
    SQL> COLUMN parameter format a15
    SQL> COLUMN value format a20
    SQL>
    SQL> SELECT * FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER IN ('NLS_CHARACTERSET
    ','NLS_TERRITORY','NLS_LANGUAGE')
      2  /
    PARAMETER        VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY    AMERICA
    NLS_CHARACTERSET WE8MSWIN1252
    SQL>
    SQL> ALTER SESSION SET NLS_LANGUAGE=american
      2  /
    Session altered.
    SQL> ALTER SESSION SET NLS_TERRITORY=america
      2  /
    Session altered.
    SQL>
    SQL> INSERT INTO t VALUES (UNISTR ('\FFFD'))
      2  /
    1 row created.
    SQL>
    SQL> SELECT DUMP (a) a, ASCII (a) a1, ASCIISTR (a) a2 FROM t
      2  /
    A                                  A1 A2
    Typ=1 Len=1: 191                  191 \00BFI think it is just not possible ...
    Regards,
    Michael

  • How do I open my old Appleworks documents which have turned into Unix Executable Files?  I would like to convert them into Pages documents.

    How do I open my old Appleworks documents which have turned into Unix Executable Files?  I would like to convert them into Pages documents.  I also have old Word Perfect documents which have become similarly unopenable.

    Best bet might be to try opening them using LibreOffice [free] and save them to .doc.
    Do you really want to save them as .pages files? You are jumping from the frypan into the fire. Yet another proprietary format that Apple has again deadended with no working translation.
    Peter

  • Special character not being converted to upper case

    Hi all,
    I have an issue with special characters and upper/lower case.
    The character "ü" is in one of the values of an InfoObject and when loading we get an error message for this value. The character "Ü" is in RSKC, but still we are getting an error when loading.
    We are converting the values to upper case in the transfer rules, but this special character is not being converted to upper case...
    We start with the value "Heüringen" and after conversion we have the value "HEüRINGEN" where we want to have "HEÜRINGEN".
    Do you have any idea why this characer is not being converted?
    Any ideas are welcome!
    Best regards,
    TMV

    Hi Praveen,
    What does this module actually do? What kind of characters will the special chars be replaced with?
    Br,
    TMV

  • How to convert character string into ascii format correctly

    dear all
    I'm using encryption technique in my application(oracle formas 6i). character stream convert to the ascii format and add some numeric value and again convert to the character format
    >>>>
    here I'm using ASCII and CHR functions.
    >>>>
    .net program also using same algorithm to encrypt this password.....finally both the character strings are not equel.(This happens if the character string's ascii value greater than 127. otherwise both are equel).
    pls give me a solution for this
    thanks and regards
    buddhike

    hir dear
    do u want to encrypt & dcrypt your password.which version of oracle you are using
    first store these procedure in Oracle Databases: dbms_obfuscation_toolkit, dbms_crypto, Transparent Data Encryption
    now u can use these procedure to encrypt & dcrypt your password
    if you any query about those procedures you can ask me
    best regard
    amk

  • Can i add a special character i.e. arrows into a movie clip?

    in imovie under edit it says special characters..i want to add some arrows to a video but not sure if  can..anyone know? thanks

    you could 'abuse' a special character as ➔ ↪ ➪ ☞ to create a 'pointer' although iM has no free positionable 'Text' feature.
    it's much easier to use the 'transparent png'-method discribed here, incl. some free pointers (and circles)  in many colors:
    https://sites.google.com/site/karstenschluter/imovie09tricks/how-to-add-a-pointe r

  • Special Character error in IDOC

    All,
    I am trying to upload PO data using IDOC type "PORDCR1" from LSMW. All is well till I convert data. We have some speical characters in short text field at item level and even when I convert the data and display it from LSMW it looks fine, but when I processing idoc it's erroring out meaning if I have special character "Á" in IDOC during processing it's getting converted to "Á#" and it's screwing up the positions.
    What I am not able to understand is when I am displaying the converted data in segment mode in LSMW it's getting displayed perfectly without extra "#", but when I am checking errored idoc from WE05 it has this new #. Did anyone come across this issue?
    Your help will be greatly appreciated. Thanks for your time.

    Ok, the issue was with LSMW port (which was not marked as UNICODE) and because of which it's not translating special characters....

  • Problem with CONVERT_OTF, special character '-' printing not properly

    Hi experts,
    when printing PO item text; in Print Preview, text displays correctly. But in program by using 'CONVERT_OTF' FM output is converting into PDF and this PDF is send it to the PO creator through mail,   In the PDF present in the mail, the special character ' - ' is not displaying properly; i.e the special character ' - ' is replaced by '  ' space. For the text we are using Text editor and Font family is 'COURIER' , device type is 'PDF'.   And also i tried with different Font fammilies, for that it beheaves differently but not displays as it is the special character ' - '.
    Thanks and regards
    Aumprakasharya T

    Hi,
    Which device type is used to create the PDF? i.e. which deivce type is used in the OTF data that is converted to PDF? If you use device type PDFUC or SWINCF, then it should work fine. (see SAP not #999712 about unicode PDF conversion)
    Regards,
    Aidan

  • Cyrllic characters getting converted to special characters.

    I am facing a problem when cyrillic character is being sent from JSP to servlet ,its getting converted into some other special character.I am using request.setCharacterEncoding("UTF-8") on servlet.And on jsp I am using <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>.I am facing this problem both in JBoss and Websphere application server.
    Please help me in solving this problem.

    How do you send the characters - using POST?
    I have tried both ie get and post.....
    Can you post the code in your servlet that you use to retrieve and display the Cyrillic characters in question?
    Just using request.getParameter() to get the value...It is showing question marks ie ??????
    And finally, can you post an example of a Cyrillic string and the corresponding incorrect string you see in the servlet?
    Can post cyrllic characters here...:-) But I am giving normal characters only...
    It started working in websphere when I changed the jvm settiings ie I gave encoding scheme to jvm also.But still it is not working for JBoss4.0.2.
    Any help will be highly appreciated.

  • Converting some special characters NON ASCI to ASCI

    HI Gurus,
    My Users copied some text from some other file and pasted in SAP in Infotype hrp1000 in a Text field. In the frontend of the SAP screen , the text looks good as English text.
    My program is retrieving that text and sending to AL11. If i open and see the file in AL11, the text looks like 'E'#$% ' some thing like this having some cap symbols on the top of the each character( we cannot type those symbols from my PC).
    I developed a program to cleanup my file from NON ASCII to ASCII by using methods in class CL_ABAP_CONV_IN_CE->create,but it is failing to convert into ASCII. If it is not possible to convert that special symbols, atleast i have to remove it from the file ..
    Please help me with solution.
    Thanks,
    Regards,
    Akila

    HI,
       Foound this code... Try this....
    Data: Begin of w_char,
                Ascii type x,
          End of w_char.
    Move 'A' to w_char.
    Write :/ w_char-Ascii.
    Move 66 to w_char-Ascii.
    Write :/ w_char.
    Regards
    GK.

  • Special character occuring in email while sending mail

    this is part of my code for sending email:
    utl_smtp.open_data(l_conn);
    utl_smtp.write_data(l_conn, l_header);
    l_encoded_subject := REPLACE(utl_raw.cast_to_varchar2(utl_encode.quoted_printable_encode(utl_raw.cast_to_raw(l_subject))),'=' || CHR(13) || CHR(10), '');
    utl_smtp.write_data(l_conn, 'Subject: =?UTF-8?Q?' || l_encoded_subject ||'?=' || utl_tcp.crlf);
    utl_smtp.write_data(l_conn, 'MIME-version: 1.0' || utl_tcp.crlf);
    utl_smtp.write_data(l_conn, 'Content-Type: text/html; charset=utf-8' || utl_tcp.crlf);
    utl_smtp.write_data(l_conn, 'Content-Transfer-Encoding: 8bit' || utl_tcp.crlf);
    utl_smtp.write_raw_data(l_conn, utl_raw.cast_to_raw(utl_tcp.crlf || l_email_body || utl_tcp.crlf));
    its working fine BUT....
    email_body contains '&lang' .....
    and when email is sent to lotus notes, it gets converted to some special character whereas its coming fine when i send to gmail..
    please help me fix this...

    sounds like Lotus parsing the html differently, can you try the solution mentioned in here:
    http://bytes.com/topic/javascript/answers/91323-opera-turning-my-lang-into

Maybe you are looking for

  • How do i turn off Mobile Me sync? It paralyzes my machine!

    I no longer have my MobileMe account, but the MobileMe sync icon is still at the top right of my screen and periodically tries to identify sync conflicts (it says there are 24) and then totally slows down my machine to a crawl and the spinning wheel

  • An operation has more than one setup activity-error message

    Hi All, I have a queue which is failing and giving error message "An operation has more than one setup activity". I have  debugged it but of no use. In SAP R3 planned order data is created and is being sent to APO system through a CIF interface in qu

  • How to get the parent name in the hierarchy

    Hi Colleagues. Im working on with java webdynpro by showing hierarchical data. When I select a leaf item, I should get the possible parent items. For Ex: A B C      | D When I select D, I need to get the information as A-B-C-D. How can I acheive this

  • How to check is my SATA Hard Drive in AHCI Mode?

    Hey all. I'm trying to install Mac OS X (iPC distro), but it can't be done cause it always returns an error: Still missing root device. I've read that my Hard Disk must be set on AHCI mode, but I don't have an idea how to check is it set correctly or

  • Parallel valuation area in CFM

    HI FSCM Gurus, Can anyone tell me what all settings are required activate the Parallel Valuation area in CFM. Thanx in advance... Useful answers would be definitely rewarded. Cheers Megha