Replacement for Underscore - Hexadecimal '1F' in Unicode System

Hi gurus,
Can anyone provide the replacement for hexadecimal value '1F' in a Unicode system? Is there any table available?
Regards,
Lijo Joseph

Hai
Check the following Statements
data v_var1 type x value '1F'.
data v_len(5) type n.
constants:
c_ecc6_tab(1) type c value cl_abap_char_utilities=>horizontal_tab.
constants:
c1(3) type c value 333.
data: begin of itab occurs 0,
line(20) type c,
end of itab.
data: begin of itab1 occurs 0,
line1(20) type c,
line2(20) type c,
line3(20) type c,
end of itab1.
concatenate c1 c_ecc6_tab c1 c_ecc6_tab c1 c_ecc6_tab c1
into itab-line.
concatenate c1 v_var1 c1
into itab-line.
open dataset c1 for input in text mode encoding default.
describe field c1 length v_len in character mode.
do 5 times.
append itab.
enddo.
data xtab1 like itab1.
data v_newvar like itab1-line1.
do 10 times.
itab1-line1 = 'abc'.
itab1-line2 = 'def'.
itab1-line3 = 'ghi'.
append itab1.
clear itab1.
enddo.
v_tabix = sy-tabix.
Thanks & regards
Sreenivasulu P

