<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930738#M690592</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;first u enter the data into your z or y stud table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;        maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;as per above example u can declare your table fields.LIKE here u can give your table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 08:13:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-09T08:13:21Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930735#M690589</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;I gt a student table. I want to create a internal table for this student table. Next i want to perform a loop on the internal table and use a write statement to display the record. How can i do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930735#M690589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930736#M690590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;include structures mara.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into itab.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; .......&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;prajwal.k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        prajwal k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        prajwal k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930736#M690590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930737#M690591</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;CREAT A INTERNAL TABLE OF TYPE THAT STUDENT TABLE &lt;/P&gt;&lt;P&gt;AFTER THAT WRITE A SELCT QUERY TO STORE DATA INTO THAT INTERNAL TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM STUDENT TABLE INTO INTERNAL TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT LOOP AT THAT INTERNAL TABLE AND IN THAT LOOP WRITE THE WRITE STATEMENT &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;REWARD IF USEFULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930737#M690591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930738#M690592</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;first u enter the data into your z or y stud table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;        maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;as per above example u can declare your table fields.LIKE here u can give your table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;P&gt;Prashant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930738#M690592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930739#M690593</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;U have a student table right, suppose the name of the table is &amp;lt;b&amp;gt;SNAME&amp;lt;/b&amp;gt; then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare internal table for this table like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data: itab type standard table of SNAME with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-fname1,itab-fname2...&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Dharmishta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930739#M690593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930740#M690594</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;tables : &amp;lt;student table name&amp;gt;&lt;/P&gt;&lt;P&gt;data : it_st like table of &amp;lt;student table name&amp;gt; with header line.&lt;/P&gt;&lt;P&gt;select * from &amp;lt;student table name&amp;gt; into table of it_st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_st.&lt;/P&gt;&lt;P&gt;  write /: it_st-&amp;lt;fied name 1&amp;gt; ( eg name),&lt;/P&gt;&lt;P&gt;            it_st-&amp;lt;field name 2&amp;gt;&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;baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930740#M690594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930741#M690595</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;suppose the student table is - stud&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;data Decleration&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;data : begin of t_stud occours 0,&lt;/P&gt;&lt;P&gt;         field1 like stud-field1,&lt;/P&gt;&lt;P&gt;        field2 like stud-field2,&lt;/P&gt;&lt;P&gt;       end of t_stud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;internal table&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;data : i_stud type standard table of t_stud with header data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;selection-screen&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;select-options: s_id like stud_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;selection - screen validation&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;start-of-selection&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;select *  from stud&lt;/P&gt;&lt;P&gt;            into i_stud&lt;/P&gt;&lt;P&gt;            where id in s_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;write statement&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_stud.&lt;/P&gt;&lt;P&gt;write: field1 , field2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;top - of-page&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****do rewards if usefull&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930741#M690595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930742#M690596</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;suppose it_student_table is  your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Creating an another internal table is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: it_new_student like it_student_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) creating a work area for the above table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data ls_new_student like line of it_student_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;populate the internal table.&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_new_student  into ls_new_student.&lt;/P&gt;&lt;P&gt; write:/ ls_new_student-value.&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;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930742#M690596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930743#M690597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of itab_student occurs 0,&lt;/P&gt;&lt;P&gt;         stud_id like zstudent-stud_id,&lt;/P&gt;&lt;P&gt;         stud_name like zstudent-stud_name,&lt;/P&gt;&lt;P&gt;         stud_address like zstudent-stud_address,&lt;/P&gt;&lt;P&gt;         end of itab_student.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block blk1 with frame title text-001.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;select-options : s_stid for zstudent-stud_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : end of block blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select stud_id stud_name stud_address from zstudent &lt;/P&gt;&lt;P&gt;               into corresponding fields of table itab_student &lt;/P&gt;&lt;P&gt;                                                          where stud_id in s_stid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_student.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab_student.&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;Reward with points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 08:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2930743#M690597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T08:28:08Z</dc:date>
    </item>
  </channel>
</rss>

