<?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: Query Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620480#M277620</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; Use the FM CONVERSION_EXIT_CUNIT_INPUT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_MSEHI type MSEHI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input                = 'PAC'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    OUTPUT               = V_MSEHI&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   UNIT_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;   OTHERS               = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from t006&lt;/P&gt;&lt;P&gt;       where msehi = v_msehi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2006 03:56:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-20T03:56:12Z</dc:date>
    <item>
      <title>Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620478#M277618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i  have put the follwoing query in my module pool&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  val_meins_101  INPUT
*&amp;amp;---------------------------------------------------------------------*
 MODULE val_meins_101 INPUT.
   DATA:v_meins LIKE t006-msehi.
   CLEAR v_meins.
   SELECT SINGLE msehi INTO v_meins
    FROM t006
    WHERE msehi = i_mat_master-meins.

   IF sy-subrc IS NOT INITIAL.
     MESSAGE e001(zmm) WITH 'Invalid Unit'.
   ENDIF.
 ENDMODULE.                 " val_meins_101  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when my program runs the value of i_mat_master-meins comes 'PAC' and the query gives error&lt;/P&gt;&lt;P&gt;but when i saw this field in table T006 the entry exists there but this query gives error&lt;/P&gt;&lt;P&gt;i have checked many times but for this particular Unit PAC the query gives error inspite of having value in the table.&lt;/P&gt;&lt;P&gt;kindly tell wats the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 03:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620478#M277618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T03:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620479#M277619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the entry should be 'PC" and not "PAC".There is no entry for PAC in t006.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 03:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620479#M277619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T03:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620480#M277620</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; Use the FM CONVERSION_EXIT_CUNIT_INPUT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_MSEHI type MSEHI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input                = 'PAC'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    OUTPUT               = V_MSEHI&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   UNIT_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;   OTHERS               = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from t006&lt;/P&gt;&lt;P&gt;       where msehi = v_msehi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 03:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620480#M277620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T03:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620481#M277621</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;The field MSEHI in the table T006 uses a conversion routine CUNIT and hence needs to be used with the conversion routines &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_CUNIT_INPUT &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_CUNIT_OUTPUT&lt;/P&gt;&lt;P&gt;for input and output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use  CONVERSION_EXIT_CUNIT_INPUT by passing the value PAC .The value obtained from the routine needs to be passed as a variable to the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 04:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-problem/m-p/1620481#M277621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T04:15:54Z</dc:date>
    </item>
  </channel>
</rss>

