<?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 UNIT_CONVERSION_SIMPLE FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644640#M1865723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am working on something and need to validate a above mentioned FM.&lt;/P&gt;&lt;P&gt;I don't know what values should I pass to test it in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/572556" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shirley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 14:37:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-28T14:37:36Z</dc:date>
    <item>
      <title>UNIT_CONVERSION_SIMPLE FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644640#M1865723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am working on something and need to validate a above mentioned FM.&lt;/P&gt;&lt;P&gt;I don't know what values should I pass to test it in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/572556" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shirley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 14:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644640#M1865723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: UNIT_CONVERSION_SIMPLE FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644641#M1865724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The quantity in KG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 14:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644641#M1865724</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2014-10-28T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: UNIT_CONVERSION_SIMPLE FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644642#M1865725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that but did not get any values...I am assuming that If I enter '1' in INPUT and&amp;nbsp; KG in UNIT_IN and LB in UNIT_OUT, I should get 2.20462 when I hit Test..am I wrong somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644642#M1865725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T15:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: UNIT_CONVERSION_SIMPLE FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644643#M1865726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shirley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an interesting reason for this issue - as INPUT parameter is un-typed, SE37 creates and processes it as a character-like value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the function module there is a call of 'UNIT_CONVERSION_SIMPLE_OLD' FM. It contains the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt; DESCRIBE FIELD input&amp;nbsp;&amp;nbsp; TYPE lv_type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECIMALS lv_decimals. &lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF&amp;nbsp; lv_type &amp;lt;&amp;gt; 'F'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;AND lv_type &amp;lt;&amp;gt; 'P'&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; AND lv_type &amp;lt;&amp;gt; 'I'.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;MESSAGE e310 WITH 'INPUT' RAISING input_invalid. &lt;/P&gt;
&lt;P&gt; ENDIF.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Since a determined type is 'C' (because of SE37!), you are unlikely to get any result from this function module.&lt;/P&gt;&lt;P&gt;So I suggest to create a simple test program which passes a correctly typed input parameter to check the unit conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Kirill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644643#M1865726</guid>
      <dc:creator>kirill_smirnov</dc:creator>
      <dc:date>2014-10-28T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: UNIT_CONVERSION_SIMPLE FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644644#M1865727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many function, maybe try this one : MD_CONVERT_MATERIAL_UNIT&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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unit-conversion-simple-fm/m-p/10644644#M1865727</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2014-10-28T15:25:58Z</dc:date>
    </item>
  </channel>
</rss>

