<?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: Subtotal Currency in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086561#M977035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass the values to sort parameter of the alv display function module.&lt;/P&gt;&lt;P&gt;while filling the sort table pass the column name and pass value X to subtotal field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort table by two levels of hierarchy&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    REFRESH T_SORT.&lt;/P&gt;&lt;P&gt;    PERFORM PREPARE_SORTTABLE CHANGING T_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD W_GRID&lt;/P&gt;&lt;P&gt;-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        IS_LAYOUT                     = FS_LAYOUT&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        IT_OUTTAB                     = T_FINAL[]&lt;/P&gt;&lt;P&gt;        IT_FIELDCATALOG               = T_FLDCAT[]&lt;/P&gt;&lt;P&gt;        IT_SORT                       = T_SORT[]&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        INVALID_PARAMETER_COMBINATION = 1&lt;/P&gt;&lt;P&gt;        PROGRAM_ERROR                 = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_LINES                = 3&lt;/P&gt;&lt;P&gt;        OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure for sort table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    LFS_SORT TYPE LVC_S_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LFS_SORT-SPOS = '1'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-FIELDNAME = 'PRDHA1'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND LFS_SORT TO PV_T_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR LFS_SORT.&lt;/P&gt;&lt;P&gt;  LFS_SORT-SPOS = '2'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-FIELDNAME = 'PRDHA2'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND LFS_SORT TO PV_T_SORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 06:18:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T06:18:52Z</dc:date>
    <item>
      <title>Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086551#M977025</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; how to subtotal currency wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex;&lt;/P&gt;&lt;P&gt;10 EURO&lt;/P&gt;&lt;P&gt;20 EURO&lt;/P&gt;&lt;P&gt;30 USD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtotal: 40 EURO&lt;/P&gt;&lt;P&gt;             30 USD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086551#M977025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086552#M977026</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;FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K_KKB_SUBTOTALS_CHECK&lt;/P&gt;&lt;P&gt;LVC_KKB_SUBTOTALS_CHECK&lt;/P&gt;&lt;P&gt;PRICAT_SUBTOTALS_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope they may use to get your sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086552#M977026</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-08T05:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086553#M977027</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;check this link hope it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3796286"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086553#M977027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086554#M977028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; I want subtotal in ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086554#M977028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086555#M977029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gs_p,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of control statements. first sort the internal table by currency field. while looping the table.  Do as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab,

   w_total  =  w_total + wa-price.

   at end of curr.

       write :/ w_total.

   endat.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NagaSwapna Thota on Jul 8, 2008 7:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086555#M977029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086556#M977030</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;if u want to subtotals in alv there is field in fieldcatlog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatlog-datatype = 'CURR'.&lt;/P&gt;&lt;P&gt;fieldcatlog-do_some = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use these two fields to which field you want to subtotals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get the sub totals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086556#M977030</guid>
      <dc:creator>venkatasriram_mygapula</dc:creator>
      <dc:date>2008-07-08T05:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086557#M977031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  You can use sort table in ALV field catalog.Sort the table by &lt;/P&gt;&lt;P&gt;Currency and pass field curency to sort table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086557#M977031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086558#M977032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; If you use alv grid , subtotals will be given automatically.YOu can refer BCALV_GRID_02 .After excuting this you can click subtotal on currency field.You will get subtotal currency wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if help full&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086558#M977032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086559#M977033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi but i want to display Currency text like 40 EURO or 20 USD in subtotal line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086559#M977033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086560#M977034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can check the Link in the Above post mentioned by Suman...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you can give the subtotal text etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086560#M977034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086561#M977035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass the values to sort parameter of the alv display function module.&lt;/P&gt;&lt;P&gt;while filling the sort table pass the column name and pass value X to subtotal field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort table by two levels of hierarchy&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    REFRESH T_SORT.&lt;/P&gt;&lt;P&gt;    PERFORM PREPARE_SORTTABLE CHANGING T_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD W_GRID&lt;/P&gt;&lt;P&gt;-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        IS_LAYOUT                     = FS_LAYOUT&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        IT_OUTTAB                     = T_FINAL[]&lt;/P&gt;&lt;P&gt;        IT_FIELDCATALOG               = T_FLDCAT[]&lt;/P&gt;&lt;P&gt;        IT_SORT                       = T_SORT[]&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        INVALID_PARAMETER_COMBINATION = 1&lt;/P&gt;&lt;P&gt;        PROGRAM_ERROR                 = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_LINES                = 3&lt;/P&gt;&lt;P&gt;        OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure for sort table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    LFS_SORT TYPE LVC_S_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LFS_SORT-SPOS = '1'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-FIELDNAME = 'PRDHA1'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND LFS_SORT TO PV_T_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR LFS_SORT.&lt;/P&gt;&lt;P&gt;  LFS_SORT-SPOS = '2'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-FIELDNAME = 'PRDHA2'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;  LFS_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND LFS_SORT TO PV_T_SORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086561#M977035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086562#M977036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to display grid like BCALV_GRID_02 program when summation is clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one please help me getting this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086562#M977036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086563#M977037</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;Try using SORT on  the currency field and pass the same to Function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086563#M977037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086564#M977038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 08:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-currency/m-p/4086564#M977038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T08:45:39Z</dc:date>
    </item>
  </channel>
</rss>

