<?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: SET BIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124680#M742127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Matthew .&lt;/P&gt;&lt;P&gt;can you give me some example where i can still analyze the operation of "set bit"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        priya latha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 04:44:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T04:44:37Z</dc:date>
    <item>
      <title>SET BIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124678#M742125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody explains me how SET BIT bitpos OF byte_string [TO val] get works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I concluded that it will set the bit of  position (bitpos) of string (byte_string).&lt;/P&gt;&lt;P&gt;buti am nt getting how it works ?&lt;/P&gt;&lt;P&gt;can anybody briefly explains me how this get works and how this program works? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA hex TYPE x LENGTH 1.&lt;/P&gt;&lt;P&gt;DO 8 TIMES.&lt;/P&gt;&lt;P&gt;  CLEAR hex.&lt;/P&gt;&lt;P&gt;  SET BIT sy-index OF hex.  "how it works&lt;/P&gt;&lt;P&gt;  WRITE  hex.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is: 80 40 20 10 08 04 02 01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 13:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124678#M742125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T13:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: SET BIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124679#M742126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through each loop iteration, the variable hex is cleared, so contains binary value 00000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First time through the loop. sy-index is 1, and so bit 1 is set, so you have binary value 00000001.  Which is hex 01.&lt;/P&gt;&lt;P&gt;Next time through the loop, sy-index is 2, and so bit 2 is set, so you have binary value 00000010.  Which is hex 02.&lt;/P&gt;&lt;P&gt;Next time through the loop, sy-index is 3, and so bit 3 is set, so you have binary value 00000100.  Which is hex 04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 13:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124679#M742126</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-04T13:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: SET BIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124680#M742127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Matthew .&lt;/P&gt;&lt;P&gt;can you give me some example where i can still analyze the operation of "set bit"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        priya latha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 04:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124680#M742127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T04:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: SET BIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124681#M742128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you understand binary representation?  And how to convert between hex, decimal and binary?  If not, read &amp;lt;a href="http://en.wikipedia.org/wiki/Binary_numeral_system"&amp;gt;this&amp;lt;/a&amp;gt;.  Above what I've already explained, there's not really much else to say.   And you shouldn't worry about it too much.  BITwise operations are very rarely used in ABAP.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 08:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-bit/m-p/3124681#M742128</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-05T08:33:54Z</dc:date>
    </item>
  </channel>
</rss>

