<?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 Help with finding error in a report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033890#M417661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to test the function module ''MD_CONVERT_MATERIAL_UNIT''. It is working perfectly when I test in se37 for a material number. However when I code in a report like below, it gives error message 'The material number so and so does n't have conversion with unit so and so'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined the work areas/variables as exaclty how it is defined in function module.&lt;/P&gt;&lt;P&gt;w_menee = 'LB'.&lt;/P&gt;&lt;P&gt;w1_menee = 'PAC'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_MATNR  = w_matnr&lt;/P&gt;&lt;P&gt;    I_IN_ME  = w_menee&lt;/P&gt;&lt;P&gt;    I_OUT_ME = w1_menee&lt;/P&gt;&lt;P&gt;    I_MENGE  = c_menge        "constants: c_menge type ekpo-menge value '1.000'.&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_MENGE  = w_menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me where could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2007 01:23:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-08T01:23:22Z</dc:date>
    <item>
      <title>Help with finding error in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033890#M417661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to test the function module ''MD_CONVERT_MATERIAL_UNIT''. It is working perfectly when I test in se37 for a material number. However when I code in a report like below, it gives error message 'The material number so and so does n't have conversion with unit so and so'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined the work areas/variables as exaclty how it is defined in function module.&lt;/P&gt;&lt;P&gt;w_menee = 'LB'.&lt;/P&gt;&lt;P&gt;w1_menee = 'PAC'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_MATNR  = w_matnr&lt;/P&gt;&lt;P&gt;    I_IN_ME  = w_menee&lt;/P&gt;&lt;P&gt;    I_OUT_ME = w1_menee&lt;/P&gt;&lt;P&gt;    I_MENGE  = c_menge        "constants: c_menge type ekpo-menge value '1.000'.&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_MENGE  = w_menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me where could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 01:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033890#M417661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T01:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with finding error in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033891#M417662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you are passing the internal representation of the unit of measure, sometimes there is external formatting on these that totaly change the value.  You can use the function module CONVERSION_EXIT_CUNIT_INPUT to convert it to the internal representation, then try passing this.  When testing the FM, it might do the conversion on the fly, but not in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 01:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033891#M417662</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-08T01:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with finding error in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033892#M417663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to convert material prior to call FM MD_CONVERT_MATERIAL_UNIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT =  w_matnr
  IMPORTING
    OUTPUT = w_matnr.

w_menee = 'LB'.
w1_menee = 'PAC'.

CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
  EXPORTING
    I_MATNR = w_matnr
    I_IN_ME = w_menee
    I_OUT_ME = w1_menee
    I_MENGE = c_menge       "constants: c_menge type ekpo-menge value '1.000'.
  IMPORTING
    E_MENGE = w_menge.

...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 03:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-finding-error-in-a-report/m-p/2033892#M417663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T03:15:12Z</dc:date>
    </item>
  </channel>
</rss>

