<?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: AT END in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880845#M369884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use Both fields, but these fields should be sorted before using in the AT END OF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 10:47:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-17T10:47:44Z</dc:date>
    <item>
      <title>AT END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880842#M369881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; i have to use  command : AT END OF DATE MATDEPTH&lt;/P&gt;&lt;P&gt;                                       ENDAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE IS OF DATA TYPE : DATS &lt;/P&gt;&lt;P&gt;MATDEPTH IS OF TYPE  : CHAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all data is collected in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the moment i am just using AT END OF MATDEPTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i use both date and matdepth to display the requirment.???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;able to display data for a date and matdepth using AT end of command..&lt;/P&gt;&lt;P&gt;pls give sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Vind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 10:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880842#M369881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T10:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: AT END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880843#M369882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;1.No need to use both the fields in AT END
2.place the first 2 fields as MATDEPTH and DATE .
3.SORT ITAD BY MATDEPTH DATE .
4. then use AT END OF DATE.
5. Now it will work according to ur rewuirement&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 10:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880843#M369882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T10:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: AT END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880844#M369883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;control breaks with two fields is not possible .&lt;/P&gt;&lt;P&gt;like AT END OF F1 F2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can treat the same independently like AT END OF F1. and AT END OF F2 in the same loop . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternate to this is &amp;lt;i&amp;gt;On change of F1 or F2.&amp;lt;/i&amp;gt;  " you can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demo code will be ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab occurs 0,
       f1(4) type c,
       f2(4) type c,
       end of itab.
data : begin of Jtab occurs 0,
       f1(4) type c,
       f2(4) type c,
       f3(4) type c,
       end of Jtab.
DATA : CNT TYPE I.

DATA: GV_FLAG TYPE C.

       itab-f1 = 'A'.
       itab-f2 = '10'.
       APPEND ITAB.

       itab-f1 = 'A'.
       itab-f2 = '10'.
       APPEND ITAB.

       itab-f1 = 'A'.
       itab-f2 = '10'.
       APPEND ITAB.

       itab-f1 = 'B'.
       itab-f2 = '8'.
       APPEND ITAB.

       itab-f1 = 'B'.
       itab-f2 = '8'.
       APPEND ITAB.

       itab-f1 = 'B'.
       itab-f2 = '8'.
       APPEND ITAB.

      SORT ITAB BY F1 F2.  "use this 
       LOOP AT ITAB.
        CNT = CNT + 1.

        AT END OF F1.      "apply here 
        GV_FLAG = 'X'.
        ENDAT.

        IF GV_FLAG = 'X'.
        JTAB-F1 = ITAB-F1.
        JTAB-F2 = ITAB-F2.
        JTAB-F3 = CNT.
        APPEND JTAB.
        CLEAR JTAB.
        CLEAR: CNT , GV_FLAG.
        ENDIF.

       ENDLOOP.

       LOOP AT JTAB.
       WRITE:/ JTAB-F1 , JTAB-F2, JTAB-F3.
       ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 10:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880844#M369883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T10:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: AT END</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880845#M369884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use Both fields, but these fields should be sorted before using in the AT END OF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 10:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-end/m-p/1880845#M369884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T10:47:44Z</dc:date>
    </item>
  </channel>
</rss>

