<?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: alv output issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201564#M1910275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to hide column as per selection in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need to achieve 2 thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. hide in fieldcat log&lt;/P&gt;&lt;P&gt;2.correct amount should add in totaling column (i.e last column)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="56711" data-externalid="" data-presence="null" data-userid="330870" data-username="rodrigoariel.ginerdelavega" href="https://answers.sap.com/people/rodrigoariel.ginerdelavega"&gt;Rodrigo Ariel Giner de la Vega&lt;/A&gt; way for first point.&lt;/P&gt;&lt;P&gt;second at the time of assign value to wa_final-(column name) check with so_per . if found value goes to column and added in to wa_final-ztotal &amp;amp; if not in period the wa_final-(column name) will blank and which not impact the totaling of amount .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;if xyz in so_per.&lt;/P&gt;
&lt;P&gt;wa_final-hslxyz = lv_totalxyz.&lt;/P&gt;
&lt;P&gt;endif.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;wa_final-ztotal = wa_final-hsl1 + wa_final-hsl2 + wa_final-hsl3 + wa_final-hsl4 + wa_final-hsl5 + wa_final-hsl6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + wa_final-hsl7 + wa_final-hsl8 + wa_final-hsl9 + wa_final-hsl10 + wa_final-hsl11 +&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_final-hsl12 + wa_final-hsl13 + wa_final-hsl14 + wa_final-hsl15 + wa_final-hsl16.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will help You &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1291/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swadhin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 10:58:03 GMT</pubDate>
    <dc:creator>SwadhinGhatuary</dc:creator>
    <dc:date>2015-06-29T10:58:03Z</dc:date>
    <item>
      <title>alv output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201562#M1910273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have designed a classical ALV for displaying totals of amount. The logic is that the field&amp;nbsp; POPER from FAGLFLEXA is equal to a month of a financial year. For instance POPER = 1 corresponds to April , POPER = 2 corresponds to May, POPER = 3 corresponds to June and so on. The ALV displays the total of the amount for each month. Example, the month of April shows the total of amount for April given by the field HSL01. The month of May shows the total of amount for May represented by field HSL02, so on. The output is coming perfectly fine in my output. But if i am giving&amp;nbsp; any range of POPER in the selection screen , it is displaying totals for all the months. For example, if i give 5 to 12 as period in selection screen, it is displaying the totals of all the months from&amp;nbsp; 1 to 12. I need to display only the totals from 5 to 12. How to solve this issue. Please go through the code and screenshots for complete understanding. Please help with code. Points will be duly rewarded. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurav Lahiry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 18:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201562#M1910273</guid>
      <dc:creator>former_member574106</dc:creator>
      <dc:date>2015-06-26T18:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: alv output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201563#M1910274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurav, if I understood correctly you wan't to show the columns (months) depending the ones selected in selection screen, right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case just check when you create the fieldcat if the POPER entered in the selection should be showed or not, if not set the field no_output = 'X' in the fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if you give like u said 5 to 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each column in the fieldcat do this conditional&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* POPER 1 = c_poper1 = 1&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;wa_fieldcat-col_pos&lt;/TD&gt;&lt;TD&gt;= '3'.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;wa_fieldcat-fieldname&amp;nbsp; = 'HSL1'.&lt;/TD&gt;&lt;TD&gt;" Fieldname in the data table&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; wa_fieldcat-seltext_m&amp;nbsp; = 'April'.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; wa_fieldcat-do_sum&lt;/TD&gt;&lt;TD&gt;= 'X'.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;IF c_poper1 IN so_per. "c_poper1 should have value 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; wa_fieldcat-no_output = ' '.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; wa_fieldcat-no_output = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPEND wa_fieldcat&amp;nbsp; TO it_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR&amp;nbsp;&amp;nbsp; wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following just use another constants&lt;/P&gt;&lt;P&gt;IF c_poper2 IN so_per.&amp;nbsp; "c_poper2 should have value 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; wa_fieldcat-no_output = ' '.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; wa_fieldcat-no_output = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 22:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201563#M1910274</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2015-06-26T22:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: alv output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201564#M1910275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to hide column as per selection in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need to achieve 2 thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. hide in fieldcat log&lt;/P&gt;&lt;P&gt;2.correct amount should add in totaling column (i.e last column)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="56711" data-externalid="" data-presence="null" data-userid="330870" data-username="rodrigoariel.ginerdelavega" href="https://answers.sap.com/people/rodrigoariel.ginerdelavega"&gt;Rodrigo Ariel Giner de la Vega&lt;/A&gt; way for first point.&lt;/P&gt;&lt;P&gt;second at the time of assign value to wa_final-(column name) check with so_per . if found value goes to column and added in to wa_final-ztotal &amp;amp; if not in period the wa_final-(column name) will blank and which not impact the totaling of amount .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;if xyz in so_per.&lt;/P&gt;
&lt;P&gt;wa_final-hslxyz = lv_totalxyz.&lt;/P&gt;
&lt;P&gt;endif.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;wa_final-ztotal = wa_final-hsl1 + wa_final-hsl2 + wa_final-hsl3 + wa_final-hsl4 + wa_final-hsl5 + wa_final-hsl6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + wa_final-hsl7 + wa_final-hsl8 + wa_final-hsl9 + wa_final-hsl10 + wa_final-hsl11 +&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_final-hsl12 + wa_final-hsl13 + wa_final-hsl14 + wa_final-hsl15 + wa_final-hsl16.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will help You &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1291/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swadhin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 10:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201564#M1910275</guid>
      <dc:creator>SwadhinGhatuary</dc:creator>
      <dc:date>2015-06-29T10:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: alv output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201565#M1910276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodrigo,&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply. It worked perfectly. Awarding points.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurav Lahiry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 14:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201565#M1910276</guid>
      <dc:creator>former_member574106</dc:creator>
      <dc:date>2015-06-30T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: alv output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201566#M1910277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swadhin,&lt;/P&gt;&lt;P&gt;Issue already solved. Thanks a lot for the tips.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurav Lahiry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 14:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-issue/m-p/11201566#M1910277</guid>
      <dc:creator>former_member574106</dc:creator>
      <dc:date>2015-06-30T14:31:55Z</dc:date>
    </item>
  </channel>
</rss>

