<?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: Need function modules for the following... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476102#M223219</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; To use CALCULATE_EXCHANGE_RATE_N, you just have to pass the required parameters like foreign amount/currency and local amount/currency, instead you can query the table TCURR for the same data, remember to convert the 'DATE' to internal format before sending it in to the fm/table, you can refer the following code, this might help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE  V_date TO  LV_DATUM USING EDIT MASK '__.__.____'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         INPUT         = LV_DATUM&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT        = LV_DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve the Exchange rate from Custom table for the Exchange&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;        select ukurs from tcurr&lt;/P&gt;&lt;P&gt;        into tcurr-ukurs&lt;/P&gt;&lt;P&gt;        up to 1 rows&lt;/P&gt;&lt;P&gt;        where kurst = 'M'&lt;/P&gt;&lt;P&gt;        and   fcurr = komk-waerk&lt;/P&gt;&lt;P&gt;        and   tcurr = komk-HWAER&lt;/P&gt;&lt;P&gt;        and   gdatu &amp;gt;= LV_DATUM.&lt;/P&gt;&lt;P&gt;        endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2006 07:00:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-03T07:00:36Z</dc:date>
    <item>
      <title>Need function modules for the following...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476097#M223214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an function module that I can use for: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. get the last date for a given year&lt;/P&gt;&lt;P&gt;2. get the exchange rate for a given document number in a span of 5 years - &lt;/P&gt;&lt;P&gt;for example, I need to get the exchange rate of doc. number 0000000123&lt;/P&gt;&lt;P&gt;for the year 2000, 2001, 2002, 2003, 2004 and 2005(maximum of 5 years)    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476097#M223214</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-08-03T06:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need function modules for the following...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476098#M223215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;get the last date for a given year---&amp;gt; its always 31-12-'Year' u can hard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check &amp;lt;b&amp;gt;BAPI_EXCHANGERATE_GETDETAIL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhu Peram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476098#M223215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need function modules for the following...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476099#M223216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LAST DATE  31-12-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  U  WANT LAST DATE  FOR  FINACIAL YEAR..USE FM.&lt;/P&gt;&lt;P&gt;HR_E_GET_FISC_YEAR_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIRST_AND_LAST_DAY_IN_YEAR_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476099#M223216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need function modules for the following...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476100#M223217</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 the following, this might help,&lt;/P&gt;&lt;P&gt;1.To get last date in a year - LAST_DAY_IN_YEAR_GET &amp;amp; FIRST_AND_LAST_DAY_IN_YEAR_GET&lt;/P&gt;&lt;P&gt;2. To get the exchange rate - CALCULATE_EXCHANGE_RATE_N, to get the history of exchange rates for 5 years, you need to write a custom fm or a report, as the exchange rate would be fluctuating,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476100#M223217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need function modules for the following...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476101#M223218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have any examples on how to use BAPI_EXCHANGERATE_GETDETAIL and &lt;/P&gt;&lt;P&gt;CALCULATE_EXCHANGE_RATE_N?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476101#M223218</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-08-03T06:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need function modules for the following...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476102#M223219</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; To use CALCULATE_EXCHANGE_RATE_N, you just have to pass the required parameters like foreign amount/currency and local amount/currency, instead you can query the table TCURR for the same data, remember to convert the 'DATE' to internal format before sending it in to the fm/table, you can refer the following code, this might help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE  V_date TO  LV_DATUM USING EDIT MASK '__.__.____'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         INPUT         = LV_DATUM&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT        = LV_DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve the Exchange rate from Custom table for the Exchange&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;        select ukurs from tcurr&lt;/P&gt;&lt;P&gt;        into tcurr-ukurs&lt;/P&gt;&lt;P&gt;        up to 1 rows&lt;/P&gt;&lt;P&gt;        where kurst = 'M'&lt;/P&gt;&lt;P&gt;        and   fcurr = komk-waerk&lt;/P&gt;&lt;P&gt;        and   tcurr = komk-HWAER&lt;/P&gt;&lt;P&gt;        and   gdatu &amp;gt;= LV_DATUM.&lt;/P&gt;&lt;P&gt;        endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 07:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-function-modules-for-the-following/m-p/1476102#M223219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T07:00:36Z</dc:date>
    </item>
  </channel>
</rss>

