<?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: Code/FM/CLASS  that calculate CRC32. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225110#M1379774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this fm FI_MT100_CRC_CALC it calculates CRC but i'm not if its standard CRC32&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2009 10:47:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-02T10:47:44Z</dc:date>
    <item>
      <title>Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225109#M1379773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried the method cl_abap_zip=&amp;gt;crc32 but the output don't work for my parameters.&lt;/P&gt;&lt;P&gt;Other solutions?&lt;/P&gt;&lt;P&gt;thanks for answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 10:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225109#M1379773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225110#M1379774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this fm FI_MT100_CRC_CALC it calculates CRC but i'm not if its standard CRC32&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 10:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225110#M1379774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T10:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225111#M1379775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you in Unicode, if yes use CL_UJF_ZIP=&amp;gt;crc32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 10:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225111#M1379775</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-02T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225112#M1379776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 10:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225112#M1379776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T10:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225113#M1379777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
method crc32. 

  constants: magic_nr(4)  type x value 'EDB88320', 
             mffffffff(4) type x value 'FFFFFFFF', 
             m7fffffff(4) type x value '7FFFFFFF', 
             m00ffffff(4) type x value '00FFFFFF', 
             m000000ff(4) type x value '000000FF', 
             m000000(3)   type x value '000000'. 

  if xstrlen( crc32_map ) = 0. 
    do 256 times. 
      data: c(4) type x, low_bit(4) type x. 
      c = sy-index - 1. 
      do 8 times. 
        low_bit = '00000001'. low_bit = c bit-and low_bit.   " c  &amp;amp; 1 
        c = c div 2. c = c bit-and m7fffffff. " c &amp;gt;&amp;gt; 1 (top is zero, but in ABAP signed!) 
        if low_bit is not initial. 
          c = c bit-xor magic_nr. 
        endif. 
      enddo. 
      concatenate crc32_map c into crc32_map in byte mode. 
    enddo. 
  endif. 

  data: len type i, n type i. "#EC * 
  data: crc(4) type x value mffffffff, x4(4) type x, idx(4) type x. 

  len = xstrlen( content ). 
  do len times. 
    n = sy-index - 1. 
    concatenate m000000 content+n(1) into idx in byte mode. 
    idx = ( crc bit-xor idx ) bit-and m000000ff. 
    idx = idx * 4. 
    x4  = crc32_map+idx(4). 
    crc = crc div 256. crc = crc bit-and m00ffffff. " c &amp;gt;&amp;gt; 8 
    crc = x4 bit-xor crc. 
  enddo. 
  crc = crc bit-xor mffffffff. 

  crc32 = crc. 

endmethod. 


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got the code from here &lt;A href="http://www.sapnet.ru/viewtopic.php?p=6364" target="test_blank"&gt;http://www.sapnet.ru/viewtopic.php?p=6364&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kartik Tarla on Oct 2, 2009 5:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 11:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225113#M1379777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T11:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225114#M1379778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact this is the exact code of CL_UJF_ZIP=&amp;gt;CRC32 (take a look at [Note 1283040 - Replacement of CL_ABAP_ZIP for supporting of Unicode|https://service.sap.com/sap/support/notes/1283040] Correction Instruction of CL_UJF_ZIP CRC32 if you don't have this object/method on your system...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 11:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225114#M1379778</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-02T11:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code/FM/CLASS  that calculate CRC32.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225115#M1379779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raymond, I don't see any difference between codes of CL_ABAP_ZIP=&amp;gt;CRC32 and CL_UJF_ZIP=&amp;gt;CRC32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avalor, maybe the problem is about the XSTRING parameter you passed to CRC32 method, are you really sure it's correct, what code did you use to load the xstring?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 21:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-fm-class-that-calculate-crc32/m-p/6225115#M1379779</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-10-02T21:17:34Z</dc:date>
    </item>
  </channel>
</rss>

