<?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: passing value to function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749346#M1113951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried with an idea as you said local currency might be anything.&lt;/P&gt;&lt;P&gt;So in the first two parameters in have shown you to select the currency type, and as you were asked like you want USD should be foreign currency always i kept it as default one.&lt;/P&gt;&lt;P&gt;And i have created a search help ZEBAN where i have given table as EBAN and in parameters i gave RLWRT as field so that when i execute the report i can give the amount from eban table and select the amount from EBAN-RLWRT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just changes to the above code in the place of parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:fcurr like TCURC-WAERS default 'USD',&lt;/P&gt;&lt;P&gt;                 lcurr like TCURC-WAERS,&lt;/P&gt;&lt;P&gt;                 lamt like &lt;STRONG&gt;eban-rlwrt matchcode object zeban.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Oct 31, 2008 7:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 13:35:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-31T13:35:43Z</dc:date>
    <item>
      <title>passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749338#M1113943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;i want to pass th values thru function mudule of currency field.&lt;/P&gt;&lt;P&gt;please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;local currency can be any currency and value coming from eban-rlwrt and foreign currency has to be USD only and has to output foreign amount in USD .Also,the local amount will come from RLWRT.&lt;/P&gt;&lt;P&gt;how to pass values thru FM 'CONVERT_TO_FOREIGN_CURRENCY'.&lt;/P&gt;&lt;P&gt;please tell me how to declare the variable and to be put in the importing and exporting parameters.&lt;/P&gt;&lt;P&gt;i am trying hard to learn this as i am a bit novice.&lt;/P&gt;&lt;P&gt;thnks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749338#M1113943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749339#M1113944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;local curr---&amp;gt; loc type RLWRT.&lt;/P&gt;&lt;P&gt;and for curr---&amp;gt;for type RLWRT.&lt;/P&gt;&lt;P&gt;same data type can be used...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749339#M1113944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749340#M1113945</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;Take a look at the documentation of the function and find the below example in it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'

    EXPORTING   DATE             = BKPF-WWERT

                FOREIGN_CURRENCY = BKPF-WAERS

                LOCAL_CURRENCY   = T001-WAERS

                 LOCAL_AMOUNT     = BSEG-DMBTR

                 RATE             = BKPF-KURSF

                 TYPE_OF_RATE     = 'M'

    IMPORTING   EXCHANGE_RATE    = KURS

                FOREIGN_AMOUNT   = BSEG-WRBTR

                FOREIGN_FACTOR   = FAKTOR-F

                 LOCAL_FACTOR     = FAKTOR-L

    EXCEPTIONS  NO_RATE_FOUND    = 4

                NO_FACTORS_FOUND = 8.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you will declare the variables as the same type as passed here i.e BKPF-WWERT, BKPF-WAERS, BSEG-DMBTR and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749340#M1113945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749341#M1113946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to define the foreign amount which will be outputted with the currency always to be in USD.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749341#M1113946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749342#M1113947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have seen one code in book Common SAP R/3 Functions Manual&lt;/P&gt;&lt;P&gt; By William Lawlor. which converts local currency to foreign currency.&lt;/P&gt;&lt;P&gt;I made bit changes in parameters like made foreigh currency as USD.&lt;/P&gt;&lt;P&gt;Execute the program and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: xrate type f,&lt;/P&gt;&lt;P&gt;      famt type p,&lt;/P&gt;&lt;P&gt;      ffact type f,&lt;/P&gt;&lt;P&gt;      lfact type f.&lt;/P&gt;&lt;P&gt;parameters:fcurr like TCURC-WAERS default 'USD',&lt;/P&gt;&lt;P&gt;           lcurr like TCURC-WAERS,&lt;/P&gt;&lt;P&gt;lamt type p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENT                  = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DATE                    = sy-datum&lt;/P&gt;&lt;P&gt;    FOREIGN_CURRENCY        = fcurr&lt;/P&gt;&lt;P&gt;    LOCAL_AMOUNT            = lamt&lt;/P&gt;&lt;P&gt;    LOCAL_CURRENCY          = lcurr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RATE                    = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TYPE_OF_RATE            = 'M'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_TCURR              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   EXCHANGE_RATE           = xrate&lt;/P&gt;&lt;P&gt;   FOREIGN_AMOUNT          = famt&lt;/P&gt;&lt;P&gt;   FOREIGN_FACTOR          = ffact&lt;/P&gt;&lt;P&gt;   LOCAL_FACTOR            = lfact&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCHANGE_RATEX          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DERIVED_RATE_TYPE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIXED_RATE              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NO_RATE_FOUND           = 1&lt;/P&gt;&lt;P&gt;   OVERFLOW                = 2&lt;/P&gt;&lt;P&gt;   NO_FACTORS_FOUND        = 3&lt;/P&gt;&lt;P&gt;   NO_SPREAD_FOUND         = 4&lt;/P&gt;&lt;P&gt;   DERIVED_2_TIMES         = 5&lt;/P&gt;&lt;P&gt;   OTHERS                  = 6&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;write:/ lamt, 'converted form', lcurr, 'to', fcurr, 'is:', famt.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ lamt, 'not converted'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Oct 31, 2008 5:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749342#M1113947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749343#M1113948</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;data : f_curr type WAERS value 'USD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now pass f_curr to FOREIGN_CURRENCY  parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 12:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749343#M1113948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T12:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749344#M1113949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is giving parameter error while declaring lcurr.Also please mention how to put lamt from eban-rlwrt.&lt;/P&gt;&lt;P&gt;thanks in adv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 12:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749344#M1113949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T12:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749345#M1113950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the value eban-RLWRT as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no data type defined for the parameters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FOREIGN_CURRENCY)&lt;/P&gt;&lt;P&gt; VALUE(LOCAL_AMOUNT)&lt;/P&gt;&lt;P&gt; VALUE(LOCAL_CURRENCY)&lt;/P&gt;&lt;P&gt; VALUE(RATE) DEFAULT 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can pass eban-rlwrt directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 13:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749345#M1113950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: passing value to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749346#M1113951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried with an idea as you said local currency might be anything.&lt;/P&gt;&lt;P&gt;So in the first two parameters in have shown you to select the currency type, and as you were asked like you want USD should be foreign currency always i kept it as default one.&lt;/P&gt;&lt;P&gt;And i have created a search help ZEBAN where i have given table as EBAN and in parameters i gave RLWRT as field so that when i execute the report i can give the amount from eban table and select the amount from EBAN-RLWRT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just changes to the above code in the place of parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:fcurr like TCURC-WAERS default 'USD',&lt;/P&gt;&lt;P&gt;                 lcurr like TCURC-WAERS,&lt;/P&gt;&lt;P&gt;                 lamt like &lt;STRONG&gt;eban-rlwrt matchcode object zeban.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Oct 31, 2008 7:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 13:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-function-module/m-p/4749346#M1113951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T13:35:43Z</dc:date>
    </item>
  </channel>
</rss>

