<?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: Reg:Conversion for Net value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609778#M1278279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As said by Sowmya n Srikanth  we have to provide the details in the as mentioned, more details on the same for your case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For you the Local currency is USD and the foreign currency value is vbrp-netwr and u need the curreny for that is the the one at VBRK-WAERK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Constant : lc_cukylocl type WAERK value 'USD'.
Data:        lv_amt_foreign type NETWR_FP .
lv_amt_foreign = VBRP-NETWR. 
lv_cukylocl      = VBRK-WAERK."Fetch the corresponding currency from VBRK header 
CLEAR lv_amtlocl.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
         date                      = sy-datum
         foreign_amount       = lv_amt_foreign
         foreign_currency     = lv_cukylocl
         local_currency        = lc_cukylocl
         type_of_rate           = 'M'
         read_tcurr              = 'X'
     IMPORTING
         local_amount         = lv_amtlocl
     EXCEPTIONS
         no_rate_found        = 1
         overflow                 = 2
         no_factors_found    = 3
         no_spread_found    = 4
         derived_2_times     = 5
         OTHERS               = 6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Hope this is useful to your specific requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun Thiyagarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 06:14:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T06:14:14Z</dc:date>
    <item>
      <title>Reg:Conversion for Net value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609775#M1278276</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;          I need to convert vbrp-netwr (net value) into USD  with function module                                        CONVERT_TO_LOCAL_CURRENCY .can any one can help me out by posting answer in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;sumanth reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 12:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609775#M1278276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T12:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Conversion for Net value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609776#M1278277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the FM in the following way&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;              client                  = sy-mandt&lt;/P&gt;&lt;P&gt;              date                    = sy-datum&lt;/P&gt;&lt;P&gt;              foreign_amount          = w_netwr &lt;/P&gt;&lt;P&gt;              foreign_currency        = w_waers "From currency&lt;/P&gt;&lt;P&gt;              local_currency          = w_waers1 "To currency&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            EXCHANGE_RATE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            FOREIGN_FACTOR          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              local_amount            = w_amount "Converted amount&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            LOCAL_FACTOR            =&lt;/P&gt;&lt;/LI&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;            FIXED_RATE              =&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;/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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 12:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609776#M1278277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T12:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Conversion for Net value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609777#M1278278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_amount type p decimals 2.&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;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_amount          = '1000'  amount which you wanted to   (table-filed) &lt;/P&gt;&lt;P&gt;    foreign_currency        = 'XXX' from what currency (table-filed) &lt;/P&gt;&lt;P&gt;    local_currency          = 'USD'  to currency (table-filed)&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCHANGE_RATE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FOREIGN_FACTOR          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   LOCAL_AMOUNT            = LV_AMOUNT   =====&amp;gt; final amount which is tobe displayed&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_FACTOR            =&lt;/P&gt;&lt;/LI&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;  FIXED_RATE              =&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;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_RATE_FOUND           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OVERFLOW                = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_FACTORS_FOUND        = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_SPREAD_FOUND         = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DERIVED_2_TIMES         = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: LV_AMOUNT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert for further clarification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards'&lt;/P&gt;&lt;P&gt;Srikanth.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 05:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609777#M1278278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T05:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Conversion for Net value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609778#M1278279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As said by Sowmya n Srikanth  we have to provide the details in the as mentioned, more details on the same for your case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For you the Local currency is USD and the foreign currency value is vbrp-netwr and u need the curreny for that is the the one at VBRK-WAERK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Constant : lc_cukylocl type WAERK value 'USD'.
Data:        lv_amt_foreign type NETWR_FP .
lv_amt_foreign = VBRP-NETWR. 
lv_cukylocl      = VBRK-WAERK."Fetch the corresponding currency from VBRK header 
CLEAR lv_amtlocl.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
         date                      = sy-datum
         foreign_amount       = lv_amt_foreign
         foreign_currency     = lv_cukylocl
         local_currency        = lc_cukylocl
         type_of_rate           = 'M'
         read_tcurr              = 'X'
     IMPORTING
         local_amount         = lv_amtlocl
     EXCEPTIONS
         no_rate_found        = 1
         overflow                 = 2
         no_factors_found    = 3
         no_spread_found    = 4
         derived_2_times     = 5
         OTHERS               = 6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Hope this is useful to your specific requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun Thiyagarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 06:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-conversion-for-net-value/m-p/5609778#M1278279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T06:14:14Z</dc:date>
    </item>
  </channel>
</rss>

