<?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: Parameter in FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567653#M1432301</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;Copy the standard BAPI into a custom BAPI and change the exch_rate to whatever data type you need by creating a data element .And execute the BAPI and check how it behaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jyo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 13:16:00 GMT</pubDate>
    <dc:creator>jyotheswar_p2</dc:creator>
    <dc:date>2010-02-02T13:16:00Z</dc:date>
    <item>
      <title>Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567652#M1432300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF it_struc,
            exch_rate(10) TYPE c.
           END OF it_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : it_final TYPE STANDARD TABLE OF it_struc,
         wa_final TYPE it_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA : wa_1 TYPE bapi1093_0,
           str(200) TYPE c.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_final INTO wa_final.
           CALL FUNCTION 'C147_STRING_TRUNCATE'
      EXPORTING
        i_string     = wa_final-exch_rate
        i_maxlen     = 7
        i_terminator = ' '
      IMPORTING
        e_string     = str." WA_1-EXCH_RATE .

    wa_1-exch_rate = str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_EXCHANGERATE_CREATE'
      EXPORTING
        exch_rate        = wa_1
        upd_allow        = 'X'
*   CHG_FIXED        = ' '
*   DEV_ALLOW        = '000'
     IMPORTING
       return           = return2
       rate_type        = returntype
*   FROM_CURR        =
*   TO_CURRNCY       =&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My Requirement was to upload exchange rates from flat file to OB08.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have my first currency having exchange rate as &lt;STRONG&gt;185.25123&lt;/STRONG&gt;. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Dividing by 1 i.e. i/185.25123 it is 0.0053981.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the FM 'C147_STRING_TRUNCATE'  to get only 7 places.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My issue is &lt;STRONG&gt;'BAPI_EXCHANGERATE_CREATE'&lt;/STRONG&gt; has exch_rate as a parameter of decimal value  5 and length 9.&lt;/P&gt;&lt;P&gt;So when i pass it i.e. 0.0053981.... via this FM it shows as 0.00540.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want as 0.0053981. How to get with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jmello.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567652#M1432300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567653#M1432301</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;Copy the standard BAPI into a custom BAPI and change the exch_rate to whatever data type you need by creating a data element .And execute the BAPI and check how it behaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jyo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567653#M1432301</guid>
      <dc:creator>jyotheswar_p2</dc:creator>
      <dc:date>2010-02-02T13:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567654#M1432302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope that should work...Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can there be any alternative way around?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567654#M1432302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567655#M1432303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While copying the FM its giving message " Function module name is reserved for SAP".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567655#M1432303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567656#M1432304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567656#M1432304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567657#M1432305</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;Function module customer name range is usually starting with a Z (or Y) with an underscore (_) in the second character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, the message you're getting is only a warning, so you can enter through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567657#M1432305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567658#M1432306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nick for the reply... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other way round without copying the FM to get my solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567658#M1432306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567659#M1432307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the fields FROM_FACTOR and TO_FACTOR of EXCH_RATE structure to keep the rate in the range allowed by the BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(as specified in the online documentation of the parameter)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;The exchange rate must be greater than zero and smaller than 9999.99999, and can be entered with up to five decimal places.&lt;/P&gt;&lt;P&gt;The exchange rate relation (or exchange rate factors) serves as an entry for exchange rates which are smaller than 0.00001 or greater than 10000. Entries can only be made in the form "1 : to the power of 10" or "to the power of ten : 1". "To the power of 10" means one of the following numbers: 1, 10, 100, ..., 100000000.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567659#M1432307</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-02-02T13:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567660#M1432308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0.0053981.... is my result that i need in OB08 &lt;STRONG&gt;BUT&lt;/STRONG&gt;via this FM it shows as 0.00540.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want 0.0053981. How to get with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing when i copy the FM it gives an error saying "Function group BUS1093 is SAP-specific"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567660#M1432308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T13:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567661#M1432309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a factor 10 (0.0053981 becomes 0.053981 per 10)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 14:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567661#M1432309</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-02-02T14:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567662#M1432310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Luck!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JohnMell02 on Feb 2, 2010 3:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 14:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567662#M1432310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567663#M1432311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont forget that your rate will be stored in table TCURR field UKURS, so 5 decimal positions and none more, forget the idea to store a 6th decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your report should begin with a call of BAPI_EXCHANGERATE_GETFACTORS which will give your the factor that you will use in BAPI_EXCHANGERATE_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(Godverdom, i answered too fast, correct answer was Use a factor 100 (0.0053981 becomes 0.53981 per 100, more exactly, divide 100 (or the factor rate returned by get factors) by the reverse rate and not 1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 14:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-in-fm/m-p/6567663#M1432311</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-02-02T14:44:14Z</dc:date>
    </item>
  </channel>
</rss>