Similar Messages

  • PDF conversion for chineese characters in Unicode system

    I am facing a problem while converting the SAP Script Output to PDF format for Chinese characters. 
    I am working on ECC (5.0) Unicode system.
    Scenario:
    After saving a Purchase Order an E-mail is sent to the customer - attaching the
    PO output in PDF format.  E-mail was received successfully by the receiver, but while opening the pdf all the chinese characters were displayed in junk characters in the pdf. All the English characters are properly displayed.  I tried to open the pdf file in Acrobat Reader versions 6.0, 7.0, 8.0. but no result.  I used CONVERT_OTF function module for converting the OTF format to PDF format. I tried using the fonts CNSONG also.
    I tried by executing the standard program RSTXPDFT4 for converting to PDF by giving the spool.  In the spool it is showing the Chinese characters perfectly but in the PDF the Chinese characters were were showing as Junk.
    Can you please help and advice to see the Chinese characters in PDF in Unicode systems.
    Thanks in advance.

    >
    Juraj Danko wrote:
    > Hi,
    > I have similar problem than you ... how have you solved it?
    > thanks
    > Juraj
    I found a solution, but I am not sure, if it was for this problem or
    output problem with for example PL in non-unicode systems.
    I created the input for CONVERT_OTF with CALL FUNCTION 'PRINT_TEXT'.
    PRINT_TEXT has to be called with DEVICE = 'PRINTER',
    DEVICE = 'ABAP' uses internally the wrong code page.
    You have also to set otf_options-tdprinter to a valid printer,
    if it is empty, the default printer from user settings is used.
    You can use code example from SAP note 413295.
    Before you call CONVERT_OTF, you can also check entries with 'FC' in OTF input.
    The font (see description of OTF format in SAP help) must be set like described in SAP note 144718.
    /Tibor
    Edited by: Tibor Gerke on Jan 13, 2011 10:29 AM

  • Problem publishing database contents from non-unicode to unicode system

    Hello everyone!
    We just set up a new SAP WAS based on Netweaver 2004 as a unicode system. Out problem now is that we have a content management system on our non-unicode system and that we are publishing the contents via rfc to the WAS unicode system to display the contents online. the contents are stored in our own database tables.
    The problem thereby is that many texts pasted from microsoft word contain special characters like bullets, long minus or low-9 quotation marks which are not correctly displayed in the unicode system / on the website. we already found out that it has something to do with the codepage. the sap notes say we should use 1160 instead of 1100 and that the transaction SPUMG would be helpful. but we are not able to select any tables there.
    so now we do not know what to do exactly. do we have to change something in our non-unicode system or do we have to conversion in our unicode system. and what happends if content containing special microsoft word characters is published after the spumg conversion? do we have to to this frequently?
    We would be glad if anyone could help.
    Thanks a lot!

    Hi Martin,
    thanks for your quick answer.
    You got me right. We have a local non-Unicode SAP HCM Netweaver 2004 system running a self-developed web based content management system / wiki. The texts entered in the bsp application are stored in a string field in our database table. Actually we publish the contents to a WAS 6.20 non-Unicode system with the same database tables to provide the content via BSP for the public. Everything is working fine including the special characters.
    Now we want to replace the WAS 6.20 non-Unicode system by a new WAS 7.0/2004 Unicode system. But when publishing the contents via the same RFC function module to the new system the special characters seem to be damaged. We are not able to replace them with abap commands and when they are displayed on the website we only see "boxes".
    If I get you right we have to run SPUMG on our nw 2004 non-unicode productive hcm system, right? but isn't there a danger to damage existing contents?
    Best regards,
    Stefan

  • Create PDF with CONVERT_OTF in Unicode system

    Hi,
    I try to create a PDF file from OTF input with function module CONVERT_OTF.
    It worked in a non-unicode environment with problems.
    If I use the same coding in a unicode system (6.0) and OTF input
    contains real doublebyte unicode characters like arabian/greek characters,
    the PDF file shows wrong characters like "ÔÑÙàÜÐÕÞÙ Ôâé" instead of
    "רבדל הצור %לועה" or "ЉЊЋЌЎЏАБВГόψχΩΨΧ".
    I enable the developer trace for CONVERT_OTF, but the trace also
    shows the correct unicode characters.
    If I create a PDF file with PDF Creater with the same input on my computer,
    PDF file looks fine. SAP PDF file uses Font enconding 'Windows', PDF Creator
    uses a 'Custom' font encoding.
    Any idea, that's going wrong here?
    I install TrueType fonts like described in SAP note 999712 with no success,
    but this note refers to SAP_BASIS 011, which is not yet available on SAP Marketplace
    (latest is 010 today).
    Is there any other configuration to enable PDF unicode support?
    Print preview from other SAP transactions looks fine with unicode characters.
    thanks for help
    /Tibor

    >
    Juraj Danko wrote:
    > Hi,
    > I have similar problem than you ... how have you solved it?
    > thanks
    > Juraj
    I found a solution, but I am not sure, if it was for this problem or
    output problem with for example PL in non-unicode systems.
    I created the input for CONVERT_OTF with CALL FUNCTION 'PRINT_TEXT'.
    PRINT_TEXT has to be called with DEVICE = 'PRINTER',
    DEVICE = 'ABAP' uses internally the wrong code page.
    You have also to set otf_options-tdprinter to a valid printer,
    if it is empty, the default printer from user settings is used.
    You can use code example from SAP note 413295.
    Before you call CONVERT_OTF, you can also check entries with 'FC' in OTF input.
    The font (see description of OTF format in SAP help) must be set like described in SAP note 144718.
    /Tibor
    Edited by: Tibor Gerke on Jan 13, 2011 10:29 AM

  • Native sql not populating correct data in ECC6.0 unicode system

    Hi,
    I am working in an upgrade upgrade project from 4.6c to ECC6.0.
    4.6c is non-unicode system. ECC6 is Unicode system.
    I am facing Native SQL problem in custom developed programe in ECC6.That means programe reading the data from oracle datbase and stored into internal table.
    But data not stored as normal character format that means its stored as different character format.
    I am suspecting this is due to unicode system. IF that is issue then please provide
    what syntax I have to use for Native SQL statment in unicode system.
    I have provided the code which we are using in programe.
      data:
        i_locn       type table of t_locn,
        v_locn       like line  of i_locn.
      field-symbols:
        <f_005t>        type t_005t.
    Get existing EIS_VIDEO_LOCN_CONV records
      EXEC SQL.
        OPEN C FOR
          SELECT EIS_LOCN
            FROM VIDADMIN.EIS_VIDEO_LOCN_CONV
      ENDEXEC.
      do.
        EXEC SQL.
          FETCH NEXT C
            INTO :V_LOCN-EIS_LOCN
        ENDEXEC.
        if sy-subrc ne 0.
          exit.
        endif.
        append v_locn to i_locn.
      enddo.
      EXEC SQL.
        CLOSE C
      ENDEXEC.
      sort i_locn.
    I am facing the problem in i_locn internal table. Please give me your input to solve this issue.
    - Anandakumar K

    Hi,
    We have resolved this issue with BASIS team help.
    We modified the data charcater set as UTF8  in Oracle data base in unicode system ECC6.0 then the programme returns the
    exact character format
    Regards
    K.Anandakumar

  • Integrating MDMP and Unicode systems with IDoc interfaces

    Hi,
    We are working on integrating SAP R/3 6.20 (MDMP) with SAP PI 7.0  SP10 (Unicode) system.  The source will send MATMAS or CLFMAS IDocs with Thai / Japanese characters and PI should transform and post it to SAP ECC 5.0 Target system [IDoc to IDoc scenario].
    ( SAP R/3 Legacy 620 - Non-Unicode / MDMP ) |---->  ( XI  - Unicode) ->  (ECC - Unicode)
    Had a look at few SAP notes (745030 ,656350 and 613389)  and it looks like there is no standard way/best practice to handle this scenario. 
    References:
    1.PDF of TECHED Session ID: IM101 Dealing with Multi-Language Garbage?Data – Lessons Learned
    2.SAP Note 745030 - MDMP - Unicode Interface_Solution Overview.pdf
    3.MDMP_Unicode_Transfer_final.doc from SAP Note 745030
    4.SAP Note 656350 - Master Data Transfer UNICODE to MDMP Systems with ALE.pdf
    5.SAP Note 613389 - ALE SAP system group with Unicode systems (Solution-2)
    My understanding per SAP Notes: (Please correct me if I'm wrong)
    a. For MDMP integraton we can't use Standard ALE Config instead we have to use Custom Configuration (IDoc collection setting in Partner profile &Scheduling  RSEOUT002/RSEOUT00_MDMP and use Function module :IDOC_INBOUND_ASYNCHRONOUS_2 ).
    b. The RFC Destinations should use proper logon langauage for correct MDMP IDoc transfer (For sending IDocs with Japanese character, the logon language should be JP).
    c. If we want to transfer IDocs in more than one language we need to create multiple Partner profiles/RFC destinations each with specific logon language.
    Please guide us in integrating these systems if you have done a similar integrations, following are my questions:
    1] Is there any configuration change required at PI layer?
    2] Do we need to install codepages in PI Unicode system for all languages used or Unicode system is capable of handling all the languages?
    3] Is it necessary to install any SAP Add-on package in R/3 MDMP system inorder to support MDMP to Unicode data transfer?
    3] If we want to send MATMAS/CLFMAS IDoc with Thai/Japanese characters from same system, what are the changes required at the Source system?
        (Source may send MATMAS/CLFMAS IDoc with either Thai/Japanese characters but not both of them in a single IDoc)
    4] Can we use regualr ALE & Partner profile settings for handling multi-byte characters or we need to use IDoc collection and RSEOUT002/RSEOUT00_MDMP report for transfer?
    5] Is there any restrictions on the IDoc types (MATMAS,CLFMAS etc) supported in MDMP-Unicode integration solution.
    5] Is there any best practice document available for this scenario?
    6] Do we need to involve SAP AG for MDMP to Unicode system integrations(As per SAP Note: 656350) ?
    Thanks and Regards,
    Ananth

    Hi Ananth,
    as you have already mentioned, you need differents RFC destinations for each language. So you have to make sure, that the IDocs use the right destination according to there content.
    If you have messages from PI to MDMP it is the same, you need different channels with different logon languages as well. You need an identifier in the message, that can be used for selecting the correct channel.
    It should not be a restricting to any IDoc type, but it is not possible to post a message with different languages (which require different codepages) in one IDoc.
    For correct conversion from a non unicode system to unicode, the codepages have to be installed in th OS of the PI server.
    Regards
    Stefan

  • Open dataset twice once for input and once for output in unicode system

    Hi All,
    In a program
    I used a open dataset to read the data from the file.
    OPEN DATASET cmp_file FOR INPUT IN TEXT MODE
          ENCODING NON-UNICODE.
    Then i closed the file.
    Again later in the program,
    I used a open dataset to transfer the data.
    OPEN DATASET cmp_file FOR OUTPUT IN TEXT MODE
          ENCODING NON-UNICODE.
    But this time I get sy-subrc = 8.
    Unable to open the file and subsequent TRANSFER is leading to the runtime error.
    Note : I am using a unicode system
    I could run the same program well in non-unicode system..
    ->
    Is it that if a file contains data already
    1.I need to delete the data and open it
    or
    2.I need to open in APPENDING mode manadatorily...
    in case of UNICODE system..
    Kindly suggest..

    Hi,
    IF you have write permission al S.O. Level you need to check your DATASET rigths using AUTHORITY_CHECK_DATASET, this validate your rigths with S_DATASET object.
    Example
    TYPE-POOLS SABC.
    CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
    EXPORTING PROGRAM = 'ZDATASET'
    ACTIVITY = SABC_ACT_READ
    FILENAME = '/tmp/sapv01'
    EXCEPTIONS NO_AUTHORITY = 1
    ACTIVITY_UNKNOWN = 2.
    See SABC type pool to know wich activities are aviable.
    Hope this help.
    Regards

  • CP850_BIN2 for non unicode systems??

    Hi All
    This is possibly a really stupid question and I think I know the answer, but I need some one else to say yes!
    We are currently running a SQL upgrade, from 2000 to 2005, for ore ECC6 platform. As part of the upgrade it is recommended that you change the DB collation from SQL_Latin1_General_CP850_BIN to SQL_Latin1_General_CP850_BIN2 which allows unicode data to be sorted properly.
    My question is, if this enhancement is to correct a unicode issue, will it affect my current non-unicode system if applied. I don't want it to cause any issues if I apply it during the upgrade.
    I don't think it will for various reasons, but I am not 100% can anone let me know if I am right, please!
    Thanks in advance!
    Phil

    Hi,
    you will have no issues with your current system when you go to BIN2 now (before you upgrade to SQL 2005). And you have to keep in mind, that you have to have BIN2 for all newer releases of SAP. So if you plan to ever upgrade your system to a newer release in some point in time, you should go to BIN2 now, as otherwiese you have to perform a homogenous systemcopy with R/3 (which is not so much fun) if you miss it now. On SQL 2005 you can't change the collation easily, so if you don't have the correct one, you only can change it when you unload the data, drop the DB, create the DB in the correct collation and reload the data.
    Regards
      Clas

  • Regenerate decision tree for transfering to unicode system.

    Hello,
    We upgraded the system to a unicode system and we're getting runtime errors using PB infotypes (pb20/pb30) for the
    generated forums in the decision tree.
    The error thrown is unicode compatability, If I make a "false" change in a certain decision tree for a field, the form is regenerated and It works.
    The problem is , that I have over 200 fields for decision trees, and I need them all regenerated.
    Someone gave me report "RPUMKG00" as a solution (activation type 1), but It does not regenerate the forms in a unicode mode.
    does anybody have any ideas?
    thanks.

    Hello,
    We upgraded the system to a unicode system and we're getting runtime errors using PB infotypes (pb20/pb30) for the
    generated forums in the decision tree.
    The error thrown is unicode compatability, If I make a "false" change in a certain decision tree for a field, the form is regenerated and It works.
    The problem is , that I have over 200 fields for decision trees, and I need them all regenerated.
    Someone gave me report "RPUMKG00" as a solution (activation type 1), but It does not regenerate the forms in a unicode mode.
    does anybody have any ideas?
    thanks.

  • SWN_CREATE_SHORTCUT not working for Unicoded system

    The FM "SWN_CREATE_SHORTCUT" is working fine for a non-unicoded system. While for an unicoded system the shortcut created is not working. Is there any parameter i need to set for an unicoded system or do we have to use another FM for it..?
    *"Create shortcut for transaction ZMSABSR02_NEW.
      CALL FUNCTION 'SWN_CREATE_SHORTCUT'
        EXPORTING
          I_TRANSACTION               = c_tran
          I_SYSID                     = SY-SYSID
          I_CLIENT                    = SY-MANDT
          I_USER                      = SY-UNAME
          I_LANGUAGE                  = SY-LANGU
          I_WINDOWSIZE                = c_window
          I_TITLE                     = c_title2
        IMPORTING
          SHORTCUT_STRING             = w_string
        EXCEPTIONS
          INCONSISTENT_PARAMETERS     = 1
          OTHERS                      = 2.

    Hello,
    I had the same problem today.
    I'm in a unicode system, the "SO_NEW_DOCUMENT_ATT_SEND_API1" FM creates a unicode shortcut that doesn't work fine.
    Solution : Add the following lines to your code:
    DATA: wlt_object_header TYPE TABLE OF solisti1,
          wls_object_header TYPE solisti1.
    REFRESH wlt_object_header.
    CLEAR wls_object_header.
    wls_object_header = '&SO_FORMAT=ASC'.
    APPEND wls_object_header TO wlt_object_header.
    And add the internal table wlt_object_header to the TABLES parameters object_header of the "SO_NEW_DOCUMENT_ATT_SEND_API1" FM call :
      TABLES
        object_header              = wlt_object_header
    Now, the shortcut is non-unicode and works fine.
    For information, my saplogin.ini gives : "DEFAULT_NON_UNICODE".
    Best regards,
    -Olivier-

  • Perosonas for non unicode system

    Our system is not yet Unicode enabled. I heard that presonas are only enabled for Unicode sysmtes? Is that true? What about Fiori ? Is Unicode a prerequisite for that also?
    Thanks,
    Ramesh

    Hi Ramesh,
    Personas are supported by SAP only on Unicode systems. Check note http://service.sap.com/sap/support/notes/1884539
    For Fiori is not a prerequisite.
    Regards,
    Vasilis

  • Creating RFC Destination For UNICODE system From NON-UNICODE system

    hi
    how can i create RFC Destination For UNICODE system( XI ) From NON-UNICODE (R/3) system.
    thanks and regards
    Mithlesh Kumar Jha

    Hi,
    Check these blogs , Hope u would be getting some idea
    <b>/people/thomas.jung3/blog/2004/06/24/bsp-150-a-developer146s-journal-part-v-xml-for-rfcs
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
    /people/sap.user72/blog/2004/06/19/how-i-started-with-sap-web-development</b>
    Regards,
    Sridhar Reddy

  • Replacing characters in a Unicode system

    I now need to search all imported texts and replace this `` with a regular double-quote ". Now, I know how to do this in non-Unicode systems, but am totally lost when it comes to UC.
    Could someone please help? TIA - Roman.
    P.S. Never mind, I got it...

    Using convert method from cl_abap_conv_in_ce solves the problem.

  • How to find as ascii value for a string or char in unicode system?

    Hello,
    How to find an ascii value for a string or char in unicode system?
    Thanks in Advance

    hi ,
    report demtest.
    data : c.
    field-symbols : <n> type x.
    data : rn type i.
    c = 'A'.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    This will convert 'A' to 65.
    Tom Demuyt
    How to convert ascii value to character.
    If I give input as 65 (ascill value) I want display 'A'.
    Below logic is for convert from character to ascii value , now I want to know how to convert ascii value to character.
    Naveen
    report demtest.
    *going from A to 65
    data : c value 'A'.
    field-symbols : <n> type x.
    data : rn type i.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    *going from 66 to B
    data : i type i value 66.
    data : x type x.
    field-symbols : <fc> type c.
    move i to x.
    assign x to <fc> casting type c.
    move <fc> to c.
    write c.
    regards,
    venkat.

  • Errors in PDF converter for Unicode systems

    Hello experts,
    I have some problems with the PDF conversion in a Unicode system.
    I have to convert a smartform to PDF using CONVERT_OTF. I have implemented SAP notes 812821 and 999712.
    The problem is that the special characters(diacritics, language specific characters) are overlapped in the generated PDF document. Does anyone knows what is the problem? I don't know what to do anymore...

    Hi,
    Try Below code
    *& Report  ZTEST_NREDDY1
    REPORT  ztest_nreddy1 NO STANDARD PAGE HEADING.
    DATA: it_otf   TYPE STANDARD TABLE OF itcoo,
          it_docs  TYPE STANDARD TABLE OF docs,
          it_lines TYPE STANDARD TABLE OF tline,
          st_job_output_info      TYPE ssfcrescl,
          st_document_output_info TYPE ssfcrespd,
          st_job_output_options   TYPE ssfcresop,
          st_output_options       TYPE ssfcompop,
          st_control_parameters   TYPE ssfctrlop,
          v_len_in                TYPE so_obj_len,
          v_language              TYPE sflangu VALUE 'E',
          v_e_devtype             TYPE rspoptype,
          v_bin_filesize          TYPE i,
          v_name                  TYPE string,
          v_path                  TYPE string,
          v_fullpath              TYPE string,
          v_filter                TYPE string,
          v_uact                  TYPE i,
          v_guiobj                TYPE REF TO cl_gui_frontend_services,
          v_filename              TYPE string,
          v_fm_name               TYPE rs38l_fnam.
    CONSTANTS c_formname          TYPE tdsfname VALUE 'ZTEST'.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
      EXPORTING
        i_language    = v_language
        i_application = 'SAPDEFAULT'
      IMPORTING
        e_devtype     = v_e_devtype.
    st_output_options-tdprinter = v_e_devtype.
    *st_output_options-tdprinter = 'locl'.
    st_control_parameters-no_dialog = 'X'.
    st_control_parameters-getotf = 'X'.
    .................GET SMARTFORM FUNCTION MODULE NAME.................
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = c_formname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ...........................CALL SMARTFORM............................
    CALL FUNCTION v_fm_name
      EXPORTING
        control_parameters   = st_control_parameters
        output_options       = st_output_options
      IMPORTING
        document_output_info = st_document_output_info
        job_output_info      = st_job_output_info
        job_output_options   = st_job_output_options
      EXCEPTIONS
        formatting_error     = 1
        internal_error       = 2
        send_error           = 3
        user_canceled        = 4
        OTHERS               = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    .........................CONVERT TO OTF TO PDF.......................
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
        IMPORTING
          bin_filesize           = v_bin_filesize
        TABLES
          otf                    = st_job_output_info-otfdata
          doctab_archive         = it_docs
          lines                  = it_lines
        EXCEPTIONS
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    jana

Maybe you are looking for