TRANSLATE char USING EBC_TO_ASC

hi all........
In a non-Unicode system, I can issue a command such as TRANSLATE F1 USING EBC_TO_ASC where F1 is character field and EBC_TO_ASC is a standard data definition provided by SAP in include RSEBCASC. When I try this in a Unicode system, it is giving error. Is there a comparable way in a Unicode system to translate items from ASCII to EBCDIC (or EBCDIC to ASCII)?

TRANSLATE ... TO UPPER/LOWER CASE
TRANSLATE ... USING
The arguments of these instructions must be single fields of type C, N, D, T or STRING or purely character-type structures. There is a syntax or runtime error if arguments of a different type are passed. A subset of this function is provided with the addition IN BYTE MODE for processing byte strings – that is, operands of type X or XSTRING. A statement such as CONCATENATE a x b INTO c is thus no longer possible when a, b, and c are all character-type, but x is of type X.
TRANSLATE ... CODEPAGE ...
TRANSLATE ... NUMBER FORMAT ...
The above statements are not allowed in Unicode programs.
In Unicode TRANSLATE can be only dealed with character set. Hence you should use.
<b>Translate trec-string to uppercase.</b>
~As find in forum.
Regards,
Amit

Similar Messages

  • Meaning of wave line in TRANSLATE  lv_text using '~'

    Hi Sir/Madam,
    I have a question of the meaning of wave line "~" in      TRANSLATE l_v_buffer USING '~'.
    I debuged in the process of this statement,
    It is seems that the work area (lwa_output) did not changed.
    I konw how does the demo in SAP ABAPDOCU work, but I do not know what the wave used for here?
        CALL FUNCTION 'CONVERT_OTF_2_PDF'
           EXPORTING
             use_otf_mc_cmd         = 'X'
           IMPORTING
             bin_filesize           = lv_size
           TABLES
             otf                    = ut_otf
             doctab_archive         = lt_doc
             lines                  = lt_pdf_output
           EXCEPTIONS
             err_conv_not_possible  = 1
             err_otf_mc_noendmarker = 2
             OTHERS                 = 3.
    *  ----> Convert 132 chars long (PDF) to 255 chars long to be used
    *   as attachment
         REFRESH fp_lt_pdf[].
         LOOP AT lt_pdf_output INTO lwa_output.
           TRANSLATE lwa_output USING '~'.
           CONCATENATE l_v_buffer lwa_output INTO l_v_buffer.
         ENDLOOP.
         TRANSLATE l_v_buffer USING '~'.
         DO.
           l_wa_contpdf = l_v_buffer.
           APPEND l_wa_contpdf TO fp_lt_pdf.
           SHIFT l_v_buffer LEFT BY 255 PLACES.
           IF l_v_buffer IS INITIAL.
             EXIT.
           ENDIF.
         ENDDO.
       ENDIF.
    ... USING pattern
    Effect
    If you specify USING, the characters in text are converted according to the rule specified in pattern. pattern must be a character-type data object whose contents are interpreted as a sequence of character pairs. text is searched for the first character of each pair, starting with the first pair, and each location found is replaced with the second character of the pair. The search is case-sensitive. If pattern contains a character multiple times as the first character of a pair, only the first pair is taken into account. A character in text that has already been replaced cannot be replaced again in the same TRANSLATE statement. Therefore, if the second character of a pair in pattern appears as the first character of a subsequent pair, the second pair affects only the original characters in text.
    Trailing blanks in data objects text and pattern are taken into account for data objects. If pattern contains an uneven number of characters, the last character is ignored. If pattern is a blank string, no replacements take place.
    Example
    Converts the characters "A" to "B", "a" to "b", and vice versa. text contains "Abracadabra" after the conversion.
    DATA text TYPE string.
    text = `Barbcbdbarb`.
    TRANSLATE text USING 'ABBAabba'.
    Regards

    Hi Feiyu
    It`s should be
    LOOP AT lt_pdf_output INTO lwa_output.
           TRANSLATE lwa_output USING '[space]~'.
           CONCATENATE l_v_buffer lwa_output INTO l_v_buffer.
         ENDLOOP.
         TRANSLATE l_v_buffer USING '~[space]'.
    regards,
    Archer

  • Translate string using hex(0020) in Unicode system.

    Hello all,
    We are facing a problem of the "translate" statement in the Unicode system.
    The original statement goes as follows:
    TRANSLATE BULOG USING WS_STRING1.
    Here  BULOG is a structure and ws_string1 is declared as follows:
    DATA : ws_string1(2) type x value '0020'.
    On compilation in the new system which is Unicode enabled, the above mentioned statement removes all the '#' placed in the structure.
    We tried the following statement instead of the original TRANSLATE statement.
    TRANSLATE BULOG USING SPACE.
    But this statement leaves the '#' unchanged.
    We have already REPLACE statement after converting the structure contents into a string.
    We have also tried the convert methods of the classes CL_ABAP_CONV_IN_CE and CL_ABAP_CONV_OUT_CE.
    Hoping to receive a fast response.
    Thanks in advance.
    Zankruti.

    You might want to read ABAP Help on TRANSLATE:
    Addition 2
    ... USING  pattern
    Effect
    If you specify USING, the characters in text are converted according to the rule specified in pattern.
    pattern must be a character-type data object whose contents are interpreted as a sequence of
    character pairs.
    Your option 1 is not working because type X is "Byte field", technically it's not a character-type. Your option 2 is not working because <pattern> must be a sequence of character pairs (you had just SPACE).
    In Option 1 just change the definition from X to C or STRING.

  • How to find the value of date char used as exception aggregation reference

    Hi BI Gurus,
    On a BEx report I need to list three things by material:
    1)   the open (not yet delivered) Purchase Order quantities
    2)   the PO quantity to be delivered next and
    3)   the date that belongs to the next delivery
    The model supports these data i.e. for each material I can list all open quantities by Purchase Order / Item / Schedule line and the scheduled delivery dates are also available as a characteristic.
    Determining 1) is easy – as the drilldown is fixed (materials only) the open quantities get summarized for all PO-s belonging to the materials.
    To determine 2) I used a Calculated KF simply including KF 1) “=Open PO Qty” in the definition and setting Exception Aggregation (first value) with a reference char of the delivery date. This gives back the Open PO Quantity to be delivered first.
    My question is about how to determine the 3rd value (actually this is not a KPI but a characteristic value). In other words, for each materials I would need to determine the first among all of the possible delivery date char values of the open PO Items / schedule lines. This is the date the quantity shown in the 2nd KPI will be delivered on.
    Does anybody have an idea how to approach this issue?
    Thanks for you help in advance,
    Attila

    Hi Olivier,
    Thanks for your suggestion. I got a bit closer with the replacement path formula variable and the CKF. I tried to apply the same logic of KPI 2) but for some reason it did not work. Actually, it delivers the right value but only when 0SCL_DELDAT (Scheduled delivery date) is in the drilldown… But what I need is the first delivery date by Material only, and without this 0SCL_DELDAT drilldown.
    Any other ideas?
    Thanks and bye,
    Attila

  • How to download alv to excel but translate char to number  ?

    i have alv report that the user want to download the
    result to excel , ok you have two ways  :
    1) excel inplace , its work good but in big amount of
       data the option is working slow and the user
       dont want to use it .
    2) download it as local file , the problem is that
    the fields that contain the amount is char format
    due to using dynamic columnes,
    so how can i convert the field that it will be download
    to excel as number  ?
    i tried to change the fieldcatalog to :
    LS_FCAT-DATATYPE  = 'QUAN'.
    LS_FCAT-INTTYPE = 'P' .
    but its not help .
    thanks .

    hi dakota,
    you could make your own download-routine.
    before downloading you move the data in an internal table where all fields have the wanted format.
    then download it with function module "GUI_DOWNLOAD" name the file ".xls" and use filetype "DBF".
    this way you get an excel with formatted rows as you like.
    br,
    matthias

  • How to generate localized chars using code point in Solaris 10?

    Hi All,
    Do enybody know how to generate localized chars (for example Japanese) using code points in Solaris 10?
    Like in the following web page:
    http://www.isthisthingon.org/unicode/index.phtml
    Unicode, shift-jis
    U+4e2f 87a3 �N
    U+4e3b 8ee5 ��
    U+4e3c 98a5 �S
    U+4f5c 8dec ��
    Thanks,
    Daniel

    I have found a "Code Point Input Method" tool in the following page:
    http://java.sun.com/products/jfc/tsc/articles/InputMethod/inputmethod.html
    Using this tool user can enter hexadecimal code point and the output is some char.
    But this tool doesn't work. I run this in the follwoing way:
    # java -jar CodePointIM.jar
    After this error message appers:
    Failed to load Main-Class manifest attribute from
    codepointim.jar
    If anybody could help I will be appreciate.
    Regards,
    Daniel

  • Converting jstring to const char * using JNI

    Hi Folks,
    Almost complete with the registry access dll and passing to java. My last question is how do I convert a jstring in a const char * ? There may be a method of the JNIEnv that I can use. Can anyone assist? Thanks.

    Look at the JNI GetString functions.

  • Synthetic Item not translated, Slug used as a placeholder.

    I have created a scrolling title in Adobe Premiere Pro CS5.5.2 titler and want to export it to Final Cut Pro 6 in xml.  The FCP translation results report the above message and the xml export is blank when played in Final Cut Pro -- no scrolling title, just a blank sequence.  I've read that this should be corrected in the latest updates -- but it isn't?  I'm using Premiere Pro CS5.5.2.  I don't see this in the question archives, but maybe I missed it?
    Working on a Mac Pro with Adobe Master Suite CS5.5
    Thanks.
    Small Town Gal.

    FCP is not likely to be able to read the scroll from Premiere titler via .xml.
    If you have to use the titles from Premiere in FCP, I would render an
    image sequence with alpha (if needed) and import to FCP.

  • Calculation of attribute value(char) using replacement path

    Hi Guys,
    Using Replacement path I am unable to find a attribute which required to replace the char value.
    I have Char Zformat and attibute zstatus(char). I want to create a formula variable to which I want to feed the attribue vale. when I am trying to find attribue, I cant see.
    Please help me.
    Sudha

    Hi,
    r u sure that u r selecting "Attribute value" for Replace Variable With...?
    Hope   u r varible is "formula variable",processing type is "replacement path" and in the next screen u r selecting u r CHAR and in next screen...Replace Variable With "attribute value"...then u can select u r attribute..
    regards

  • Unable to publish translated text using translation worklist coordination

    Hi Experts,
    I am using portal content translation.  I have successfully completed translation. In Worklist translation, I can see the status as 'Translated'.
    Even in Translation Worklist Coordination, I can see following message:
    "Status of translation worklist is "Translated". It is not possible to add new objects to the translation worklist."
    However, when I am hitting 'Publish Translation' button in 'Translation Worklist Coordination', following message is getting displayed:
    "The action failed. Check the log output for additional information."
    Can you please let me know what is going wrong here. I don't have rights to see the log.
    Regards,
    Stuart

    Hi,
    I am new to portal and facing the same problem when i want to set the language as German ,have you got the solution?If yes I will be very thankful to get the reply.
    Thanks,
    Rashmi.

  • Transport the Script language translation done using SE76 to Quality

    Hello Experts,
    I have translated the Script into Russian language using SE76.
    In developement, it is working fine.
    How to Transport this to Quality environment.
    Please advice.
    Thanks and Regards,
    Sandhya

    Hi Colleague,
    You can follow below steps to add your translation SAPscript into transport request:
    1. Go to se71, input your form name and the language is 'RU' (Russian).
    2. Click change button
    3.Go to Form->Active in screen header.
    Then a dialog pops up to ask you save in a TR. Then you can add it in your TR.
    Hope it helps.
    Sukai

  • Translating Messages Used Internally by Application Express

    I would like to know how it is possible to have all internal messages of apex translated to a language which is not currently supported, to Greek for example. In the documentation there is a list of Internal Messages Requiring Translation, but there are many more, stored in the WWV_FLOW_MESSAGES$ table.I have been experimenting by adding text messages using the NAME column of the above table and selecting Greek as Language. Some of them (such as INVALID_CREDENTIALS) work while others (such as SUCCESS_MSG.ROWS_INSERTED) do not. The application primary language is set to Greek and the "Application Language Derived From" setting is set "Use Application Primary Language".
    Any ideas?
    Thanks
    Christos

    Hello,
    I can confirm the situation the OP describes. It seems like some strings in the WWV_FLOW_MESSAGES$ are available to the translation mechanism, on the application level, and some are not. Any insight on the issue will be most welcome.
    Thanks,
    Arie.

  • Translate Forms using Forms API

    HI,
    How can we use the Oracle Forms Open API to modify labels for a language of a already translated form with transle builder without affecting labels of other languages.

    I suppose translatable strings can be modified before translation using Forms API's and not afterwards. Could you be more specific on what you are trying to do. Thanks

  • Currency Translation: Query use different Rates based on country/Currency

    Hi Friends,
    There is a requirement from our client to apply two different Exchange Rates on the rows of a single query (based on the Inflationary status of countries/Currencies).
    For regular set of countries(or Local currencies), we want normal P&L Rate to be applied on local curency.
    But at the same time if it is a High Inflationary country (or currency), the Global Currency should be displayed as it is without any translation.
    Both these effects should happen and appear on the same Key figure column.
    How can we achieve this?
    Looking forward to have your inputs. Thanks in Anticipation!

    Hi Vikram,
    Thanks for the suggestion.
    It seems as if this suggestion could work only when we want to excute for a given country code. In Reality the query will be executed for all countries in one go and we want the query result rows follow different logic for Different LEs or Currency.
    Any further Ideas Pls. Thanks!

  • Reg: error while converting a date datatype to the char using TO_CHAR function.

    Hello all,
    I'm trying to convert a date datatype to the specified format (i.e., by using vaariable using the to_char function in my sql,
    SQL:
    select 0 dummy,'select' from dual
    union all
    select a.COLUMN_ID dummy,
    (case a.DATA_TYPE when 'NUMBER' then '''''' || '||' || a.COLUMN_NAME || '||'',''||'
                      when 'DATE' then '''"''' || '||' || TO_CHAR(a.COLUMN_NAME,'&dateformat') || '||' || '''",''' || '||'
                      else '''"''' || '||' || a.COLUMN_NAME || '||' || '''",''' || '||'
                end)
    from DBA_TAB_COLUMNS a
    where a.OWNER = upper('&owner_name')
    and a.TABLE_NAME = upper('&table_name')
    union all
    select 998 dummy,''' ''' from dual
    union all
    select 999 dummy,'from &owner_name..&table_name;' from dual
    order by dummy
    error:
                      when 'DATE' then '''"''' || '||' || TO_CHAR(a.COLUMN_NAME,'DD-MM-YYYY') || '||' || '''",''' || '||'
    ERROR at line 5:
    ORA-01722: invalid number
    Please help me in resolving this, Thanks in advance.
    Regards,
    Konda.

    > ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
    This seems to be your specific network configuration.  It seems that your corporate network is blocking HTTPS requests which don't use port 443. Your ABAP system is configured to use a port other than 443. Either talk to your basis admins about changing your ABAP system configuration to use port 443 or talk to your network administrators to allow whichever port the ABAP system is running on.

Maybe you are looking for