<?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: show all fields with WRITE statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953266#M1694313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forget the WRITE statement, do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data: gr_alv type ref to cl_salv_table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;call method cl_salv_table=&amp;gt;factory &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; importing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r_salv_table = gr_alv &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; changing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = v_note_header. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;gr_alv-&amp;gt;display( ). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thomas&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 18:55:10 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2012-08-09T18:55:10Z</dc:date>
    <item>
      <title>show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953265#M1694312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, good day,&amp;nbsp; i need your help.&amp;nbsp;&amp;nbsp; I have a program report,&amp;nbsp; so&amp;nbsp; it call a function and fill a table,&amp;nbsp; so i need to show all fields,&amp;nbsp; until here all is right.&amp;nbsp; this table has many fields,&amp;nbsp; so i am writing field by field to show all.&amp;nbsp;&amp;nbsp;&amp;nbsp; I do not know if there is a sentence to show all fields of table instead field by field.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have not found any reference to do i want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the code to write the content, field by field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;v_NOTE_HEADER &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;wa_note_header.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; write:/ wa_note_header-ELEM_NO, wa_note_header-n, .....&lt;BR /&gt;&lt;BR /&gt;ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 17:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953265#M1694312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-09T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953266#M1694313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forget the WRITE statement, do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data: gr_alv type ref to cl_salv_table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;call method cl_salv_table=&amp;gt;factory &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; importing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r_salv_table = gr_alv &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; changing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = v_note_header. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;gr_alv-&amp;gt;display( ). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thomas&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 18:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953266#M1694313</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-09T18:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953267#M1694314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saul, &lt;/P&gt;&lt;P&gt;I don't have a simple solution based on write statements. I guess you can do this dynamically, but fear this might be a bit cumbersome. &lt;/P&gt;&lt;P&gt;Have you thought about using the ALV grid (function REUSE_ALV_GRID_DISPLAY)? That would probably also be much easier for the user, because he could filter, sort, re-order the columns...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 19:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953267#M1694314</guid>
      <dc:creator>schneidertho</dc:creator>
      <dc:date>2012-08-09T19:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953268#M1694315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thomas &lt;/SPAN&gt;than you&amp;nbsp; it works &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/910/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;one more doubt, the function return more one table,&amp;nbsp; to show result set for more tables,&amp;nbsp; Have i&amp;nbsp; to call method for each table?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Or&amp;nbsp; One method call can take all tables and return all fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 19:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953268#M1694315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-09T19:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953269#M1694316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no. One ALV, one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can use a splitter container ans use one ALV with one table per split area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Clemens Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953269#M1694316</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-08-09T20:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953270#M1694317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have two tables linked by one column (like header and item data linked by a document number), you can use class CL_SALV_HIERSEQ_TABLE.&lt;/P&gt;&lt;P&gt;Otherwise use containers as suggest by Clemens.&lt;/P&gt;&lt;P&gt;All this is well documented and there are many example programs, please search for information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 07:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953270#M1694317</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-10T07:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: show all fields with WRITE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953271#M1694318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; if you still want to use write:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; field-symbols: &amp;lt;WA&amp;gt; &lt;SPAN class="L0S52"&gt;type any, &amp;lt;COMP&amp;gt; &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;any.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;GT_XML.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;SY-SUBRC.&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; write /.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;assign &lt;/SPAN&gt;GT_XML &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&amp;lt;WA&amp;gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;while &lt;/SPAN&gt;SY-SUBRC = &lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;assign &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;component &lt;/SPAN&gt;SY-INDEX &lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;structure &lt;/SPAN&gt;&amp;lt;WA&amp;gt; &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&amp;lt;COMP&amp;gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;check &lt;/SPAN&gt;SY-SUBRC = &lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;write &lt;/SPAN&gt;&amp;lt;COMP&amp;gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endwhile.&lt;BR /&gt;&amp;nbsp; endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 00:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-all-fields-with-write-statement/m-p/8953271#M1694318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-13T00:45:11Z</dc:date>
    </item>
  </channel>
</rss>

