<?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: make it as one select statement! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591540#M1082795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi..,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;EM&gt;Yes, I can join.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But how i can pass name1 into single variable, please get back with sample code..,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Naveen.i&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 05:44:14 GMT</pubDate>
    <dc:creator>naveen_inuganti2</dc:creator>
    <dc:date>2008-10-01T05:44:14Z</dc:date>
    <item>
      <title>make it as one select statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591538#M1082793</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; See my coding..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: customer like kna1-kunnr,
        name like kna1-name1.

parameter: p_filed1 like ztable-filed1

select single kunnr from ztable into customer where filed1 = p_filed1.
 if sy-subrc = 0.
  select single name1 from kna1 into name where kunnr = custmer.
 endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can pass this &lt;STRONG&gt;name&lt;/STRONG&gt; into other parameter(function modules) with out READ and LOOP statements as you know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is how can modify above coding with one select statement.&lt;/P&gt;&lt;P&gt;I want name entry in variable only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 05:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591538#M1082793</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-10-01T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: make it as one select statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591539#M1082794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;U can use joins by linking kunnr in name1 field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 05:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591539#M1082794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T05:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: make it as one select statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591540#M1082795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi..,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;EM&gt;Yes, I can join.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But how i can pass name1 into single variable, please get back with sample code..,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Naveen.i&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 05:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591540#M1082795</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-10-01T05:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: make it as one select statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591541#M1082796</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;You did not mention all the fields of the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have common key fields in both ztable and kna1 then you can Join both the table in single select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 05:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591541#M1082796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T05:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: make it as one select statement!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591542#M1082797</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 to change the piece of code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single kna1~name1&lt;/P&gt;&lt;P&gt;    into name&lt;/P&gt;&lt;P&gt;   from kna1 inner join ztable&lt;/P&gt;&lt;P&gt;      on kna1&lt;SUB&gt;kunnr = ztable&lt;/SUB&gt;kunnr &lt;/P&gt;&lt;P&gt; where ztable~filed1 = p_filed1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 05:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-it-as-one-select-statement/m-p/4591542#M1082797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T05:58:22Z</dc:date>
    </item>
  </channel>
</rss>

