<?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 Function Module REUSE_ALV_GRID_DISPLAY: Problem with currency display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-grid-display-problem-with-currency-display/m-p/1997622#M406318</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;I am trying to solve the following problem in displaying ALV Grid using REUSE_ALV_GRID_DISPLAY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Requirement:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;I am having the currency column field with value 241160.00 in the output table. I also have a currency column field which is used for currency key in the output table. What is required is to display the value with or without decimals depending on the currency column field. The value of the currency key may change. I have used CFIELDNAME for the currency value column with column name of the currency key in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Problem:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;When Taiwanese Dollar (TWD) comes in the currency key column then the value is displayed is 24,116,000 and if US Dollar (USD) comes in the currency key, value displayed is 241,160.00. If Bahrain Deenar (BHD) comes in here, value displayed is 24,116.000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2007 07:39:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-07T07:39:31Z</dc:date>
    <item>
      <title>Function Module REUSE_ALV_GRID_DISPLAY: Problem with currency display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-grid-display-problem-with-currency-display/m-p/1997622#M406318</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;I am trying to solve the following problem in displaying ALV Grid using REUSE_ALV_GRID_DISPLAY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Requirement:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;I am having the currency column field with value 241160.00 in the output table. I also have a currency column field which is used for currency key in the output table. What is required is to display the value with or without decimals depending on the currency column field. The value of the currency key may change. I have used CFIELDNAME for the currency value column with column name of the currency key in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Problem:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;When Taiwanese Dollar (TWD) comes in the currency key column then the value is displayed is 24,116,000 and if US Dollar (USD) comes in the currency key, value displayed is 241,160.00. If Bahrain Deenar (BHD) comes in here, value displayed is 24,116.000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 07:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-grid-display-problem-with-currency-display/m-p/1997622#M406318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T07:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module REUSE_ALV_GRID_DISPLAY: Problem with currency display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-grid-display-problem-with-currency-display/m-p/1997623#M406319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. just copy paste&lt;/P&gt;&lt;P&gt;2. it will display correct currency format in alv,&lt;/P&gt;&lt;P&gt;    based upon different currencies in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        f1  LIKE p0008-bet01,&lt;/P&gt;&lt;P&gt;        waers LIKE tcurc-waers,&lt;/P&gt;&lt;P&gt;        END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-f1 = '-4.15'.&lt;/P&gt;&lt;P&gt;  itab-waers = 'KRW'.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-f1 = '4.68'.&lt;/P&gt;&lt;P&gt;  itab-waers = 'GBP'.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-f1 = '500000'.&lt;/P&gt;&lt;P&gt;  itab-waers = 'USD'.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-f1 = '500000'.&lt;/P&gt;&lt;P&gt;  itab-waers = 'INR'.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-f1 = '500000'.&lt;/P&gt;&lt;P&gt;  itab-waers = 'GBP'.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_program_name     = sy-repid&lt;/P&gt;&lt;P&gt;      i_internal_tabname = 'ITAB'&lt;/P&gt;&lt;P&gt;      i_inclname         = sy-repid&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat        = alvfc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;      it_fieldcat        = alvfc&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab           = itab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 07:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-grid-display-problem-with-currency-display/m-p/1997623#M406319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T07:46:38Z</dc:date>
    </item>
  </channel>
</rss>

