<?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: Using Select Statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783528#M910336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you have zmmda in one place and zmmda&lt;STRONG&gt;t&lt;/STRONG&gt; in another. Second, I don't even see either table joined in the SELECT statement. Instead, you have a join in some table ZCONSHPMNT, which doesn't have corresponding ON. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how it even got past the syntax check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 20:29:06 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2008-04-24T20:29:06Z</dc:date>
    <item>
      <title>Using Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783527#M910335</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 got error message when execution of my program..it says..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error 23 when accessing table vttk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the program got terminated at  statrt of selection point itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the select statement I have used..can someone help me out in fixing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u need to declare seperate internal table for zmmda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  t001&lt;SUB&gt;bukrs   t001&lt;/SUB&gt;butxt&lt;/P&gt;&lt;P&gt;        vttk&lt;SUB&gt;dtabf   vttk&lt;/SUB&gt;tknum&lt;/P&gt;&lt;P&gt;        vttk&lt;SUB&gt;route   likp&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;        likp&lt;SUB&gt;inco1   likp&lt;/SUB&gt;lfdat&lt;/P&gt;&lt;P&gt;        vttk&lt;SUB&gt;text3   vttk&lt;/SUB&gt;text1&lt;/P&gt;&lt;P&gt;        vttk~add04&lt;/P&gt;&lt;P&gt;        zmmda~docnum&lt;/P&gt;&lt;P&gt;        into corresponding fields of table int_vttk&lt;/P&gt;&lt;P&gt;    from ( ( ( ( ( vttk&lt;/P&gt;&lt;P&gt;               inner join ttds&lt;/P&gt;&lt;P&gt;               on ttds&lt;SUB&gt;tplst eq vttk&lt;/SUB&gt;tplst )&lt;/P&gt;&lt;P&gt;               inner join t001&lt;/P&gt;&lt;P&gt;               on t001&lt;SUB&gt;bukrs eq ttds&lt;/SUB&gt;bukrs )&lt;/P&gt;&lt;P&gt;               inner join vtfa&lt;/P&gt;&lt;P&gt;               on vtfa&lt;SUB&gt;vbelv eq vttk&lt;/SUB&gt;tknum )&lt;/P&gt;&lt;P&gt;               inner join likp&lt;/P&gt;&lt;P&gt;               on likp&lt;SUB&gt;vbeln eq vtfa&lt;/SUB&gt;vbeln )&lt;/P&gt;&lt;P&gt;               left outer join zconshpmnt&lt;/P&gt;&lt;P&gt;               on zmmdat&lt;SUB&gt;docnum eq vttk&lt;/SUB&gt;tknum )&lt;/P&gt;&lt;P&gt;      where  vttk~dtabf in s_dtabf&lt;/P&gt;&lt;P&gt;      and    vttk~shtyp in s_shtyp&lt;/P&gt;&lt;P&gt;      and    vttk~tdlnr in s_tdlnr&lt;/P&gt;&lt;P&gt;      and    vttk~route in s_route&lt;/P&gt;&lt;P&gt;      and    ttds~bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;      and    vtfa~vbtyp_v eq '8'&lt;/P&gt;&lt;P&gt;      and    vtfa~vbtyp_n eq 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 16:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783527#M910335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T16:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783528#M910336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you have zmmda in one place and zmmda&lt;STRONG&gt;t&lt;/STRONG&gt; in another. Second, I don't even see either table joined in the SELECT statement. Instead, you have a join in some table ZCONSHPMNT, which doesn't have corresponding ON. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how it even got past the syntax check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 20:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783528#M910336</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2008-04-24T20:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783529#M910337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no SAP system to check, but problem could be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left outer join zconshpmnt&lt;/P&gt;&lt;P&gt;on zmmdat&lt;SUB&gt;docnum eq vttk&lt;/SUB&gt;tknum )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zmmdat -&amp;gt; shouldn't this be zconshpmnt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 20:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-statements/m-p/3783529#M910337</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-24T20:36:28Z</dc:date>
    </item>
  </channel>
</rss>

