<?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 internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787590#M39723</link>
    <description>&lt;P&gt;if i write statement&lt;/P&gt;
  &lt;P&gt;SELECT SINGLE *&lt;BR /&gt;* FROM mara&lt;BR /&gt;* INTO wa_mara&lt;BR /&gt;* WHERE matnr = a_matnr.&lt;/P&gt;
  &lt;P&gt;then what will be the write statement.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jan 2019 07:08:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-01-27T07:08:55Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787590#M39723</link>
      <description>&lt;P&gt;if i write statement&lt;/P&gt;
  &lt;P&gt;SELECT SINGLE *&lt;BR /&gt;* FROM mara&lt;BR /&gt;* INTO wa_mara&lt;BR /&gt;* WHERE matnr = a_matnr.&lt;/P&gt;
  &lt;P&gt;then what will be the write statement.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 07:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787590#M39723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-01-27T07:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787591#M39724</link>
      <description>&lt;P&gt;Whatever you want it to be. Your question is unclear. Your title is about internal tables, the content is a select single, and you're asking about a write statement.&lt;/P&gt;&lt;P&gt;I can appreciate that not everyone's first language is English, but I can't make any sense of your post.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 07:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787591#M39724</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-01-27T07:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787592#M39725</link>
      <description>&lt;P&gt;You can show the work area fields by writing &lt;/P&gt;&lt;P&gt;wa_mara-"FieldName"&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;wrtie: wa_mara-matnr.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 17:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787592#M39725</guid>
      <dc:creator>aliimran_uppal</dc:creator>
      <dc:date>2019-01-27T17:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787593#M39726</link>
      <description>&lt;P&gt;If you write the statement exactly as shown, then you should get a syntax error as lines 2 to 4 start with an '*' and are therefore treated as comments leaving the first line hanging in limbo as it's not even a complete statement. But, as Matt already mentioned, it's not even clear what you want to ask and/or achieve.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 18:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787593#M39726</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2019-01-27T18:03: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/787594#M39727</link>
      <description>&lt;P&gt;HI &lt;A href="https://answers.sap.com/users/280867/anand07.html"&gt;Anand Mokashi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Please be clear with your question , Anyway if you want  your output then change according to sample code suggested below.&lt;/P&gt;&lt;P&gt;SELECT  *&lt;BR /&gt; FROM mara&lt;BR /&gt; INTO it_mara&lt;BR /&gt;WHERE matnr = a_matnr.&lt;/P&gt;&lt;P&gt;loop at it_mara into wa_mara.&lt;/P&gt;&lt;P&gt;write : / wa_mara-matnr , ............your req fields.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Moreover you have to remove * in your select query before starting of line as sap treats it as comment .&lt;/P&gt;&lt;P&gt;If you want to write select query only like you mentioned in your question then write as below.&lt;/P&gt;&lt;P&gt;SELECT single *&lt;BR /&gt;FROM mara&lt;BR /&gt;INTO wa_mara&lt;BR /&gt;WHERE matnr = a_matnr.&lt;/P&gt;&lt;P&gt;*and for output :&lt;/P&gt;&lt;P&gt;write : / wa_mara-matnr , wa_mara-mtart ,wa_mara-meins,........ and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 10:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/787594#M39727</guid>
      <dc:creator>former_member596005</dc:creator>
      <dc:date>2019-01-28T10:58:21Z</dc:date>
    </item>
  </channel>
</rss>

