<?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: FUnction to calculate unique key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149737#M1621220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure that we dont have so much data that it will pass combination of 20char. So I think we should be good mathematically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Devang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2011 18:16:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-12T18:16:23Z</dc:date>
    <item>
      <title>FUnction to calculate unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149735#M1621218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where my source is 32 char length and destination InfoObject is only 20 char length. I want to derive a 20 char or less key from 32 char and store it in my InfoObject. The key should be unique to a char sequence. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should also be able to derive the 32 char from 20 char key generated. Does ABAP have any standard functions which would derive a hash value which is unique and from which you can again derive the original value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Devang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 15:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149735#M1621218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction to calculate unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149736#M1621219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless there's a lot of redundancy in the source, I can't think that it's even mathematically possible. There are more combinations possible with 32 characters than with 20. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 17:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149736#M1621219</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2011-08-12T17:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction to calculate unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149737#M1621220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure that we dont have so much data that it will pass combination of 20char. So I think we should be good mathematically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Devang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 18:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149737#M1621220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T18:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction to calculate unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149738#M1621221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think what you're looking for is feasible, so you should better use the usual workaround : define a database table to store the values, with a primary key field made of 20 numeric digits, and data is 32 characters, and a unique index on the 32C field. Each new 32C value is assigned the next 20N number (like with a number range), and if it is an existing 32C value, then it returns the corresponding 20N key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 19:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149738#M1621221</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-12T19:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction to calculate unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149739#M1621222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you can create the uinique key yourself, you can use FM GUID_CREATE: You will get a unique identifier in 16 bytes raw hex  format, 22 character upper/lower case ASCII char format and in 32 character uppercase ASCII format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are mutually convertible by FM GUID_CONVERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can use GUID_CREATE to get the 32 char source key  - you can convert it to a 16 byte hex value for your object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this works as you did not say what it is all about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 14:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-calculate-unique-key/m-p/8149739#M1621222</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-13T14:20:12Z</dc:date>
    </item>
  </channel>
</rss>

