<?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: Checking Work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653161#M290002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best way to frame a question is to show the abap. Otherwise we arwe gussing what you structure looks like and may misunderstand you. Why didn't you put the data declarion in the question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aNYWAY, I am guessing that it's something like:&lt;/P&gt;&lt;P&gt;data: begin of work,&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;     month_tot1 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;     month_tot2 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;     month_tot3 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;     month_tot4 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;end of workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;tot&amp;gt; type bseg-wrbtr.&lt;/P&gt;&lt;P&gt;data: total like bseg-wrbtr,counter like sy-index&lt;/P&gt;&lt;P&gt;data: AVG like bseg-wrbtr,counter like sy-index.&lt;/P&gt;&lt;P&gt;data fname(30). &lt;/P&gt;&lt;P&gt;CLEAR: TOTAL,COUNTER,AVG.&lt;/P&gt;&lt;P&gt;do 12 TIMES.&lt;/P&gt;&lt;P&gt;concatenate 'WORK-MONTH_TOT' SY-INDEX INTO FNAM.&lt;/P&gt;&lt;P&gt;assigN (FNAM) TO &amp;lt;TOT&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF &amp;lt;TOT&amp;gt; &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;ADD 1 TO COUNTER.&lt;/P&gt;&lt;P&gt;ADD &amp;lt;TOT&amp;gt; TO TOTAL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;IF COUNTER &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;AVG = TOTAL / COUNTER.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2006 04:21:28 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2006-10-26T04:21:28Z</dc:date>
    <item>
      <title>Checking Work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653159#M290000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In My work area tehre are 40 fields out of which 12 fields contains the sales of a material in past 12 months....I need to calculate number of months from this work area with sales figures...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets us say there is sales only in 4 months....&lt;/P&gt;&lt;P&gt;so i need to sum the total sales and then divide it by the number of months with the sales figures in it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do it? without checkin gthe inbdividual fields and increment variable....&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>Thu, 26 Oct 2006 04:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653159#M290000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T04:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653160#M290001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use field-symbols. If field name is similar like z1, z2, z3...etc then construct fiel-name and assign it to field-symbol and then you can check it inside loop for 12 months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 04:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653160#M290001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T04:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653161#M290002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best way to frame a question is to show the abap. Otherwise we arwe gussing what you structure looks like and may misunderstand you. Why didn't you put the data declarion in the question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aNYWAY, I am guessing that it's something like:&lt;/P&gt;&lt;P&gt;data: begin of work,&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;     month_tot1 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;     month_tot2 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;     month_tot3 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;     month_tot4 like bseg-wrbtr,&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;end of workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;tot&amp;gt; type bseg-wrbtr.&lt;/P&gt;&lt;P&gt;data: total like bseg-wrbtr,counter like sy-index&lt;/P&gt;&lt;P&gt;data: AVG like bseg-wrbtr,counter like sy-index.&lt;/P&gt;&lt;P&gt;data fname(30). &lt;/P&gt;&lt;P&gt;CLEAR: TOTAL,COUNTER,AVG.&lt;/P&gt;&lt;P&gt;do 12 TIMES.&lt;/P&gt;&lt;P&gt;concatenate 'WORK-MONTH_TOT' SY-INDEX INTO FNAM.&lt;/P&gt;&lt;P&gt;assigN (FNAM) TO &amp;lt;TOT&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF &amp;lt;TOT&amp;gt; &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;ADD 1 TO COUNTER.&lt;/P&gt;&lt;P&gt;ADD &amp;lt;TOT&amp;gt; TO TOTAL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;IF COUNTER &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;AVG = TOTAL / COUNTER.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 04:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-work-area/m-p/1653161#M290002</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-10-26T04:21:28Z</dc:date>
    </item>
  </channel>
</rss>

