<?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 Grid Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367658#M1922646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO there is a flow in the design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the output will look if we have multiple party code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will happen if the user sort the ALV ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CL_GUI_ALV_GRID and CL_GUI_ALV_GRID-&amp;gt;GET_SUBTOTALS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like here &lt;A href="https://scn.sap.com/thread/1223283" title="https://scn.sap.com/thread/1223283"&gt;Modify grand total in ALV GRID | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or here &lt;A href="https://scn.sap.com/thread/1276240" title="https://scn.sap.com/thread/1276240"&gt;OO ALV modifed subtotals changes on layout change | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is IMHO better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 05:00:52 GMT</pubDate>
    <dc:creator>rosenberg_eitan</dc:creator>
    <dc:date>2015-10-01T05:00:52Z</dc:date>
    <item>
      <title>Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367651#M1922639</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;Good morning.&lt;/P&gt;&lt;P&gt;i want to display an empty row in my alv grid display output to calculate the subtotal , grand total.&lt;/P&gt;&lt;P&gt;How can i display the&amp;nbsp; format according to that.&lt;/P&gt;&lt;P&gt;Any one can please tell, i attached sample output,please verify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sagar.K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367651#M1922639</guid>
      <dc:creator>former_member496109</dc:creator>
      <dc:date>2015-10-01T04:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367652#M1922640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your field catalog u can use do_sum automatically the sum will be calculated.&lt;/P&gt;&lt;P&gt;In which column u need sum u just use the below code..&lt;/P&gt;&lt;P&gt;don't use for description column , only use for amount column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; wa_fieldcat&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;fieldname&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'LOCCURAM'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; wa_fieldcat&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;seltext_m&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Price'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*Calculate Total for Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_fieldcat&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;do_sum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;wa_fieldcat &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;it_fieldcat&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/800884" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367652#M1922640</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2015-10-01T04:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367653#M1922641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Actually my requirement is exactly as i kept in sample output(&lt;STRONG&gt;like i have to write TOTAL&lt;/STRONG&gt;=----------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLOSING BALANCING = ------------&lt;/STRONG&gt;&amp;nbsp; ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367653#M1922641</guid>
      <dc:creator>former_member496109</dc:creator>
      <dc:date>2015-10-01T04:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367654#M1922642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before calling Fm- 'reuse_alv_grid_display'.&lt;/P&gt;&lt;P&gt;add one extra row to your final itab. final means which itab has data to print in outputlist in alv grid,&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before coming to this step add your total debit and credit and keep in seperate variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_final-debit =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'v_debit'. ----&amp;gt;'debit amount variable'.&lt;/P&gt;&lt;P&gt;wa_final-credit = v_credit'.----&amp;gt;'credit amount variable'.&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and hear v_gt = v_debit + v_credit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_final.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;wa_final-fieldname = 'grand total'.&amp;nbsp; "this is just a text to print as grand total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;wa_final-debit = 'v_gt'. --&amp;gt;grandtotal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;append wa_fianl to it_final.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;now assign this it_final to function module.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367654#M1922642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T04:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367655#M1922643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sagar kotyada try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalculateTotal and Closing balancing in program level and append into final internal table using control break statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367655#M1922643</guid>
      <dc:creator>former_member669309</dc:creator>
      <dc:date>2015-10-01T04:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367656#M1922644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI chinna,&lt;/P&gt;&lt;P&gt;Thank you for you answer,&lt;/P&gt;&lt;P&gt;Have a good day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367656#M1922644</guid>
      <dc:creator>former_member496109</dc:creator>
      <dc:date>2015-10-01T04:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367657#M1922645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort your internal table on party code&lt;/P&gt;&lt;P&gt;Loop your internal table and and add a row with calculation of Debit/credit and add row at end of party code&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Party code&amp;gt; = ''.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;old party code &amp;gt; = ''.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Party name&amp;gt; = 'Total:'.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Debit&amp;gt; = Calculation of Debit.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Creadit&amp;gt;= Calculation of Creadit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Party code&amp;gt; = ''.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;old party code &amp;gt; = ''.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Party name&amp;gt; = 'clsong Balance:'.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Debit&amp;gt; = Calculation of Debit.&lt;/P&gt;&lt;P&gt;&amp;lt;work_area&amp;gt;-&amp;lt;Creadit&amp;gt;= Calculation of Creadit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append thisto Internal Table&lt;/P&gt;&lt;P&gt;OR share your code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahipalsinh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367657#M1922645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T04:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367658#M1922646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO there is a flow in the design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the output will look if we have multiple party code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will happen if the user sort the ALV ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CL_GUI_ALV_GRID and CL_GUI_ALV_GRID-&amp;gt;GET_SUBTOTALS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like here &lt;A href="https://scn.sap.com/thread/1223283" title="https://scn.sap.com/thread/1223283"&gt;Modify grand total in ALV GRID | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or here &lt;A href="https://scn.sap.com/thread/1276240" title="https://scn.sap.com/thread/1276240"&gt;OO ALV modifed subtotals changes on layout change | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is IMHO better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 05:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/11367658#M1922646</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2015-10-01T05:00:52Z</dc:date>
    </item>
  </channel>
</rss>

