<?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: Urgent...simple internal table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168105#M753753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;clear s_0001, s0106, s_0021.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insted of using a loop why dont you use read &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then check the sy-subrc  after each read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;siva chalasani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 07:22:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-10T07:22:53Z</dc:date>
    <item>
      <title>Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168104#M753752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus &lt;/P&gt;&lt;P&gt;i am filling a internal table like this&lt;/P&gt;&lt;P&gt;loop at i_0001 into s_0001.&lt;/P&gt;&lt;P&gt;clear out_final.&lt;/P&gt;&lt;P&gt;out_final-pernr = s_0001-pernr.&lt;/P&gt;&lt;P&gt;out_final-parea = s_0001-parea.&lt;/P&gt;&lt;P&gt;loop at i_0021 into s_0021 where pernr = s_0001-pernr and subty ne '7'.&lt;/P&gt;&lt;P&gt;perform rec1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;loop at i_0106 into s_0106 where pernr = s_0001-pernr and subty ne '7'.&lt;/P&gt;&lt;P&gt;perform rec2.&lt;/P&gt;&lt;P&gt;append out_final to i_final.&lt;/P&gt;&lt;P&gt;clear out_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my performs are&lt;/P&gt;&lt;P&gt;FORM rec1.&lt;/P&gt;&lt;P&gt;read table i_0021 into s_0021 with key pernr = s_0001-pernr.&lt;/P&gt;&lt;P&gt;out_final-fname = s_0021-fname.&lt;/P&gt;&lt;P&gt;out_final-lname = s_0021-lname.&lt;/P&gt;&lt;P&gt;out_final-bdate = s_0021-bdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " rec1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM rec2.&lt;/P&gt;&lt;P&gt;read table i_0106 into s_0106 with key pernr = s_0001-pernr.&lt;/P&gt;&lt;P&gt;out_final-ssn = s_0106-ssn.&lt;/P&gt;&lt;P&gt;out_final-add1 = s_0106-add1.&lt;/P&gt;&lt;P&gt;out_final-add2 = s_0106-add2.&lt;/P&gt;&lt;P&gt;out_final-city = s_0106-city.&lt;/P&gt;&lt;P&gt;out_final-state = s_0106-state.&lt;/P&gt;&lt;P&gt;out_final-country = s_0106-country.&lt;/P&gt;&lt;P&gt;out_final-zip = s_0106-zip.&lt;/P&gt;&lt;P&gt;out_final-hphone = s_0106-hphone.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " rec2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all my declerations and syntax are correct &lt;/P&gt;&lt;P&gt;now i have 2 simple things to ask&lt;/P&gt;&lt;P&gt;1. when i write data i get duplicate records ....is my loop , clear and append are in right place&lt;/P&gt;&lt;P&gt;2. i wan to delimit this data for a condition where bdate is greater than 18. bdate is of type p0021-fgbdt which i have to format using some FM....how do i do that where do i have to add code for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 07:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168104#M753752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168105#M753753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;clear s_0001, s0106, s_0021.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insted of using a loop why dont you use read &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then check the sy-subrc  after each read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;siva chalasani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 07:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168105#M753753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168106#M753754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your help siva&lt;/P&gt;&lt;P&gt;even i want to use read table but i have a condition in loope where subty ne '7' which i think cannot use in read table if you have any other option plz suggest.&lt;/P&gt;&lt;P&gt;i am debugging my code still not able to solve it..can you plz also help me with my 2nd question.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 07:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168106#M753754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T07:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168107#M753755</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;  Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_0001 into s_0001.&lt;/P&gt;&lt;P&gt;clear out_final.&lt;/P&gt;&lt;P&gt;out_final-pernr = s_0001-pernr.&lt;/P&gt;&lt;P&gt;out_final-parea = s_0001-parea.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*****loop at i_0021 into s_0021 where pernr = s_0001-pernr and subty ne '7'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform rec1.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;***endloop.&lt;/P&gt;&lt;P&gt;****loop at i_0106 into s_0106 where pernr = s_0001-pernr and subty ne '7'.&amp;lt;/b&amp;gt;perform rec2.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if not out_final is initial.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;append out_final to i_final.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;clear out_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my performs are&lt;/P&gt;&lt;P&gt;FORM rec1.&lt;/P&gt;&lt;P&gt;read table i_0021 into s_0021 with key pernr = s_0001-pernr &lt;/P&gt;&lt;P&gt;                                                         &amp;lt;b&amp;gt;subty ne '7'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-subrc = 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;out_final-fname = s_0021-fname.&lt;/P&gt;&lt;P&gt;out_final-lname = s_0021-lname.&lt;/P&gt;&lt;P&gt;out_final-bdate = s_0021-bdate.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " rec1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM rec2.&lt;/P&gt;&lt;P&gt;read table i_0106 into s_0106 with key pernr = s_0001-pernr&lt;/P&gt;&lt;P&gt;                                                         &amp;lt;b&amp;gt;subty ne '7'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-subrc = 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;out_final-ssn = s_0106-ssn.&lt;/P&gt;&lt;P&gt;out_final-add1 = s_0106-add1.&lt;/P&gt;&lt;P&gt;out_final-add2 = s_0106-add2.&lt;/P&gt;&lt;P&gt;out_final-city = s_0106-city.&lt;/P&gt;&lt;P&gt;out_final-state = s_0106-state.&lt;/P&gt;&lt;P&gt;out_final-country = s_0106-country.&lt;/P&gt;&lt;P&gt;out_final-zip = s_0106-zip.&lt;/P&gt;&lt;P&gt;out_final-hphone = s_0106-hphone.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " rec2&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur duplication problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 08:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168107#M753755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T08:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168108#M753756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at i_0001 into s_0001.&lt;/P&gt;&lt;P&gt;clear out_final.&lt;/P&gt;&lt;P&gt;out_final-pernr = s_0001-pernr.&lt;/P&gt;&lt;P&gt;out_final-parea = s_0001-parea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_0021 into s_0021 with key pernr = s_0001-pernr and subty ne '7'..&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;if s_0021-bdate+6(2) &amp;gt; 18.&lt;/P&gt;&lt;P&gt;out_final-fname = s_0021-fname.&lt;/P&gt;&lt;P&gt;out_final-lname = s_0021-lname.&lt;/P&gt;&lt;P&gt;out_final-bdate = s_0021-bdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_0106 into s_0106 with key pernr = s_0001-pernr and subty ne '7'..&lt;/P&gt;&lt;P&gt;if sy-subrc = 0&lt;/P&gt;&lt;P&gt;out_final-ssn = s_0106-ssn.&lt;/P&gt;&lt;P&gt;out_final-add1 = s_0106-add1.&lt;/P&gt;&lt;P&gt;out_final-add2 = s_0106-add2.&lt;/P&gt;&lt;P&gt;out_final-city = s_0106-city.&lt;/P&gt;&lt;P&gt;out_final-state = s_0106-state.&lt;/P&gt;&lt;P&gt;out_final-country = s_0106-country.&lt;/P&gt;&lt;P&gt;out_final-zip = s_0106-zip.&lt;/P&gt;&lt;P&gt;out_final-hphone = s_0106-hphone.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 09:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168108#M753756</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-10T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168109#M753757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guys &lt;/P&gt;&lt;P&gt;thanks for ur time&lt;/P&gt;&lt;P&gt;but as for  my knoweledge we cannot use ne is read statement only = is allowed.&lt;/P&gt;&lt;P&gt;though i will try and update you guys&lt;/P&gt;&lt;P&gt;if ther is any other way plz let me know&lt;/P&gt;&lt;P&gt;...plz try to solve my 2nd question as well&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 16:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168109#M753757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent...simple internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168110#M753758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 04:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-simple-internal-table-problem/m-p/3168110#M753758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T04:18:22Z</dc:date>
    </item>
  </channel>
</rss>

