<?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: syntax issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998590#M406604</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;Please try this if your logon language is not 'EN' (English).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select tvzbt~zterm tvzbt~vtext vbkd~vbeln
from tvzbt inner join vbkd on tvzbt~zterm = vbkd~zterm
into table itab8
for all entries in itab4
where tvzbt~spras = 'EN' 
and vbkd~vbeln = itab4-vbeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 14:06:52 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-03-21T14:06:52Z</dc:date>
    <item>
      <title>syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998588#M406602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select tvzbt~zterm tvzbt~vtext vbkd~vbeln
from tvzbt inner join vbkd on tvzbt~zterm = vbkd~zterm
into table itab8
for all entries in itab4
where tvzbt~spras = sy-langu 
and vbkd~vbeln = itab4-vbeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is displaying all values of vbeln zterm and vtext in tvzbt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want select only those vbeln zterm and vtext in tvzbt where tvzbt-zterm = vbkd-zterm and spras shud be en&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998588#M406602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998589#M406603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;select tvzbt&lt;SUB&gt;zterm tvzbt&lt;/SUB&gt;vtext vbkd~vbeln&lt;/P&gt;&lt;P&gt;from VBKD inner join TVZBT on vbkd&lt;SUB&gt;zterm = tvzbt&lt;/SUB&gt;zterm&lt;/P&gt;&lt;P&gt;into table itab8&lt;/P&gt;&lt;P&gt;for all entries in itab4&lt;/P&gt;&lt;P&gt;where vbkd~vbeln = itab4-vbeln&lt;/P&gt;&lt;P&gt;and tvzbt~spras = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rashmi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rashmi Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998589#M406603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998590#M406604</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;Please try this if your logon language is not 'EN' (English).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select tvzbt~zterm tvzbt~vtext vbkd~vbeln
from tvzbt inner join vbkd on tvzbt~zterm = vbkd~zterm
into table itab8
for all entries in itab4
where tvzbt~spras = 'EN' 
and vbkd~vbeln = itab4-vbeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998590#M406604</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-03-21T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998591#M406605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its always good practise to check whether internal table is initial or not before using FOR ALL ENTRIES option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If internal table is empty, then it will consider all the entries of database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF ITAB4[] IS NOT INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select tvzbt&lt;SUB&gt;zterm tvzbt&lt;/SUB&gt;vtext vbkd~vbeln&lt;/P&gt;&lt;P&gt;from tvzbt inner join vbkd on tvzbt&lt;SUB&gt;zterm = vbkd&lt;/SUB&gt;zterm&lt;/P&gt;&lt;P&gt;into table itab8 &lt;/P&gt;&lt;P&gt;for all entries in itab4&lt;/P&gt;&lt;P&gt;where tvzbt~spras = sy-langu &lt;/P&gt;&lt;P&gt;and vbkd~vbeln = itab4-vbeln.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998591#M406605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998592#M406606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check itab4 has some values in it.&lt;/P&gt;&lt;P&gt;If it doesnt have any value then the select statement will select all the records from the tables you joined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your select statement between the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itab4 is not initial.&lt;/P&gt;&lt;P&gt;&amp;lt;your select query&amp;gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998592#M406606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998593#M406607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;delete adjacent duplicates from itab4 comparing vbeln.

if not itab[] is initial.

select tvzbt~zterm tvzbt~vtext vbkd~vbeln
from tvzbt inner join vbkd on tvzbt~zterm = vbkd~zterm
into table itab8
for all entries in itab4
where vbkd~vbeln = itab4-vbeln and
tvzbt~spras = sy-langu.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998593#M406607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998594#M406608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the benefit of checking if the itab is initial when using for all entries ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998594#M406608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998595#M406609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you didnt check then it will consider all entries of the database entries into consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it is always good practice to check whether internal table is initial or not before using FOR ALL ENTRIES option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998595#M406609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998596#M406610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said.....If itab4 doesnt has any records in it, your select query will fetch all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before 'for all entries' is used, One has to check if the internal table has some records in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998596#M406610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998597#M406611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOR ALL ENTRIES IN itab will get all the database table records if the &amp;lt;itab&amp;gt; is empty. That is reason why you should check if the table has entries or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998597#M406611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: syntax issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998598#M406612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a prerequisite to check if itab is not initial when using FOR ALL ENTRIES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise  there is no use in using that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-issue/m-p/1998598#M406612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:14:47Z</dc:date>
    </item>
  </channel>
</rss>

