<?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: Internal table issue. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062406#M1354204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop on your internal table and use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at new state&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  control event&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2009 15:41:25 GMT</pubDate>
    <dc:creator>SG141</dc:creator>
    <dc:date>2009-09-10T15:41:25Z</dc:date>
    <item>
      <title>Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062403#M1354201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an internal table eg t_final.&lt;/P&gt;&lt;P&gt;with fields &lt;/P&gt;&lt;P&gt;State&lt;/P&gt;&lt;P&gt;plant&lt;/P&gt;&lt;P&gt;qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i sorted the table as -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort t_final1 by  state ASCENDING
                           plant DESCENDING .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now data in t_final is as follows---&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
state   plant    qty
20       1015    10  
20       1015     8
20       1001     5
25       1555    100  
25       1555    100
25       1550     88
23       1441     86
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the 1st record every state and plant which should look as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
state   plant    qty
20       1015    10  
25       1555    100  
23       1441     86
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;above should be the data in the t_final.&lt;/P&gt;&lt;P&gt;How can i do this, please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Akash Rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062403#M1354201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T15:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062404#M1354202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this statement after your sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from t_final1 comparing state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062404#M1354202</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-09-10T15:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062405#M1354203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend,&lt;/P&gt;&lt;P&gt;i did the same but some duplicate records also get completely deleted so this is not resolving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akash Rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062405#M1354203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T15:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062406#M1354204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop on your internal table and use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at new state&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  control event&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062406#M1354204</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2009-09-10T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062407#M1354205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still i have many other records of the same state....i just need the first record of every state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akash Rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062407#M1354205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062408#M1354206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop the internal table you at new state command and move the first  row to a separate internal table.... I believe this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062408#M1354206</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2009-09-10T16:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062409#M1354207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did exactly u wrote but my field stateis placed in between internal table its in 7th column,&lt;/P&gt;&lt;P&gt;So i am getting duplicate entries in the other internal table in which i am apending the wa at&lt;/P&gt;&lt;P&gt; "AT new "&lt;/P&gt;&lt;P&gt;also fields after state gets append as ************ according to the length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akash Rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062409#M1354207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062410#M1354208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use on change of STATE. using at new etc events puts * in all other fields after the chosen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prakash Sethia on Sep 10, 2009 6:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062410#M1354208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T16:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062411#M1354209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_final1 by  state ASCENDING&lt;/P&gt;&lt;P&gt;                           plant DESCENDING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Define a variable ws_state similar to the data type of t_final1-state.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;clear ws_state.&lt;/P&gt;&lt;P&gt;loop at t_final1 into wa_final1.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   if ws_state = wa_final1-state.&lt;/P&gt;&lt;P&gt;      delete t_final1.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;      ws_state = wa_final1-state.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062411#M1354209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T16:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062412#M1354210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  Subramanian PL    	 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had already done similar to your resolution...my issue got resolved.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akash Rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/6062412#M1354210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T16:44:31Z</dc:date>
    </item>
  </channel>
</rss>

