<?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: how can i get currency values from flatfile to function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399169#M1405963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish or Baskaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First conform in which format the flat file is present, as abhi mentioned if it is there in notepad&lt;/P&gt;&lt;P&gt;try to use F.M GUI_UPLOAD as shown below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'C:\Desktop\rpf1.TXT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt; DATA_TAB =  ITAB.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now loop at ITAB Into Work_area and press the respect currency fields which you want and in the same way&lt;/P&gt;&lt;P&gt;if the file is in EXCEL format use F.M ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename = P_FNAME&lt;/P&gt;&lt;P&gt;      i_begin_col = 1&lt;/P&gt;&lt;P&gt;      i_begin_row = 1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern = ITAB&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;LOOP AT ITAB INTO WA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          foreign_currency = wa-waers&lt;/P&gt;&lt;P&gt;          local_currency   = wa-waers&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;          local_amount     = tvals-gross.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as mentioned loop the records into work area and process the currenct field which is present in the&lt;/P&gt;&lt;P&gt;ITAB according to its field name. And make sure within the loop you call your function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Dec 9, 2009 5:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2009 12:20:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-09T12:20:47Z</dc:date>
    <item>
      <title>how can i get currency values from flatfile to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399167#M1405961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           I have to take  currency values from flat file and i have to assign those flat file value to function module .&lt;/P&gt;&lt;P&gt;Eg: "Convert_to_local_currency".  I need technical code how to calculate those amount in work area and how to assign those amount value function module.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          I need sample program for currency conversion from flat file to function module.  My requirement is based on flat file amount i have to calculate in work area and assign those work area to function module.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 11:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399167#M1405961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get currency values from flatfile to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399168#M1405962</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;First get the data into an internal table using GUI_UPLOAD function module &amp;amp; then pass it to the convert function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample code snippet for you reference :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*---CONVERT THE GROSS UNIT AMOUNT (RATE) TO DOC CURRENCY

      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
        EXPORTING
          date             = ekko-bedat
          foreign_currency = konv-waers
          local_currency   = ekko-waers
          foreign_amount   = konv-kbetr
          type_of_rate     = 'M'
        IMPORTING
          local_amount     = tvals-gross.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 11:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399168#M1405962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T11:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get currency values from flatfile to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399169#M1405963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish or Baskaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First conform in which format the flat file is present, as abhi mentioned if it is there in notepad&lt;/P&gt;&lt;P&gt;try to use F.M GUI_UPLOAD as shown below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'C:\Desktop\rpf1.TXT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt; DATA_TAB =  ITAB.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now loop at ITAB Into Work_area and press the respect currency fields which you want and in the same way&lt;/P&gt;&lt;P&gt;if the file is in EXCEL format use F.M ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename = P_FNAME&lt;/P&gt;&lt;P&gt;      i_begin_col = 1&lt;/P&gt;&lt;P&gt;      i_begin_row = 1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern = ITAB&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;LOOP AT ITAB INTO WA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          foreign_currency = wa-waers&lt;/P&gt;&lt;P&gt;          local_currency   = wa-waers&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;          local_amount     = tvals-gross.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as mentioned loop the records into work area and process the currenct field which is present in the&lt;/P&gt;&lt;P&gt;ITAB according to its field name. And make sure within the loop you call your function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Dec 9, 2009 5:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 12:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399169#M1405963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T12:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get currency values from flatfile to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399170#M1405964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vikrant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I got the answer .  Thank you very much..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 13:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-currency-values-from-flatfile-to-function-module/m-p/6399170#M1405964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T13:24:53Z</dc:date>
    </item>
  </channel>
</rss>

