<?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 Data type conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347962#M1398451</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;&lt;/P&gt;&lt;P&gt; i have a question on data type conversion. My requirement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i have fields of type packed decimal in my internal table itab. I need to convert the values of packed decimal fields in itab to numeric type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;Data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;            ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;            ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;            menge(15) type p decimals 2,&lt;/P&gt;&lt;P&gt;            netpr(15) type p decimals 2,&lt;/P&gt;&lt;P&gt;          end of itab.  &lt;/P&gt;&lt;P&gt;if itab-menge has a value of 2.00, i need to convert that value to '         200'.  Right justified.&lt;/P&gt;&lt;P&gt;if itab-netpr has a value of 1,234.56, i need to convert that to '         123456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above internal table itab is passed to the Function module GUI_DOWNLOAD and the itab data is downloaded to a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to acheive this objective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2009 06:11:35 GMT</pubDate>
    <dc:creator>rnb86</dc:creator>
    <dc:date>2009-11-11T06:11:35Z</dc:date>
    <item>
      <title>Data type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347962#M1398451</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;&lt;/P&gt;&lt;P&gt; i have a question on data type conversion. My requirement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i have fields of type packed decimal in my internal table itab. I need to convert the values of packed decimal fields in itab to numeric type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;Data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;            ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;            ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;            menge(15) type p decimals 2,&lt;/P&gt;&lt;P&gt;            netpr(15) type p decimals 2,&lt;/P&gt;&lt;P&gt;          end of itab.  &lt;/P&gt;&lt;P&gt;if itab-menge has a value of 2.00, i need to convert that value to '         200'.  Right justified.&lt;/P&gt;&lt;P&gt;if itab-netpr has a value of 1,234.56, i need to convert that to '         123456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above internal table itab is passed to the Function module GUI_DOWNLOAD and the itab data is downloaded to a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to acheive this objective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 06:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347962#M1398451</guid>
      <dc:creator>rnb86</dc:creator>
      <dc:date>2009-11-11T06:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347963#M1398452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 08:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347963#M1398452</guid>
      <dc:creator>rnb86</dc:creator>
      <dc:date>2009-11-11T08:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347964#M1398453</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;You can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MENGE(15) TYPE P DECIMALS 2,&lt;/P&gt;&lt;P&gt;            V_NO(17) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE MENGE TO V_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE V_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '.' IN V_NO WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE V_NO NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 09:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/6347964#M1398453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-11T09:04:13Z</dc:date>
    </item>
  </channel>
</rss>

