<?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: Runtime Error : Overflow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240919#M142104</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 hope the error is because while you move to z_header-kursf which is of type BKPF-KURSF,it is internally calling the conversion exit 'CONVERSION_EXIT_EXCRT_INPUT' at the domain level{Check the BKPF-KURSF by double clicking).In this FM,if you look at the source code,it is calling 'CONVERT_RATE_INPUT'.This needs the input to be of the format 9,999.99999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of writing the line&lt;/P&gt;&lt;P&gt;move zkursf_str to z_header-kursf. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM 'CONVERSION_EXIT_EXCRT_OUTPUT' to change the zkursf_str to this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input         = zkursf_str&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = z_header-kursf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jayanthi Jayaraman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2006-03-27T05:55:53Z</dc:date>
    <item>
      <title>Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240913#M142098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am using the FM READ_EXCHANGE_RATE to get the Exchange rate&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : zkursf_str(10).
if sy-subrc eq 0.
            CALL FUNCTION 'READ_EXCHANGE_RATE'
              EXPORTING
                DATE                    = z_header-budat
                FOREIGN_CURRENCY        = z_header-waers
                LOCAL_CURRENCY          = temp_loc_cur1
                TYPE_OF_RATE            = 'M'
          IMPORTING
                EXCHANGE_RATE           = zkursf_str
*           FOREIGN_FACTOR          =
*           LOCAL_FACTOR            =
*           VALID_FROM_DATE         =
*           DERIVED_RATE_TYPE       =
*           FIXED_RATE              =
*           OLDEST_RATE_FROM        =
                      .
            IF SY-SUBRC eq 0.
              move zkursf_str to z_header-kursf. &amp;lt;-----
            else.
              message S000 with 'No Exchange Rate found '.
            ENDIF.
          endif.
        endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I a Particular case the Exchange rate (KURSF) obtained is '100000' and when the value is moved to Z_header-kursf (defined as BKPF-KURSF) i receive the 'Overflow when converting from 100000'.&lt;/P&gt;&lt;P&gt;Could any one point the error and how to rectify this .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;- Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240913#M142098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T05:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240914#M142099</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;Change the declaration&lt;/P&gt;&lt;P&gt;data : zkursf_str(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;data zkursf_str(14).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the BKPF-KURSF is of output length 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clikcing the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240914#M142099</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-03-27T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240915#M142100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you refer that field to a data element which has the maximum size?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240915#M142100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240916#M142101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the type for zkursf_str? is it same as receiving field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240916#M142101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240917#M142102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you define the variable &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;z_header-kursf&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The definition of KURSF is DEC of Length 9 with Output Length 12.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Also of DEC data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240917#M142102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240918#M142103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'READ_EXCHANGE_RATE'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                DATE                    = z_header-budat&lt;/P&gt;&lt;P&gt;                FOREIGN_CURRENCY        = z_header-waers&lt;/P&gt;&lt;P&gt;                LOCAL_CURRENCY          = temp_loc_cur1&lt;/P&gt;&lt;P&gt;                TYPE_OF_RATE            = 'M'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;          EXCHANGE_RATE           = &amp;lt;b&amp;gt;z_header-kursf&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          FOREIGN_FACTOR          =&lt;/P&gt;&lt;/LI&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;          VALID_FROM_DATE         =&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;LI level="1" type="ul"&gt;&lt;P&gt;          OLDEST_RATE_FROM        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                      .&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;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240918#M142103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240919#M142104</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 hope the error is because while you move to z_header-kursf which is of type BKPF-KURSF,it is internally calling the conversion exit 'CONVERSION_EXIT_EXCRT_INPUT' at the domain level{Check the BKPF-KURSF by double clicking).In this FM,if you look at the source code,it is calling 'CONVERT_RATE_INPUT'.This needs the input to be of the format 9,999.99999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of writing the line&lt;/P&gt;&lt;P&gt;move zkursf_str to z_header-kursf. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM 'CONVERSION_EXIT_EXCRT_OUTPUT' to change the zkursf_str to this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input         = zkursf_str&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = z_header-kursf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jayanthi Jayaraman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240919#M142104</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-03-27T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240920#M142105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: &amp;lt;b&amp;gt;KURS LIKE TCURR-UKURS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'READ_EXCHANGE_RATE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              DATE             =   SY-DATUM&lt;/P&gt;&lt;P&gt;              FOREIGN_CURRENCY =   z_header-waers&lt;/P&gt;&lt;P&gt;              LOCAL_CURRENCY   =   temp_loc_cur1&lt;/P&gt;&lt;P&gt;              TYPE_OF_RATE     =   'M'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;              EXCHANGE_RATE    =  &amp;lt;b&amp;gt;KURS&amp;lt;/b&amp;gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              NO_RATE_FOUND    = 1&lt;/P&gt;&lt;P&gt;              NO_FACTORS_FOUND = 2&lt;/P&gt;&lt;P&gt;              NO_SPREAD_FOUND  = 3&lt;/P&gt;&lt;P&gt;              OTHERS           = 4.&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;Kaushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 05:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240920#M142105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T05:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240921#M142106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jayanthi,&lt;/P&gt;&lt;P&gt;Thanks for the post.&lt;/P&gt;&lt;P&gt;I modified the zkursf_str to 14 but still the same error.&lt;/P&gt;&lt;P&gt;I even declared the zkursf_str as bkpf-kursf when compiling i receive the error 'ZKURSF_STR must be a Character type data object (C, N, D, T or String)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;- Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 06:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240921#M142106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T06:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240922#M142107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I can c initally u had declared zkursf_str as 10 chara and then u have declared it as 14. What u need to do is make both zkursf_str and z_header-kursf same type. so if u want a larger declaration say then u can declare it as&lt;/P&gt;&lt;P&gt;zkursf_str type ACC_BEARZEIT&lt;/P&gt;&lt;P&gt;z_header-kursf type ACC_BEARZEIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 06:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240922#M142107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T06:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error : Overflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240923#M142108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jayanthi,&lt;/P&gt;&lt;P&gt;Thank you, for providing the pointer.&lt;/P&gt;&lt;P&gt;I have rewarded and after slight modification to existing code the FM worked (Completly overlooked the EXIT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
          select single waers from T001 into temp_loc_cur1
          where bukrs = z_header-bukrs.           "Currency Key

          if sy-subrc eq 0.
            CALL FUNCTION 'READ_EXCHANGE_RATE'
              EXPORTING
                DATE                    = z_header-budat
                FOREIGN_CURRENCY        = z_header-waers
                LOCAL_CURRENCY          = temp_loc_cur1
                TYPE_OF_RATE            = 'M'
          IMPORTING
                EXCHANGE_RATE           = zkursf_str
*           FOREIGN_FACTOR          =
*           LOCAL_FACTOR            =
*           VALID_FROM_DATE         =
*           DERIVED_RATE_TYPE       =
*           FIXED_RATE              =
*           OLDEST_RATE_FROM        =
                      .
            IF SY-SUBRC eq 0.
              CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT'
                EXPORTING
                  INPUT  = zkursf_str
                IMPORTING
                  OUTPUT = zkursf_str1.
              .
              move zkursf_str1 to z_header-kursf.
            else.
              message S000 with 'No Exchange Rate found '.
            ENDIF.
          endif.
        endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;- Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 06:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-overflow/m-p/1240923#M142108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T06:31:13Z</dc:date>
    </item>
  </channel>
</rss>

