<?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: Convert currency to string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132992#M448543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;change ur code like this

REPORT YCHATEST.

DATA: L_MONEDA_IN TYPE WERTV8, L_MONEDA_OUT TYPE WERTV8.
DATA: L_IN(18) TYPE C, L_OUT(18).

L_IN = '1000.50'.
L_MONEDA_IN = L_IN.

CALL FUNCTION 'WLF_CURRENCY_DECIMAL_JUSTIFY'
  EXPORTING
    I_CURR_NEW   = 'INR'
    I_CURR_OLD   = 'INR'
    I_AMOUNT_OLD = L_MONEDA_IN
  IMPORTING
    E_AMOUNT_NEW = L_MONEDA_OUT.

WRITE: L_MONEDA_OUT TO L_OUT.
WRITE: L_OUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2007 09:36:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-18T09:36:25Z</dc:date>
    <item>
      <title>Convert currency to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132989#M448540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;Do you know any fuction module which convert a curency type, for example WERTV8 into a string type?&lt;/P&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_moneda_in TYPE WERTV8, l_moneda_out TYPE WERTV8.&lt;/P&gt;&lt;P&gt;data: l_in(18) TYPE c, l_out(18) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_in = '1000.50'.&lt;/P&gt;&lt;P&gt;l_moneda_in = l_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WLF_CURRENCY_DECIMAL_JUSTIFY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_curr_new = 'INR'&lt;/P&gt;&lt;P&gt;i_curr_old = 'INR'&lt;/P&gt;&lt;P&gt;i_amount_old = l_moneda_in&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_AMOUNT_NEW = l_moneda_out&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: l_moneda_out.&lt;/P&gt;&lt;P&gt;l_out = l_moneda_out.&lt;/P&gt;&lt;P&gt;write: l_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the correct value '1.000,50' in the l_out variable but although l_moneda_out write the correct value when I try to write l_out is incorrect.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 09:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132989#M448540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T09:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert currency to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132990#M448541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lorena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
write  l_moneda_out to l_out currency 'INR'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caglar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 09:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132990#M448541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert currency to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132991#M448542</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;Please try the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_moneda_in TYPE WERTV8, l_moneda_out TYPE WERTV8.&lt;/P&gt;&lt;P&gt;data: l_in(18) TYPE c, l_out(18) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_in = '1000.50'.&lt;/P&gt;&lt;P&gt;l_moneda_in = l_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WLF_CURRENCY_DECIMAL_JUSTIFY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_curr_new = 'INR'&lt;/P&gt;&lt;P&gt;i_curr_old = 'INR'&lt;/P&gt;&lt;P&gt;i_amount_old = l_moneda_in&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_AMOUNT_NEW = l_moneda_out&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: l_moneda_out.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;move l_moneda_out to l_out.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;write: l_out &amp;lt;b&amp;gt;currency 'INR'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 09:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132991#M448542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T09:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert currency to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132992#M448543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;change ur code like this

REPORT YCHATEST.

DATA: L_MONEDA_IN TYPE WERTV8, L_MONEDA_OUT TYPE WERTV8.
DATA: L_IN(18) TYPE C, L_OUT(18).

L_IN = '1000.50'.
L_MONEDA_IN = L_IN.

CALL FUNCTION 'WLF_CURRENCY_DECIMAL_JUSTIFY'
  EXPORTING
    I_CURR_NEW   = 'INR'
    I_CURR_OLD   = 'INR'
    I_AMOUNT_OLD = L_MONEDA_IN
  IMPORTING
    E_AMOUNT_NEW = L_MONEDA_OUT.

WRITE: L_MONEDA_OUT TO L_OUT.
WRITE: L_OUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 09:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-currency-to-string/m-p/2132992#M448543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T09:36:25Z</dc:date>
    </item>
  </channel>
</rss>

