<?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: type casting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385564#M530051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the field catalog internal table..For the currency field you have to populate the cfieldname with the currency field name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;VALUE TYPE MBEW-STPRS,&lt;/P&gt;&lt;P&gt;CURRENCY TYPE 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field catalog..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_FIELDCATALOG-FIELDNAME = 'VALUE'.&lt;/P&gt;&lt;P&gt;S_FIELDCATALOG-cfieldname = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;S_FIELDCATALOG-TABNAME = 'ITAB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will display the decimal places according to the currency in the column CURRENCY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 07:14:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T07:14:26Z</dc:date>
    <item>
      <title>type casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385562#M530049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;how to display an hiphan &lt;SPAN __jive_emoticon_name="minus"&gt;&lt;/SPAN&gt; for default value of currency field in alv..???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 06:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385562#M530049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: type casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385563#M530050</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 u want to display hyphen(-) for default value of currency field in alv...u need to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for watever  field to which u wish to display hyphen(-) for default currency ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-cfieldname = '-'  "cfieldname is the currency field for the respective field.&lt;/P&gt;&lt;P&gt;append wa_fieldcat to fieldcat.&lt;/P&gt;&lt;P&gt;clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if found useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;abc xyz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385563#M530050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: type casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385564#M530051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the field catalog internal table..For the currency field you have to populate the cfieldname with the currency field name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;VALUE TYPE MBEW-STPRS,&lt;/P&gt;&lt;P&gt;CURRENCY TYPE 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field catalog..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_FIELDCATALOG-FIELDNAME = 'VALUE'.&lt;/P&gt;&lt;P&gt;S_FIELDCATALOG-cfieldname = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;S_FIELDCATALOG-TABNAME = 'ITAB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will display the decimal places according to the currency in the column CURRENCY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385564#M530051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: type casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385565#M530052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what should be the cfieldname..       i am not getting it..&lt;/P&gt;&lt;P&gt;would u plz explain it with example..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/2385565#M530052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:25:25Z</dc:date>
    </item>
  </channel>
</rss>

