<?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: Dynamic write statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515338#M569031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use field-symbols:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field-symbols: &amp;lt;fvalue&amp;gt;.
Loop at itab.
 New-line. 
    DO .
      ASSIGN COMPONENT sy-index OF STRUCTURE itab TO &amp;lt;fvalue&amp;gt; .
      IF sy-subrc NE 0 .
        EXIT .
      ENDIF .
      write &amp;lt;fvalue&amp;gt;.
    ENDDO.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You will have to add the headings first and the row labels if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 00:50:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T00:50:43Z</dc:date>
    <item>
      <title>Dynamic write statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515336#M569029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell  me following answers.&lt;/P&gt;&lt;P&gt;I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: p_date like Ztab1-date. (we can choose here till 15dates)&lt;/P&gt;&lt;P&gt;                                      low =01/07/07 to high-15/07/07&lt;/P&gt;&lt;P&gt;output screen.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;items   date1 date2 date3 date4 date5  date6 date7 date8 date9 ..date15 TotalQty&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;cat1&amp;lt;/b&amp;gt;     1000   500  -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;    700                                                  700      2900&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;cate2&amp;lt;/b&amp;gt;    so on&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;cate3&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In write statement: i want my program to decide total qty column should write just select-options range. like if i given in select options 17/07/07 to 18/07/07. my total column should come after next to 2columns, when i given 7 days its shud just next to 7th column,when i given 01st jul 07 to 15th july 07, total come just next to 15th column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that? Pls sugest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 23:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515336#M569029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T23:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic write statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515337#M569030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the entries in the select option calculate the number of days.&lt;/P&gt;&lt;P&gt;Then use&lt;/P&gt;&lt;P&gt;DO &amp;lt;no.of days&amp;gt; times.&lt;/P&gt;&lt;P&gt;&amp;lt;Write your all WRITE statements here except the TOTAL&amp;gt;&lt;/P&gt;&lt;P&gt;ENDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&amp;lt;Now write total here&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 23:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515337#M569030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T23:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic write statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515338#M569031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use field-symbols:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field-symbols: &amp;lt;fvalue&amp;gt;.
Loop at itab.
 New-line. 
    DO .
      ASSIGN COMPONENT sy-index OF STRUCTURE itab TO &amp;lt;fvalue&amp;gt; .
      IF sy-subrc NE 0 .
        EXIT .
      ENDIF .
      write &amp;lt;fvalue&amp;gt;.
    ENDDO.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You will have to add the headings first and the row labels if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 00:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-write-statements/m-p/2515338#M569031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T00:50:43Z</dc:date>
    </item>
  </channel>
</rss>

