<?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: hi help in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001488#M76564</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;Here's another example (almost the same as Judith actually posted):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_CONVERT_CURR .

data: wa_amount(16)      type p.

parameters: p_date       type sy-datum default sy-datum.
parameters: p_amount(16) type p.
parameters: p_local      type TCURR-TCURR.
parameters: p_forei      type TCURR-FCURR.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
*   CLIENT                  = SY-MANDT
    date                    = p_date
    foreign_amount          = p_amount
    foreign_currency        = p_forei
    local_currency          = p_local
*   RATE                    = 0
*   TYPE_OF_RATE            = 'M'
*   READ_TCURR              = 'X'
  IMPORTING
*   EXCHANGE_RATE           =
*   FOREIGN_FACTOR          =
    LOCAL_AMOUNT            = wa_amount
*   LOCAL_FACTOR            =
*   EXCHANGE_RATEX          =
*   FIXED_RATE              =
*   DERIVED_RATE_TYPE       =
* EXCEPTIONS
*   NO_RATE_FOUND           = 1
*   OVERFLOW                = 2
*   NO_FACTORS_FOUND        = 3
*   NO_SPREAD_FOUND         = 4
*   DERIVED_2_TIMES         = 5
*   OTHERS                  = 6
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

write: / wa_amount.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2005 06:14:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-06T06:14:22Z</dc:date>
    <item>
      <title>hi help in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001484#M76560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; what are the function modules do we use for the conversion of currency and units. &lt;/P&gt;&lt;P&gt;   1) i want to convert currency(US$) to INR.&lt;/P&gt;&lt;P&gt;   2) and to convert from one unit to another unit.&lt;/P&gt;&lt;P&gt;before using these function modules what we have to do in bdcs.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 05:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001484#M76560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T05:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: hi help in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001485#M76561</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;For currency conversion use the function module CONVERT_TO_LOCAL_CURRENCY and for unit conversion UNIT_CONVERSION_SIMPLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 05:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001485#M76561</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-10-06T05:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: hi help in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001486#M76562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For units conversion check this'CF_UT_UNIT_CONVERSION'&lt;/P&gt;&lt;P&gt;Currency if you are changing to local it is 'CONVERT_TO_LOCAL_CURRENCY_N'.&lt;/P&gt;&lt;P&gt;check i hope it will help you.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If your issue is solved award points and close thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 06:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001486#M76562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T06:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: hi help in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001487#M76563</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 sample code,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
    EXPORTING
*     CLIENT                  = SY-MANDT
      DATE                    = pdate
      FOREIGN_AMOUNT          = p_amt1
      FOREIGN_CURRENCY        = p_curr1
      LOCAL_CURRENCY          = p_curr2
*     RATE                    = 0
*     TYPE_OF_RATE            = 'M'
*     READ_TCURR              = 'X'
    IMPORTING
      EXCHANGE_RATE           = w_rate
      FOREIGN_FACTOR          = w_fact1
      LOCAL_AMOUNT            = w_amt
      LOCAL_FACTOR            = w_fact2
*     EXCHANGE_RATEX          =
*     FIXED_RATE              =
*     DERIVED_RATE_TYPE       =
    EXCEPTIONS
      NO_RATE_FOUND           = 1
      OVERFLOW                = 2
      NO_FACTORS_FOUND        = 3
      NO_SPREAD_FOUND         = 4
      DERIVED_2_TIMES         = 5
      OTHERS                  = 6.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    write: / 'Conversion to loc.curr. failed:',
             p_curr1, '-&amp;gt;', p_curr2, 'err.code=', sy-subrc.
  ELSE.
    write: / 'to Loc.curr:', p_amt1 currency p_curr1, p_curr1, '-&amp;gt;',
           w_amt currency p_curr2, p_curr2,
           '(', w_rate, ')', w_fact1, w_fact2.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/examples/currconv.txt" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/examples/currconv.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONVERSION_FACTOR_GET&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Measurement unit conversion:&amp;lt;/b&amp;gt; Get measurement unit conversion factor  Not for Dimensionless Units of Measure  &lt;/P&gt;&lt;P&gt;UNIT_CONVERSION_SIMPLE  Measurement unit conversion by table T006, with rounding  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;UNIT_OF_MEASURE_SAP_TO_ISO  

UNIT_OF_MEASURE_ISO_TO_SAP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;MATERIAL_UNIT_CONVERSION  Material quantity conversion from Base Unit of Measure to Alternative Unit of Measure and vice versa.  For Dimensionless Units of Measure (Each, Piece, Box etc.) conversion depends on the given Material (see table MARM). For other Units of Measure (Length, Weigth etc.) conversion can be calculated from the T006 table or via CONVERSION_FACTOR_GET. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_CUNIT_INPUT  Conversion exit for commercial (3-char) measurement unit INPUT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_CUNIT_OUTPUT  Conversion exit for commercial (3-char) measurement unit OUTPUT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_LUNIT_INPUT  Conversion exit for technical (6-char) measurement unit INPUT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_LUNIT_OUTPUT  Conversion exit for technical (6-char) measurement unit OUTPUT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNIT_OF_MEASUREMENT_HELP  Input help for measurement units of a predefined dimension  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abapfun.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abapfun.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 06:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001487#M76563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T06:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: hi help in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001488#M76564</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;Here's another example (almost the same as Judith actually posted):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_CONVERT_CURR .

data: wa_amount(16)      type p.

parameters: p_date       type sy-datum default sy-datum.
parameters: p_amount(16) type p.
parameters: p_local      type TCURR-TCURR.
parameters: p_forei      type TCURR-FCURR.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
*   CLIENT                  = SY-MANDT
    date                    = p_date
    foreign_amount          = p_amount
    foreign_currency        = p_forei
    local_currency          = p_local
*   RATE                    = 0
*   TYPE_OF_RATE            = 'M'
*   READ_TCURR              = 'X'
  IMPORTING
*   EXCHANGE_RATE           =
*   FOREIGN_FACTOR          =
    LOCAL_AMOUNT            = wa_amount
*   LOCAL_FACTOR            =
*   EXCHANGE_RATEX          =
*   FIXED_RATE              =
*   DERIVED_RATE_TYPE       =
* EXCEPTIONS
*   NO_RATE_FOUND           = 1
*   OVERFLOW                = 2
*   NO_FACTORS_FOUND        = 3
*   NO_SPREAD_FOUND         = 4
*   DERIVED_2_TIMES         = 5
*   OTHERS                  = 6
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

write: / wa_amount.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 06:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001488#M76564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T06:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: hi help in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001489#M76565</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; For Currency Conversion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using the below FM go to the transaction &amp;lt;b&amp;gt;OB08&amp;lt;/b&amp;gt; and check whether the &amp;lt;b&amp;gt;From&amp;lt;/b&amp;gt;(USD in this case) and &amp;lt;b&amp;gt;TO&amp;lt;/b&amp;gt;(INR in this case) currency you are passing in the FM exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not there it'll throw out an error. You can add your own currency entries and save it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data w_val  type curr09.&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;b&amp;gt;'CONVERT_TO_LOCAL_CURRENCY'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          date             = sy-datum&lt;/P&gt;&lt;P&gt;          foreign_amount   = '100' "your table-field&lt;/P&gt;&lt;P&gt;          foreign_currency = 'USD'&lt;/P&gt;&lt;P&gt;          local_currency   = 'INR'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          local_amount     = w_val. "Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if this explanation is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Siva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sivakumar Muthusamy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 06:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-help-in-function-module/m-p/1001489#M76565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T06:19:37Z</dc:date>
    </item>
  </channel>
</rss>

