<?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 loop help... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300978#M790211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pl provide the second set of records for us to clearly understand your requirment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 06:22:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T06:22:06Z</dc:date>
    <item>
      <title>internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300977#M790210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My internal table looks like this:&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume following records are one set and in the loop we need to read one set of records and create idoc.&lt;/P&gt;&lt;P&gt;I tried in this way, If T_ITAB_DATA+23(10) IS INITIAL. Then I am creating idoc. But it is not working when loop enter into 2nd st of records.&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090  TOTAL001  0098883330&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300977#M790210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300978#M790211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pl provide the second set of records for us to clearly understand your requirment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300978#M790211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300979#M790212</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; As you are doing with in the loop,  try to clear the T_ITAB_DATA workarea every time before fetching the data from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this will solve the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300979#M790212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300980#M790213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the internal table records:&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am treating this as one set, like this we have 3 sets u can see above.&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;10990191XSDSA0002099090 TOTAL001 0098883330&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300980#M790213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300981#M790214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     If condition.&lt;/P&gt;&lt;P&gt;idoc creation.clear itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaveri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300981#M790214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300982#M790215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think at the time of execution of the program the HEADER of the internal table contains the previous value. Do one thing at the end of the loop clear the header data of internal table. &lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear &amp;lt;internal table name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************************&lt;STRONG&gt;reward points if it is useful&lt;/STRONG&gt;***********************&lt;/P&gt;&lt;P&gt;THANKS,&lt;/P&gt;&lt;P&gt;Sayak...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300982#M790215</guid>
      <dc:creator>RoySayak</dc:creator>
      <dc:date>2008-01-24T06:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: internal table loop help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300983#M790216</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;You can try  the following condition:&lt;/P&gt;&lt;P&gt;if T_ITAB_DATA+25(1) eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-loop-help/m-p/3300983#M790216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:36:18Z</dc:date>
    </item>
  </channel>
</rss>

