<?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: Currency Conversion in SAP Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976914#M71068</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;only the call of the fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
          date             = sy-datum
          foreign_amount   = BSEG-DMBTR "your table-field
          foreign_currency = 'NOK'
          local_currency   = 'EUR'
     IMPORTING
          local_amount     = testcurr. "your add. field
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2005 12:57:29 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2005-10-04T12:57:29Z</dc:date>
    <item>
      <title>Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976905#M71059</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;I have created a query where I am reading a table with currency = NOK. I need to convert this currency to EUR before saving it to a file. I have searched SAP Library and found the "Convert" function under ABC Analysis, but I do not think I can use this since I am going to save directly to a file. (In DBF Format). Somebody know how to solve this? Another possibility could be to be able to save in DBF-format directly from the MCIS (Information structure)reports, but I think this is not possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankful for any answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen Odegaard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976905#M71059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976906#M71060</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 CURRENCY_DOCUMENT_CONVERT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976906#M71060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976907#M71061</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're talking about sq01 / sq02 `&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than you can solve it with an additional field (e.g. btr2)and an additional coding at event GET / record processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; use fm  'CONVERT_TO_LOCAL_CURRENCY' to convert your value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976907#M71061</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-10-04T09:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976908#M71062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes I am using SQ01, SQ02. I think you can help me with my questions, but I am not an advanced user/programmer. Therefore I have additional questions for you which I hope you can help me with: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How can I create an extra field? I have app. 10 currency fields and then I would like to have only the fields in the new currency, not the old. (Because of the list width) Do I have to adjust the table?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How can I create an additional coding at event GET / record processing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. How can I insert formulas in queries? In the table I use it is only one currency.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you still find the energy to help me &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 11:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976908#M71062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976909#M71063</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;in SQ02 there is a option called EXTRAS, click that one you find additional field/code/&lt;/P&gt;&lt;P&gt;add one field &lt;/P&gt;&lt;P&gt;curr1 like vbap-netpr then click code there you write relevant procedure for currency conversion&lt;/P&gt;&lt;P&gt;for ex in your case use FM CONVERT_TO_LOCAL_CURRENCY for this fm you should pass from currency, to currency , type,date and value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 11:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976909#M71063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T11:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976910#M71064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting closer and closer to the solution! Now I have created an extra field in the Infoset in SQ02, called testcurr. Then I selected the tab "code".&lt;/P&gt;&lt;P&gt;And new questions appeared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 I entered the function module in "coding section" = Record Processing like mentioned earlier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Should I enter the whole source code of the function module CONVERT_TO_LOCAL_CURRENCY in her?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 How do I pass the variables? &lt;/P&gt;&lt;P&gt;from currency (= fixed value NOK) and to Currency (= fixed value= EUR). What type should I use? And the date and value are variables, so how could I put them in here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about all these questions, but If you don't ask you will get no answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ellen Odegaard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 12:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976910#M71064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T12:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976911#M71065</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;1. in the new field you can see the code for the relevant field ( or try with start-of-selection)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. yes there you should place the FM&lt;/P&gt;&lt;P&gt;  from_currency = 'NOK'&lt;/P&gt;&lt;P&gt;  to_currency = 'EUR'&lt;/P&gt;&lt;P&gt;  date = sy-datum&lt;/P&gt;&lt;P&gt;  value = vbap~netpr ( table name ~ field name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 12:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976911#M71065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T12:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976912#M71066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point 2 is still not clear for me.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Should I put in the source code (256 lines) of the function module here, or should I just put in a reference to the Function module like: &lt;/P&gt;&lt;P&gt;FM convert_to_local_currency;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Where should I put in the import variables you refer to? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. When I push "single test" of the Function module I get these import parameters: &lt;/P&gt;&lt;P&gt;                                         &lt;/P&gt;&lt;P&gt;CLIENT                          210      &lt;/P&gt;&lt;P&gt;DATE                                     &lt;/P&gt;&lt;P&gt;FOREIGN_AMOUNT                           &lt;/P&gt;&lt;P&gt;FOREIGN_CURRENCY                         &lt;/P&gt;&lt;P&gt;LOCAL_CURRENCY                           &lt;/P&gt;&lt;P&gt;RATE                            0        &lt;/P&gt;&lt;P&gt;TYPE_OF_RATE                    M        &lt;/P&gt;&lt;P&gt;READ_TCURR                      X        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the import parameters you are reffering to? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 12:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976912#M71066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976913#M71067</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;don't put source code, just call the function module &lt;/P&gt;&lt;P&gt;goto one program (se38 ) in pattern - &amp;gt; enter the function module , it list out the fm details then copy the FM and paste it into the sq02 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the importing parameters are correct &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i don't have system otherwiste i will paste exact code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 12:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976913#M71067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T12:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976914#M71068</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;only the call of the fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
          date             = sy-datum
          foreign_amount   = BSEG-DMBTR "your table-field
          foreign_currency = 'NOK'
          local_currency   = 'EUR'
     IMPORTING
          local_amount     = testcurr. "your add. field
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 12:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976914#M71068</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-10-04T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Conversion in SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976915#M71069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all very much &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to generate the infoset now, and hopefully it works also by testing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never tried this forum before, and this was a very positive experience &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 13:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-in-sap-query/m-p/976915#M71069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T13:30:49Z</dc:date>
    </item>
  </channel>
</rss>

