<?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: BAPI_CURRENCY_CONV_TO_EXTERNAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046864#M1611431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES :VBRK, VBRP.

PARAMETERS P_SORDER TYPE VBRK-VBELN DEFAULT '0900032972'.
DATA: G_CURR TYPE BAPICURR-BAPICURR.


if P_SORDER IS NOT INITIAL.
SELECT SINGLE WAERK FROM VBRK INTO VBRK-WAERK WHERE VBELN = P_SORDER.
SELECT SINGLE NETWR FROM VBRP INTO VBRP-NETWR WHERE VBELN = P_SORDER.

IF VBRK-WAERK IS NOT INITIAL AND VBRP-NETWR IS NOT INITIAL.
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
  EXPORTING
    CURRENCY              = vbrk-waerk
    AMOUNT_INTERNAL       = vbrp-netwr
 IMPORTING
   AMOUNT_EXTERNAL       =  G_CURR.

ENDIF.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the KBETR as well for KBETR Domain is WERTV6 CURR and DEC 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So declare the AMOUNT_EXTERNAL variable as the same and then do the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert if further clarification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 15:44:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-28T15:44:29Z</dc:date>
    <item>
      <title>BAPI_CURRENCY_CONV_TO_EXTERNAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046862#M1611429</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'm using the FM BAPI_CURRENCY_CONV_TO_EXTERNAL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is working fine in SE37 But in my program, when I fill the parameter amount_internal  with a variable type KBETR this raise a DUMP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody has an example in order to try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 14:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046862#M1611429</guid>
      <dc:creator>former_member227595</dc:creator>
      <dc:date>2011-07-28T14:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CURRENCY_CONV_TO_EXTERNAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046863#M1611430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at how SAP uses the FM. An example is report RAIMGETV. It looks like the domain is WERTV8 instead of WERTV6 which you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brenda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 14:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046863#M1611430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CURRENCY_CONV_TO_EXTERNAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046864#M1611431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES :VBRK, VBRP.

PARAMETERS P_SORDER TYPE VBRK-VBELN DEFAULT '0900032972'.
DATA: G_CURR TYPE BAPICURR-BAPICURR.


if P_SORDER IS NOT INITIAL.
SELECT SINGLE WAERK FROM VBRK INTO VBRK-WAERK WHERE VBELN = P_SORDER.
SELECT SINGLE NETWR FROM VBRP INTO VBRP-NETWR WHERE VBELN = P_SORDER.

IF VBRK-WAERK IS NOT INITIAL AND VBRP-NETWR IS NOT INITIAL.
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
  EXPORTING
    CURRENCY              = vbrk-waerk
    AMOUNT_INTERNAL       = vbrp-netwr
 IMPORTING
   AMOUNT_EXTERNAL       =  G_CURR.

ENDIF.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the KBETR as well for KBETR Domain is WERTV6 CURR and DEC 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So declare the AMOUNT_EXTERNAL variable as the same and then do the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert if further clarification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 15:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-currency-conv-to-external/m-p/8046864#M1611431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T15:44:29Z</dc:date>
    </item>
  </channel>
</rss>

