<?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: combining 2 loop at itab --diff structure  .to get 1 write statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457949#M830822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the actual code you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 20:36:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T20:36:48Z</dc:date>
    <item>
      <title>combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457946#M830819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls look below ,i hv to combine these 2 loops so that i need only 1  write statement to display all in 1 line.&lt;/P&gt;&lt;P&gt;itab2 structure is different from itab10.(itab10 and itab 11 are same)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)   loop at itab2.&lt;/P&gt;&lt;P&gt;     g_menge = ITAB2-MENGE.&lt;/P&gt;&lt;P&gt;     write : / g_menge.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab10.&lt;/P&gt;&lt;P&gt;read table itab11 .&lt;/P&gt;&lt;P&gt;*read table itab2.    -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt; didnt work&lt;/P&gt;&lt;P&gt;G_days = ITAB10-ADAT - ITAB11-ADAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB10-ABLESTYP = 01.&lt;/P&gt;&lt;P&gt; G_ESTIMATE = 'Y'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;   G_ESTIMATE = 'N'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  G_DAT = ITAB10-ADAT.&lt;/P&gt;&lt;P&gt;  G_READ = ITAB10-V_ZWSTAND.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;g_menge = ITAB2-MENGE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write : / G_DAT,G_READ,G_ESTIMATE,G_days.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sona on Feb 20, 2008 7:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 18:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457946#M830819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T18:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457947#M830820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to give the READ statement either a key or an index; otherwise, I think it will just read the first row of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 18:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457947#M830820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457948#M830821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read table itab2 INDEX 1.   -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; READS ONLY 1 RECORD&lt;/P&gt;&lt;P&gt;read table itab2 with key menge = itab2-menge   -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; gives zero values --- whats wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest how to use this read statement inside 2nd loop.&lt;/P&gt;&lt;P&gt;Or any other way of achieving my display.&lt;/P&gt;&lt;P&gt;pls suggest how to declare a new struc and the exact step to load these values that i want to display.&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;&lt;/P&gt;&lt;P&gt;I SOLVED THIS by adding a counter to index....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sona on Feb 20, 2008 8:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 19:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457948#M830821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457949#M830822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the actual code you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 20:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457949#M830822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T20:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457950#M830823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is it. &lt;/P&gt;&lt;P&gt;g_cnt is 1.&lt;/P&gt;&lt;P&gt;read table itab2 index G_cnt.&lt;/P&gt;&lt;P&gt;G_cnt = G_cnt + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question,while subtracting two dats, is there anything wrong here?&lt;/P&gt;&lt;P&gt;G_days = ITAB10-ADAT - ITAB11-ADAT.&lt;/P&gt;&lt;P&gt;04/21/2008  -  11/05/2007  ouput is 54.&lt;/P&gt;&lt;P&gt;Any better way of doing this.&lt;/P&gt;&lt;P&gt;second value 11/05/2007 - 09/10/2007  ouput is  86&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 20:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457950#M830823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T20:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457951#M830824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant the loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 21:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457951#M830824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457952#M830825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats the actual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 21:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457952#M830825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T21:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457953#M830826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There aren't any loops in that code! Don't you want to combine two loops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 22:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457953#M830826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T22:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457954#M830827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved combining those 2 loop at . if thats clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help on this?&lt;/P&gt;&lt;P&gt;I have another question,while subtracting two dats, is there anything wrong here?&lt;/P&gt;&lt;P&gt;G_days = ITAB10-ADAT - ITAB11-ADAT.&lt;/P&gt;&lt;P&gt;04/21/2008 - 11/05/2007 ouput is 54.&lt;/P&gt;&lt;P&gt;Any better way of doing this.&lt;/P&gt;&lt;P&gt;second value 11/05/2007 - 09/10/2007 ouput is 86&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 22:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457954#M830827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T22:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457955#M830828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the approach looks correct, but the numbers are wrong. I get 168 and 56.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 23:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457955#M830828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T23:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: combining 2 loop at itab --diff structure  .to get 1 write statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457956#M830829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,that is wrong output .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opened another thread for this,pls post any help.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 05:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/combining-2-loop-at-itab-diff-structure-to-get-1-write-statement/m-p/3457956#M830829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T05:31:58Z</dc:date>
    </item>
  </channel>
</rss>

