<?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 to enter number value in SE37 when testing function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274347#M1988161</link>
    <description>&lt;P&gt;It always shows error "Use a number field for the input value".&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 03:15:53 GMT</pubDate>
    <dc:creator>immanuels</dc:creator>
    <dc:date>2020-09-10T03:15:53Z</dc:date>
    <item>
      <title>How to enter number value in SE37 when testing function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274346#M1988160</link>
      <description>&lt;P&gt;For example if I try the ROUND function module, when I input the number value somehow it doesn't recognized as a number.&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;Is There anyway to test it with number value ??&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 03:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274346#M1988160</guid>
      <dc:creator>immanuels</dc:creator>
      <dc:date>2020-09-10T03:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter number value in SE37 when testing function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274347#M1988161</link>
      <description>&lt;P&gt;It always shows error "Use a number field for the input value".&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 03:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274347#M1988161</guid>
      <dc:creator>immanuels</dc:creator>
      <dc:date>2020-09-10T03:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter number value in SE37 when testing function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274348#M1988162</link>
      <description>&lt;P&gt;Simple answer, you cannot in this specific case. &lt;/P&gt;&lt;P&gt;The reasons are:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;The input parameter INPUT of FM ROUND does not have a data type assigned, so it is of type ANY&lt;/LI&gt;&lt;LI&gt;When you want to test the FM with SE37, the "Test environment interface" implicitly assigns the character type C(200) for variables of type ANY&lt;/LI&gt;&lt;LI&gt;The FM ROUND only expects certain numeric(!) value types, and aborts with the above mentioned error "Use a number field for the input value" when it is not numeric&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So with the SE37 test environment interface, you cannot properly test this FM. You would have to create a specific Test FM with specific numeric types for input that calls the FM ROUND in the way you want to test it.&lt;/P&gt;&lt;P&gt;Just a side note: SAP has done better with classes in the SE24 test environment interface, where you can choose the specific type in case of generic types. However with the SE24 test environment interface, you dont have an option to save test cases. But maybe I am outdated on new SAP standard options for saving test cases for classes (?)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 04:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274348#M1988162</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-09-10T04:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter number value in SE37 when testing function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274349#M1988163</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;immanuels&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Am afraid if this function Module can be tested via SE37, as an alternative i wrote a sample program to test the FM and it works fine. Below screen shot for your reference.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1845449-scn.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 05:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enter-number-value-in-se37-when-testing-function-module/m-p/12274349#M1988163</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-09-10T05:23:11Z</dc:date>
    </item>
  </channel>
</rss>

