<?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: regarding select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927827#M384747</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;try tis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a~matnr &lt;/P&gt;&lt;P&gt;                    a~meins &lt;/P&gt;&lt;P&gt;                    b&lt;SUB&gt;maktx from mara as a inner join makt as b on b&lt;/SUB&gt;matnr = a&lt;SUB&gt;matnr into corresponding fields of it_bitem1 where a&lt;/SUB&gt;matnr = matnr and b~spras eq 'EN' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2007 14:59:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-14T14:59:31Z</dc:date>
    <item>
      <title>regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927823#M384743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to select the matnr, and material description unit of measurement , from mara and makt. the select query used is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single  a&lt;SUB&gt;matnr a&lt;/SUB&gt;meins b&lt;SUB&gt;maktx from mara as a inner join makt as b on b&lt;/SUB&gt;matnr = a&lt;SUB&gt;matnr and b&lt;/SUB&gt;spras eq 'EN'  into&lt;/P&gt;&lt;P&gt;corresponding fields of  it_bitem1 where a~matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the internal table no values are fetched . What is the error in this .&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927823#M384743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927824#M384744</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;Error is &amp;lt;b&amp;gt;Leading Zeros are missing in MATNR&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Use FM &amp;lt;b&amp;gt;'Conversion_exit_aplha_input'&amp;lt;/b&amp;gt; for &amp;lt;b&amp;gt;MANTR&amp;lt;/b&amp;gt; before u pass it to Select. i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input  = matnr&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    output = matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a&lt;SUB&gt;matnr a&lt;/SUB&gt;meins b&lt;SUB&gt;maktx from mara as a inner join makt as b on b&lt;/SUB&gt;matnr = a&lt;SUB&gt;matnr and b&lt;/SUB&gt;spras eq 'EN' into&lt;/P&gt;&lt;P&gt;corresponding fields of it_bitem1 where a~matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Mukul R. Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927824#M384744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927825#M384745</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;rewrite your query like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~matnr&lt;/P&gt;&lt;P&gt;          a~meins&lt;/P&gt;&lt;P&gt;          b~maktx&lt;/P&gt;&lt;P&gt;  into table it_bitem1&lt;/P&gt;&lt;P&gt;  from mara as a inner join makt as b&lt;/P&gt;&lt;P&gt;     on a&lt;SUB&gt;matnr eq b&lt;/SUB&gt;matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you got any select-option or parameter then specify it in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are having matnr as select-option then write in &lt;/P&gt;&lt;P&gt;where condition a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if it is parameter then write&lt;/P&gt;&lt;P&gt;where a~matnr eq p_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927825#M384745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927826#M384746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change to this and checkout if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare workare for it_bitem1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : wa_bitem1 type it_bitem1 .

select single a~matnr a~meins b~maktx from mara as a inner join makt as b on a~matnr = b~matnr and b~spras eq 'EN' into
corresponding fields of wa_bitem1 where a~matnr = matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927826#M384746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927827#M384747</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;try tis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a~matnr &lt;/P&gt;&lt;P&gt;                    a~meins &lt;/P&gt;&lt;P&gt;                    b&lt;SUB&gt;maktx from mara as a inner join makt as b on b&lt;/SUB&gt;matnr = a&lt;SUB&gt;matnr into corresponding fields of it_bitem1 where a&lt;/SUB&gt;matnr = matnr and b~spras eq 'EN' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927827#M384747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927828#M384748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the problem is the spras at the on statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the select like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single a~matnr a~meins b~maktx
from mara as a inner join
        makt as b
on b~matnr = a~matnr
into corresponding fields of it_bitem1
where a~matnr = matnr
    and b~spras eq 'EN'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927828#M384748</guid>
      <dc:creator>hermanoclaro</dc:creator>
      <dc:date>2007-02-14T15:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927829#M384749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change SPRAS as EN  to E as in MAKT length of SPRAS is only 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;b~spras eq 'E'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927829#M384749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927830#M384750</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;rewrite your query like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select a~matnr&lt;/P&gt;&lt;P&gt;a~meins&lt;/P&gt;&lt;P&gt;b~maktx&lt;/P&gt;&lt;P&gt;into table it_bitem1&lt;/P&gt;&lt;P&gt;from mara as a inner join makt as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;matnr eq b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;where spras eq 'EN'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you got any select-option or parameter then specify it in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are having matnr as select-option then write in &lt;/P&gt;&lt;P&gt;where condition a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if it is parameter then write&lt;/P&gt;&lt;P&gt;where a~matnr eq p_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927830#M384750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927831#M384751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reward points all useful answers,if ur problem get solved...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927831#M384751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927832#M384752</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 faced the similar problems too . And Using the Function Module ''CONVERSION_EXIT_ALPHA_INPUT'  solved the problem . As the material number is a 16 digit the select query expects the full 16 digit number . Hence usage of the above given FM converts the material number into a 16 digit number and your select statement would returns the correct number of records.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sowmya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927832#M384752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927833#M384753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your replies ,&lt;/P&gt;&lt;P&gt; i have tried all these choices but i cant able to solve the problem. still it doesn't fetch any datas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927833#M384753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927834#M384754</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've tried your piece of code here and everything is fine as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF it_bitem1,
        matnr type mara-matnr,
        meins type mara-meins,
        maktx type makt-maktx,
      END OF it_bitem1,
      matnr type mara-matnr
        value '000000000000000142'.

select single a~matnr a~meins b~maktx
from mara as a inner join
     makt as b
on a~matnr = b~matnr
into corresponding fields of it_bitem1
where a~matnr = matnr
    and b~spras eq 'E'.

break-point.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be happening for you is:&lt;/P&gt;&lt;P&gt;1. Veriable matnr in where statement could be a select-options and must be declared as a~matnr IN matnr.&lt;/P&gt;&lt;P&gt;2. There's none data in one of these tables (since it's inner join) with the spras you are using (deppending would be nice to change the hardcode 'E' for sy-langu).&lt;/P&gt;&lt;P&gt;3. The variable matnr is a parameter and is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 17:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/1927834#M384754</guid>
      <dc:creator>hermanoclaro</dc:creator>
      <dc:date>2007-02-14T17:09:32Z</dc:date>
    </item>
  </channel>
</rss>

