<?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: Problem: working with internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677144#M885536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

write: adress-vorname,
adress-nachname,
adress-wohnort.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 08:48:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-14T08:48:15Z</dc:date>
    <item>
      <title>Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677141#M885533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Problem using internal tables. My code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: Begin of adress occurs 3,
        vorname(25) type c,
	 nachname(25) type c,
	 wohnort(25) type c,
end of adress.

*-----Insert Dataset
adress-vorname = 'Test'.
adress-nachname = 'Test'.
adress-wohnort = 'Test'.
append adress.

*-----Insert another Dataset
adress-vorname = 'Test2'.
adress-nachname = 'Test2'.
adress-wohnort = 'Test2'.
append adress.

*-----table-Output to screen
write adress.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I misunderstood how to use append. Because this could will only give the 2nd Dataset to screen.&lt;/P&gt;&lt;P&gt;How do I need to change this code to be able to write mutiple Datasets?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677141#M885533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677142#M885534</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;write like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: Begin of adress occurs 3,
        vorname(25) type c,
	 nachname(25) type c,
	 wohnort(25) type c,
end of adress.
 
*-----Insert Dataset
adress-vorname = 'Test'.
adress-nachname = 'Test'.
adress-wohnort = 'Test'.
append adress.
 
*-----Insert another Dataset
adress-vorname = 'Test2'.
adress-nachname = 'Test2'.
adress-wohnort = 'Test2'.
append adress.
 
*-----table-Output to screen
loop at adress.
write adress.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677142#M885534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677143#M885535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop thru adress and then write ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at adress.&lt;/P&gt;&lt;P&gt;  write:/  adress.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677143#M885535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677144#M885536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

write: adress-vorname,
adress-nachname,
adress-wohnort.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677144#M885536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677145#M885537</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;do this way  ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at adress.
*-----table-Output to screen
write : / adress-vorname, adress-nachname, adress-wohnort.
endloop. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677145#M885537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677146#M885538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try This coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at adress.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write adress.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677146#M885538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677147#M885539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u must have a loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at adress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / adress-vorname, adress-nachname, adress-wohnort.&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;Regards&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677147#M885539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677148#M885540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank for the answers so far. That part works now.&lt;/P&gt;&lt;P&gt;At the moment I am trying to find something about how to define primary keys in these internal tables.&lt;/P&gt;&lt;P&gt;I can't find anything about this so far. So How can I set which komponent the PK is?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 12:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677148#M885540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677149#M885541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;new Question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 12:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677149#M885541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T12:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677150#M885542</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;Use this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_supp TYPE TABLE OF table_name WITH NON-UNIQUE KEY comp1 comp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comp1 and comp2 components of table_name.&lt;/P&gt;&lt;P&gt;why NON-UNIQUE ? Since u r referencing  a transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ABAPer 007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 13:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677150#M885542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677151#M885543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the answer. The PKs should be unique though. So how can I use a non-transparent table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 13:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677151#M885543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677152#M885544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok I think I found a partwise solution:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*TableTyp
TYPES: BEGIN OF LINE,
COLUMN1 TYPE c,
COLUMN2 TYPE c,
COLUMN3 TYPE c,
END OF LINE.
*Primary Key
TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.
*Instance
DATA: tabellePrim like LINE.

*Put some values
tabellePrim-COLUMN1 = 'Aaa'.
tabellePrim-COLUMN2 = 'cfd'.
tabellePrim-COLUMN3 = 'eee'.
append tabellePrim.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors are where I put some values in. I think the process ist different from the so called transparent tables. So my next step is to find out how to put some Datasets in it and how to read them out afterwards (using WHERE)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 14:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677152#M885544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T14:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677153#M885545</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 the write statement inside &lt;/P&gt;&lt;P&gt;LOOP     ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 17:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677153#M885545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T17:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677154#M885546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You declared your table as type sorted.  Use the insert keyword rather than the append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the online help documentation for more information on working with internal tables and the [INSERT|http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb361f358411d1829f0000e829fbfe/frameset.htm] command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 13:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677154#M885546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: working with internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677155#M885547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want multiple records use the loop and end loop in between use the write statement &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-working-with-internal-tables/m-p/3677155#M885547</guid>
      <dc:creator>former_member286345</dc:creator>
      <dc:date>2013-05-16T13:03:27Z</dc:date>
    </item>
  </channel>
</rss>

