<?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: Heap implementation in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707248#M309675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link about heap , i hope this ll help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.redbooks.ibm.com/redbooks/pdfs/sg246291.pdf" target="test_blank"&gt;http://www.redbooks.ibm.com/redbooks/pdfs/sg246291.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 09:04:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T09:04:43Z</dc:date>
    <item>
      <title>Heap implementation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707246#M309673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to implement in ABAP a heap. I created an class which simulate this heap but I'm interesting that in ABAP is an ready implementation of heap class?&lt;/P&gt;&lt;P&gt;My definition of class have methods:&lt;/P&gt;&lt;P&gt; - GET_LAST_TOKEN&lt;/P&gt;&lt;P&gt; - ADD_TOKEN&lt;/P&gt;&lt;P&gt; - RELEASE_TOKEN&lt;/P&gt;&lt;P&gt; - CHECK_IS_EMPTY&lt;/P&gt;&lt;P&gt; - FLIP_HEAP&lt;/P&gt;&lt;P&gt;Attibutes:&lt;/P&gt;&lt;P&gt; - HEAP //table&lt;/P&gt;&lt;P&gt; - TOTAL //counter&lt;/P&gt;&lt;P&gt; - C_FALSE //boolean false&lt;/P&gt;&lt;P&gt; - C_TRUE //bolean true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementation (only overall view)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
method ADD_TOKEN .

  APPEND i_token to heap.
  IF sy-subrc = 0.
    total = total + 1.
  ENDIF.

endmethod.


METHOD release_token .

  IF total &amp;gt; 0.
    DELETE heap INDEX total.
    IF sy-subrc = 0.
      total = total - 1.
    ENDIF.
  ENDIF.

ENDMETHOD.


METHOD get_last_token .
  DATA: l_token LIKE LINE OF heap.

  IF total is not INITIAL.
    READ TABLE heap
      INDEX total
      INTO e_token.
  ENDIF.

ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this good idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 08:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707246#M309673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T08:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Heap implementation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707247#M309674</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 think is fine, the only thing that is missing is to have a method with the number of elements, I mean  something to return the counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 08:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707247#M309674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T08:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Heap implementation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707248#M309675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link about heap , i hope this ll help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.redbooks.ibm.com/redbooks/pdfs/sg246291.pdf" target="test_blank"&gt;http://www.redbooks.ibm.com/redbooks/pdfs/sg246291.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/heap-implementation-in-abap/m-p/1707248#M309675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:04:43Z</dc:date>
    </item>
  </channel>
</rss>

