<?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: How to get the data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783739#M337662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA W_INDEX TYPE N.                       &lt;/P&gt;&lt;P&gt;DATA W_NAME TYPE STRING.                   &lt;/P&gt;&lt;P&gt;types: BEGIN OF ty_itab,                   &lt;/P&gt;&lt;P&gt;         flag(1) type c,                   &lt;/P&gt;&lt;P&gt;         no(3) type n,                     &lt;/P&gt;&lt;P&gt;         text(10),                         &lt;/P&gt;&lt;P&gt;       end OF ty_itab.                     &lt;/P&gt;&lt;P&gt;                                           &lt;/P&gt;&lt;P&gt;data: itab type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;itab1 type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;itab2 type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;itab3 type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;                                           &lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;itab&amp;gt; type table.           &lt;/P&gt;&lt;P&gt;ITAB-FLAG = 'A'. ITAB-TEXT = 'LINE1'. APPENd itab. "etc&lt;/P&gt;&lt;P&gt;loop at itab.                              &lt;/P&gt;&lt;P&gt;                                           &lt;/P&gt;&lt;P&gt;if itab-flag = 'A'.                        &lt;/P&gt;&lt;P&gt;add 1 to w_index.                          &lt;/P&gt;&lt;P&gt;concatenate 'ITAB' W_INDEX '[]' INTO W_NAME&lt;/P&gt;&lt;P&gt;ASSIGN (W_NAME) TO &amp;lt;itab&amp;gt;.                                                   &lt;/P&gt;&lt;P&gt;endif.                                     &lt;/P&gt;&lt;P&gt;APPEND ITAB TO &amp;lt;ITAB&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.                     &lt;/P&gt;&lt;P&gt;loop at itab1.                             &lt;/P&gt;&lt;P&gt;write:/ itab1-flag. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 05:43:41 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2006-12-20T05:43:41Z</dc:date>
    <item>
      <title>How to get the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783735#M337658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,all.&lt;/P&gt;&lt;P&gt;I want to deal with a itab,the form of the table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG    NO.     TEXT&lt;/P&gt;&lt;P&gt;a           001       my         &amp;lt;-&lt;/P&gt;&lt;P&gt;b           001       you&lt;/P&gt;&lt;P&gt;c           002       he&lt;/P&gt;&lt;P&gt;a           003       she        &amp;lt;-&lt;/P&gt;&lt;P&gt;s           001       hi&lt;/P&gt;&lt;P&gt;m          004       hello&lt;/P&gt;&lt;P&gt;g           008       he&lt;/P&gt;&lt;P&gt;a           007       mine      &amp;lt;-&lt;/P&gt;&lt;P&gt;w          009        them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you see the field FLAG is a flag, i want to get some records, if the value of &lt;/P&gt;&lt;P&gt; FLAG = 'a',then get the follow records into another iternal table include these records which FLAG='a'. at last,it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB 1:&lt;/P&gt;&lt;P&gt;a           001       my         &lt;/P&gt;&lt;P&gt;b           001       you&lt;/P&gt;&lt;P&gt;c           002       he&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB 2:&lt;/P&gt;&lt;P&gt;a           003       she        &lt;/P&gt;&lt;P&gt;s           001       hi&lt;/P&gt;&lt;P&gt;m          004       hello&lt;/P&gt;&lt;P&gt;g           008       he&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB 3:&lt;/P&gt;&lt;P&gt;a           007       mine      &lt;/P&gt;&lt;P&gt;w          009        them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEED YOUR HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 01:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783735#M337658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T01:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783736#M337659</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;&lt;/P&gt;&lt;P&gt;The a records will it occur only thrice..meaning the a records that has the flag a can be in maximum of three rows..Otherwise we need to create dynamic internal table depends on the number of records that has flag as a..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 02:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783736#M337659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T02:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783737#M337660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,could you give me a Demo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 02:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783737#M337660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T02:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783738#M337661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do like this.&lt;/P&gt;&lt;P&gt;data : counter type i.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-flag = 'a'.&lt;/P&gt;&lt;P&gt;counter = counter + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if counter = 1.&lt;/P&gt;&lt;P&gt;move-corresponding to itab1.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;elseif counter = 2.&lt;/P&gt;&lt;P&gt;move-corresponding to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;elseif counter = 3.&lt;/P&gt;&lt;P&gt;move-corresponding to itab3.&lt;/P&gt;&lt;P&gt;append itab3.&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;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 03:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783738#M337661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T03:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783739#M337662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA W_INDEX TYPE N.                       &lt;/P&gt;&lt;P&gt;DATA W_NAME TYPE STRING.                   &lt;/P&gt;&lt;P&gt;types: BEGIN OF ty_itab,                   &lt;/P&gt;&lt;P&gt;         flag(1) type c,                   &lt;/P&gt;&lt;P&gt;         no(3) type n,                     &lt;/P&gt;&lt;P&gt;         text(10),                         &lt;/P&gt;&lt;P&gt;       end OF ty_itab.                     &lt;/P&gt;&lt;P&gt;                                           &lt;/P&gt;&lt;P&gt;data: itab type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;itab1 type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;itab2 type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;itab3 type table of ty_Itab with header line.&lt;/P&gt;&lt;P&gt;                                           &lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;itab&amp;gt; type table.           &lt;/P&gt;&lt;P&gt;ITAB-FLAG = 'A'. ITAB-TEXT = 'LINE1'. APPENd itab. "etc&lt;/P&gt;&lt;P&gt;loop at itab.                              &lt;/P&gt;&lt;P&gt;                                           &lt;/P&gt;&lt;P&gt;if itab-flag = 'A'.                        &lt;/P&gt;&lt;P&gt;add 1 to w_index.                          &lt;/P&gt;&lt;P&gt;concatenate 'ITAB' W_INDEX '[]' INTO W_NAME&lt;/P&gt;&lt;P&gt;ASSIGN (W_NAME) TO &amp;lt;itab&amp;gt;.                                                   &lt;/P&gt;&lt;P&gt;endif.                                     &lt;/P&gt;&lt;P&gt;APPEND ITAB TO &amp;lt;ITAB&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.                     &lt;/P&gt;&lt;P&gt;loop at itab1.                             &lt;/P&gt;&lt;P&gt;write:/ itab1-flag. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 05:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-the-data/m-p/1783739#M337662</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-12-20T05:43:41Z</dc:date>
    </item>
  </channel>
</rss>

