<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using function module MD5_CALCULATE_HASH_FOR_CHAR for cyrillic characters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-md5-calculate-hash-for-char-for-cyrillic-characters/m-p/12272694#M1988020</link>
    <description>&lt;P&gt;Hi Fredrik,&lt;BR /&gt;Have you tried class CL_ABAP_MESSAGE_DIGEST?&lt;/P&gt;&lt;P&gt;FM MD5_CALCULATE_HASH_FOR_CHAR has status "Not Released", so it should not be used (SAP Note &lt;A href="https://launchpad.support.sap.com/#/notes/109533" target="_blank"&gt;109533&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2020 13:05:31 GMT</pubDate>
    <dc:creator>cris_hansen</dc:creator>
    <dc:date>2020-08-28T13:05:31Z</dc:date>
    <item>
      <title>Using function module MD5_CALCULATE_HASH_FOR_CHAR for cyrillic characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-md5-calculate-hash-for-char-for-cyrillic-characters/m-p/12272693#M1988019</link>
      <description>&lt;P&gt;Hey SAPlers!&lt;/P&gt;
  &lt;P&gt;I recently tried to use the function module 'MD5_CALCULATE_HASH_FOR_CHAR' for cyrillic characters, but unfortunately noticed that different strings produce the same hash. Is this because the codepage is different? If so, how can I still use cyrillic characters?&lt;/P&gt;
  &lt;P&gt;See the sample code below.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT Z_TEST_HASH.


DATA: string1 TYPE string VALUE 'CUS&amp;amp;ДЕКЛT9',
      string2 TYPE string VALUE 'CUS&amp;amp;КОРРT9',
      hash1(32) TYPE c,
      hash2(32) TYPE c.


CALL FUNCTION 'MD5_CALCULATE_HASH_FOR_CHAR'
    EXPORTING
      data           = string1
    IMPORTING
      hash           = hash1
    EXCEPTIONS
      no_data        = 1
      internal_error = 2
      OTHERS         = 3.

CALL FUNCTION 'MD5_CALCULATE_HASH_FOR_CHAR'
    EXPORTING
      data           = string2
    IMPORTING
      hash           = hash2
    EXCEPTIONS
      no_data        = 1
      internal_error = 2
      OTHERS         = 3.

BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Aug 2020 12:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-md5-calculate-hash-for-char-for-cyrillic-characters/m-p/12272693#M1988019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-08-28T12:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using function module MD5_CALCULATE_HASH_FOR_CHAR for cyrillic characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-md5-calculate-hash-for-char-for-cyrillic-characters/m-p/12272694#M1988020</link>
      <description>&lt;P&gt;Hi Fredrik,&lt;BR /&gt;Have you tried class CL_ABAP_MESSAGE_DIGEST?&lt;/P&gt;&lt;P&gt;FM MD5_CALCULATE_HASH_FOR_CHAR has status "Not Released", so it should not be used (SAP Note &lt;A href="https://launchpad.support.sap.com/#/notes/109533" target="_blank"&gt;109533&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-md5-calculate-hash-for-char-for-cyrillic-characters/m-p/12272694#M1988020</guid>
      <dc:creator>cris_hansen</dc:creator>
      <dc:date>2020-08-28T13:05:31Z</dc:date>
    </item>
  </channel>
</rss>

