<?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: Binay Calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422208#M1050276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, I don't get it either.  Perhaps if you posted your Java we could work out what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&lt;SUP&gt;5 + 2&lt;/SUP&gt;6 = 32 + 64 = 96.  In binary, therefore, 1100000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2008 13:03:17 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-09-11T13:03:17Z</dc:date>
    <item>
      <title>Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422202#M1050270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have value in Database Type i For example 96&lt;/P&gt;&lt;P&gt;I want to find out the binary Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;P&gt;That 2 4 8 16 32 64  = &lt;STRONG&gt;96&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Has somebody an Idear ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I that possible in ABAB. in java thas only a few line&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;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 12:26:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422202#M1050270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422203#M1050271</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;something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : num TYPE i,
       bin TYPE xstring.
num = 96.
bin = num.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: this will give the hexa value (not the binary), sorry all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Eric Cartman on Sep 11, 2008 3:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 12:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422203#M1050271</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-11T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422204#M1050272</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;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS :
  p_num TYPE i.

DATA :
   w_num TYPE i,
   w_rem TYPE i,
   w_bin TYPE string,
   w_c TYPE c.


w_num  = p_num.

WHILE w_num NE 0.

  w_rem = w_num MOD 2.
  w_num = w_num DIV 2.
  w_c = w_rem.
  CONCATENATE w_c w_bin INTO w_bin.

ENDWHILE.

WRITE :
  w_bin.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 12:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422204#M1050272</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-09-11T12:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422205#M1050273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maby in should give more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Value 96&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know with binary value is in 96&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 12:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422205#M1050273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422206#M1050274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, for me it is still not clear. what should be the result for 96?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 12:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422206#M1050274</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-11T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422207#M1050275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That 2 4 8 16 32 64 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The amount is 96 Thats the value from the Database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must find out 96 is 2 4 8 16 32 64 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The System&lt;/P&gt;&lt;P&gt;1	1&lt;/P&gt;&lt;P&gt;2	3&lt;/P&gt;&lt;P&gt;4	6&lt;/P&gt;&lt;P&gt;8	12&lt;/P&gt;&lt;P&gt;16	24&lt;/P&gt;&lt;P&gt;32	48&lt;/P&gt;&lt;P&gt;64	96&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope now it clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 12:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422207#M1050275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T12:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422208#M1050276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, I don't get it either.  Perhaps if you posted your Java we could work out what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&lt;SUP&gt;5 + 2&lt;/SUP&gt;6 = 32 + 64 = 96.  In binary, therefore, 1100000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422208#M1050276</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-09-11T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422209#M1050277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to identify &lt;/P&gt;&lt;P&gt;These are the binary position &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;2 4 8 16 32 64 128 256 512 1024&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system gives me a number 96. MIt this figure, I must now find out what figures this number is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again graphically&lt;/P&gt;&lt;P&gt;  2 4 8 16 32 64 128 256 512 1024&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;X  X X  X X   X&lt;/STRONG&gt;                             = 96&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;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422209#M1050277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T13:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422210#M1050278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not clear. 96 is 64 + 32, not 2&lt;EM&gt;4&lt;/EM&gt;8&lt;EM&gt;16&lt;/EM&gt;32+64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do you expect the output should be "01100000" for 96?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422210#M1050278</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-09-11T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422211#M1050279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The system gives me a number 96. MIt this figure, I must now find out what post of binary numbers that number is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an 3 that is 1+2&lt;/P&gt;&lt;P&gt;or an     7 that is 1&lt;EM&gt;2&lt;/EM&gt;4&lt;/P&gt;&lt;P&gt;or ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find out 1+2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope thats bedder&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;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422211#M1050279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422212#M1050280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever notice that 96 is 64 + 32, that was asked by eric, matthew and me, and still your are talking about 96 is 64 32 16 8 4 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again: is "01100000" what you expect for 96 or is it 64 and 32?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 4 8 16 32 64 is 126, not 96!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422212#M1050280</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-09-11T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422213#M1050281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK You are right. &lt;/P&gt;&lt;P&gt;My example is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that does not solve my Problem &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;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422213#M1050281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422214#M1050282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But that was confusing everyone, and without knowing the requriement nobody can offer a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And still one thing is unclear: what is your exprect output for the example 96? should it be something like "01100000" or a table having two rows, one with 64, the other with 32 or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i requested your expected output some postings ago....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just made a quck exmaple...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT yet_another_report.

