<?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 Problem with Internal Table Entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850358#M925636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following SELECT Query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Before change, in the WHERE Clause itself, I had the comparison for Date Range (see the commented lines). Now, I tried to separate the Date comparison and make to delete unnecessary entries in that date range outside the SELECT Query!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But the error shown is:No component exists in t_vbap with the name "ERDAT". But in query, I fetched that field also into t_vbap (see w~erdat).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select    w~mandt
                w~vbeln  w~posnr  w~meins w~matnr w~werks  w~netwr
                w~kwmeng w~vrkme  w~matwa  w~charg w~pstyv
                w~posar  w~prodh  w~grkor  w~antlf  w~kztlf w~lprio
                w~vstel  w~route  w~umvkz  w~umvkn  w~abgru w~untto
                w~awahr  w~erdat  w~erzet  w~fixmg  w~prctr  w~vpmat
                w~vpwrk  w~mvgr1  w~mvgr2  w~mvgr3  w~mvgr4  w~mvgr5
                                           w~bedae w~cuobj w~mtvfp
                x~etenr x~wmeng x~bmeng   x~ettyp  x~wepos  x~abart
                                                            x~edatu
                x~tddat x~mbdat   x~lddat  x~wadat  x~abruf x~etart
                x~ezeit
                into table t_vbap
               from  vbap as w
                       inner join vbep as x on x~vbeln = w~vbeln and
                                               x~posnr = w~posnr and
                                               x~mandt = w~mandt
         for all entries in t_vbak1
         where
                       w~vbeln = t_vbak1-vbeln and
*            ( ( ( erdat &amp;gt; pre_dat  and  erdat &amp;lt; p_syndt ) or
*            ( erdat = p_syndt and erzet &amp;lt;= p_syntm ) ) ) and
                       w~matnr in s_matnr and
                       w~pstyv in s_itmcat and
                       w~lfrel in s_lfrel and
                       w~abgru = '  ' and
                       w~mtvfp in w_mtvfp  and
                       x~ettyp in w_ettyp  and
                       x~bdart in s_req_tp and
                       x~plart in s_pln_tp and
                       x~etart in s_etart and
                       x~abart in s_abart and
                       ( ( x~lifsp in s_lifsp ) or ( x~lifsp = ' ' ) ).

DELETE t_vbap where ( ( erdat LE pre_dat and erdat GE p_syndt ) or ( erdat NE
p_syndt and erzet GT p_syntm ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest!&lt;/P&gt;&lt;P&gt;Santo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 06:06:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T06:06:56Z</dc:date>
    <item>
      <title>Problem with Internal Table Entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850358#M925636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following SELECT Query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Before change, in the WHERE Clause itself, I had the comparison for Date Range (see the commented lines). Now, I tried to separate the Date comparison and make to delete unnecessary entries in that date range outside the SELECT Query!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But the error shown is:No component exists in t_vbap with the name "ERDAT". But in query, I fetched that field also into t_vbap (see w~erdat).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select    w~mandt
                w~vbeln  w~posnr  w~meins w~matnr w~werks  w~netwr
                w~kwmeng w~vrkme  w~matwa  w~charg w~pstyv
                w~posar  w~prodh  w~grkor  w~antlf  w~kztlf w~lprio
                w~vstel  w~route  w~umvkz  w~umvkn  w~abgru w~untto
                w~awahr  w~erdat  w~erzet  w~fixmg  w~prctr  w~vpmat
                w~vpwrk  w~mvgr1  w~mvgr2  w~mvgr3  w~mvgr4  w~mvgr5
                                           w~bedae w~cuobj w~mtvfp
                x~etenr x~wmeng x~bmeng   x~ettyp  x~wepos  x~abart
                                                            x~edatu
                x~tddat x~mbdat   x~lddat  x~wadat  x~abruf x~etart
                x~ezeit
                into table t_vbap
               from  vbap as w
                       inner join vbep as x on x~vbeln = w~vbeln and
                                               x~posnr = w~posnr and
                                               x~mandt = w~mandt
         for all entries in t_vbak1
         where
                       w~vbeln = t_vbak1-vbeln and
*            ( ( ( erdat &amp;gt; pre_dat  and  erdat &amp;lt; p_syndt ) or
*            ( erdat = p_syndt and erzet &amp;lt;= p_syntm ) ) ) and
                       w~matnr in s_matnr and
                       w~pstyv in s_itmcat and
                       w~lfrel in s_lfrel and
                       w~abgru = '  ' and
                       w~mtvfp in w_mtvfp  and
                       x~ettyp in w_ettyp  and
                       x~bdart in s_req_tp and
                       x~plart in s_pln_tp and
                       x~etart in s_etart and
                       x~abart in s_abart and
                       ( ( x~lifsp in s_lifsp ) or ( x~lifsp = ' ' ) ).

DELETE t_vbap where ( ( erdat LE pre_dat and erdat GE p_syndt ) or ( erdat NE
p_syndt and erzet GT p_syntm ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest!&lt;/P&gt;&lt;P&gt;Santo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 06:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850358#M925636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Internal Table Entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850359#M925637</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 don´t know how you t_vbap is defined but try it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE t_vbap where ( ( w&lt;SUB&gt;erdat LE pre_dat and w&lt;/SUB&gt;erdat GE p_syndt ) or ( w~erdat NE&lt;/P&gt;&lt;P&gt;p_syndt and erzet GT p_syntm ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 06:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850359#M925637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Internal Table Entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850360#M925638</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;if you have not defined ERDAT in t_vbap, then it will show an error.  add erdat in the internal table definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 06:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table-entry/m-p/3850360#M925638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:22:19Z</dc:date>
    </item>
  </channel>
</rss>

