Skip to Content

Special character

How to check for Trade mark and Registered Trade mark symbols in a String?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 06:29 PM

    declare data type x with the code...

    search string for the data values...

    trademark = data: tmark(1) type x value '99',

    reg trademark = data: rtmark(1) type x value 'AE'.

    Since you can't do this in a UNICODE-enabled program, you have the option of turning off the Unicode check in Attributes, or finding another way to declar the hex values.

    reference: http://www.ascii-code.com/

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 09, 2010 at 03:39 PM

    Hi Kartik,

    I don't have problems, just paste the characters into editor

    FORM trademark .
      CONSTANTS:
        lc_tm TYPE char01 VALUE 'u2122',
        lc_r  TYPE char01 VALUE '®'.
      DATA:
        lv_test TYPE string VALUE  'this is ABAP u2122 registerd by SAP ® '.
      IF lv_test CA lc_tm .
        WRITE: / 'found', lc_tm, 'at position', sy-fdpos, 'in:', lv_test.
      ENDIF.
      IF lv_test CA lc_r .
        WRITE: / 'found', lc_r, 'at position', sy-fdpos, 'in:', lv_test.
      ENDIF.
    ENDFORM.                    " TRADEMARK

    I hope you are on unicode (who is not?)

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.