data:
  base type i,
  dividend type i,
  binary(8) type c,
  q type i.

q = 96.
base = 128.
do 8 times.
  dividend = q div base.
  if dividend &amp;gt; 0.
    CONCATENATE binary '1' into binary in CHARACTER MODE.
    q = q - base.
  else.
    CONCATENATE binary '0' into binary in CHARACTER MODE.
  endif.

  base = base / 2.
enddo.

write:/ binary.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rainer Hübenthal on Sep 11, 2008 4:31 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422214#M1050282</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-09-11T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422215#M1050283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must apologize, but I can not describe the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;last attempt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A figure (no binary number) may be reviewed, the bodies in a binary system, value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the example of 126 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 + 4 + 8 + 16 + 32 + 64 = 126 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 126 is me by the system. &lt;/P&gt;&lt;P&gt;Now I would like to find out what values (2 4 ..) in this figure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422215#M1050283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T14:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422216#M1050284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is so difficult to write down the expected output for your example 96?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, i give up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT yet_another_report.

data:
  base type i,
  dividend type i,
  binary(8) type c,
  tmp(3) type c,
  q type i.

q = 96.
base = 128.
tmp = base.
do 8 times.
  dividend = q div base.
  if dividend &amp;gt; 0.
    CONCATENATE binary tmp into binary
      in CHARACTER MODE SEPARATED BY space.
    q = q - base.
  endif.

  base = base / 2.
  tmp = base.
enddo.

write:/ binary.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rainer Hübenthal on Sep 11, 2008 4:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422216#M1050284</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-09-11T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422217#M1050285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say we want to convert 91 to binary.&lt;/P&gt;&lt;P&gt;We can't pull out 128, but we can pull out a 64.&lt;/P&gt;&lt;P&gt;91 = 64 + 27&lt;/P&gt;&lt;P&gt;From 27, we can pull out a 16.&lt;/P&gt;&lt;P&gt;91 = 64 + 16 + 11&lt;/P&gt;&lt;P&gt;From 11, we can pull out an 8:&lt;/P&gt;&lt;P&gt;91 = 64 + 16 + 8 + 3&lt;/P&gt;&lt;P&gt;From 3 we can pull out 2 then 1:&lt;/P&gt;&lt;P&gt;91 = 64 + 16 + 8 + 2 + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That in want to in Abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possibel ??&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;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 16:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422217#M1050285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T16:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422218#M1050286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you checked the reports? I guess no, cause otherwise youwouldnt ask. I will stop watching this silly thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422218#M1050286</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-09-11T19:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422219#M1050287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run Rainer's second program.  It does EXACTLY what you require.  He has ANSWERED your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the value of q to any other value, and it will tell you the powers of two required to sum up to that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then close the thread as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tip: many of us are multi-lingual - you could try posting in your native language and in English.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;It is possibel ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes - Turing has proved that if you can do it in Java, you can do it in ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 10:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422219#M1050287</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-09-12T10:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422220#M1050288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im sorry but Rainer's second  will convert in Binary items. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK dann noch mal auf deutsch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seine Programm konvertiert eine Zahl in eine Binarzahl. Ich möchte aber herausfinden, welche Binarzahlen in einer Wert ( 3 2+1) enthalten sind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gruß&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2008 23:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422220#M1050288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-13T23:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Binay Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422221#M1050289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ich habe das Programm für dich modifiziert, finde aber seltsam, dass du allein nicht machen konntest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  base TYPE i,
  dividend TYPE i,
  binary TYPE string,
  tmp(3) TYPE c,
  tmp2(3) TYPE c,
  q TYPE i.

q = 96.
MOVE q TO tmp2.
base = 128.
tmp = base.
DO 8 TIMES.
  dividend = q DIV base.
  IF dividend &amp;gt; 0.
    CONCATENATE binary '+' tmp INTO binary SEPARATED BY space.
    q = q - base.
  ENDIF.

  base = base / 2.
  tmp = base.
ENDDO.

SHIFT binary LEFT DELETING LEADING '+ '.
CONCATENATE tmp2 '=' binary INTO binary SEPARATED BY space.

WRITE:/ binary.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 13:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binay-calculation/m-p/4422221#M1050289</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-14T13:29:22Z</dc:date>
    </item>
  </channel>
</rss>

