<?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 in code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179163#M1198992</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 am working on a code in which i am using inner join and for all entries in the same select query but it giving the error:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The where condition does not refer to the FOR ALL ENTRIES table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT D&lt;SUB&gt;AUFNR D&lt;/SUB&gt;BWART D&lt;SUB&gt;MENGE D&lt;/SUB&gt;MEINS D&lt;SUB&gt;BLDAT D&lt;/SUB&gt;WERKS D&lt;SUB&gt;MATNR E&lt;/SUB&gt;NTGEW&lt;/P&gt;&lt;P&gt;             FROM AUFM AS D&lt;/P&gt;&lt;P&gt;             INNER JOIN MARA AS E ON E&lt;SUB&gt;MATNR = D&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;             INTO TABLE T_ITPO4&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN T_ITPO1&lt;/P&gt;&lt;P&gt;             WHERE D&lt;SUB&gt;AUFNR = W_ITPO1-AUFNR AND  E&lt;/SUB&gt;MTART IN ('ROH','ZSCR','HALB','FERT')&lt;/P&gt;&lt;P&gt;            AND D~BWART IN ('101','261','531').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am using the Like method and types declarations it does not give the error .&lt;/P&gt;&lt;P&gt;I want to know that the method of using types in program is latest method used today or by using OOPS concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 04:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T04:52:26Z</dc:date>
    <item>
      <title>problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179163#M1198992</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 am working on a code in which i am using inner join and for all entries in the same select query but it giving the error:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The where condition does not refer to the FOR ALL ENTRIES table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT D&lt;SUB&gt;AUFNR D&lt;/SUB&gt;BWART D&lt;SUB&gt;MENGE D&lt;/SUB&gt;MEINS D&lt;SUB&gt;BLDAT D&lt;/SUB&gt;WERKS D&lt;SUB&gt;MATNR E&lt;/SUB&gt;NTGEW&lt;/P&gt;&lt;P&gt;             FROM AUFM AS D&lt;/P&gt;&lt;P&gt;             INNER JOIN MARA AS E ON E&lt;SUB&gt;MATNR = D&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;             INTO TABLE T_ITPO4&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN T_ITPO1&lt;/P&gt;&lt;P&gt;             WHERE D&lt;SUB&gt;AUFNR = W_ITPO1-AUFNR AND  E&lt;/SUB&gt;MTART IN ('ROH','ZSCR','HALB','FERT')&lt;/P&gt;&lt;P&gt;            AND D~BWART IN ('101','261','531').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am using the Like method and types declarations it does not give the error .&lt;/P&gt;&lt;P&gt;I want to know that the method of using types in program is latest method used today or by using OOPS concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 04:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179163#M1198992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T04:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179164#M1198993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;while u r using the FOR ALL ENTRIES u need check 1st the internal table is INITIAL or not.&lt;/P&gt;&lt;P&gt;its the pre condition for that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 04:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179164#M1198993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T04:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179165#M1198994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi please refer this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u should compare t_itpo1 or w_itpo1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT D&lt;SUB&gt;AUFNR D&lt;/SUB&gt;BWART D&lt;SUB&gt;MENGE D&lt;/SUB&gt;MEINS D&lt;SUB&gt;BLDAT D&lt;/SUB&gt;WERKS D&lt;SUB&gt;MATNR E&lt;/SUB&gt;NTGEW&lt;/P&gt;&lt;P&gt;FROM AUFM AS D&lt;/P&gt;&lt;P&gt;INNER JOIN MARA AS E ON E&lt;SUB&gt;MATNR = D&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;INTO TABLE T_ITPO4&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ITPO1&lt;/P&gt;&lt;P&gt;WHERE D&lt;SUB&gt;AUFNR = &lt;STRONG&gt;T_ITPO1&lt;/STRONG&gt;-AUFNR AND E&lt;/SUB&gt;MTART IN ('ROH','ZSCR','HALB','FERT')&lt;/P&gt;&lt;P&gt;AND D~BWART IN ('101','261','531').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ABAPEr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 04:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179165#M1198994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T04:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179166#M1198995</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;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN &lt;STRONG&gt;T_ITPO1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE D~AUFNR = &lt;STRONG&gt;W_ITPO1&lt;/STRONG&gt;-AUFN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here for all entries refers to a different table and where condition refers  to a different table .&lt;/P&gt;&lt;P&gt;Both should be same . Chande it and should work &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 04:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179166#M1198995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T04:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179167#M1198996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;You need to add  &lt;STRONG&gt;AND  AUFNR  =  T_ITPO1-AUFNR&lt;/STRONG&gt;  in where clause  -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT D~AUFNR D~BWART D~MENGE D~MEINS D~BLDAT D~WERKS D~MATNR E~NTGEW
FROM AUFM AS D
INNER JOIN MARA AS E ON E~MATNR = D~MATNR
INTO TABLE T_ITPO4
FOR ALL ENTRIES IN T_ITPO1
WHERE D~AUFNR = W_ITPO1-AUFNR AND E~MTART IN ('ROH','ZSCR','HALB','FERT')
AND D~BWART IN ('101','261','531')
AND  AUFNR  =  T_ITPO1-AUFNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 04:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179167#M1198996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T04:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179168#M1198997</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;Give table name( T_ITPO1) in where condition instead of work area( W_ITPO1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT D&lt;SUB&gt;AUFNR D&lt;/SUB&gt;BWART D&lt;SUB&gt;MENGE D&lt;/SUB&gt;MEINS D&lt;SUB&gt;BLDAT D&lt;/SUB&gt;WERKS D&lt;SUB&gt;MATNR E&lt;/SUB&gt;NTGEW&lt;/P&gt;&lt;P&gt;FROM AUFM AS D&lt;/P&gt;&lt;P&gt;INNER JOIN MARA AS E ON E&lt;SUB&gt;MATNR = D&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;INTO TABLE T_ITPO4&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ITPO1&lt;/P&gt;&lt;P&gt;WHERE D&lt;SUB&gt;AUFNR = T_ITPO1-AUFNR AND E&lt;/SUB&gt;MTART IN ('ROH','ZSCR','HALB','FERT')&lt;/P&gt;&lt;P&gt;AND D~BWART IN ('101','261','531').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179168#M1198997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179169#M1198998</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;Check ur itab name in where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;W_ITPO1-AUFNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179169#M1198998</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-02-12T05:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179170#M1198999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code by mistake you have given the work area in the where condition instead of table due to which its giving you problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please make the following changes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT D&lt;SUB&gt;AUFNR D&lt;/SUB&gt;BWART D&lt;SUB&gt;MENGE D&lt;/SUB&gt;MEINS D&lt;SUB&gt;BLDAT D&lt;/SUB&gt;WERKS D&lt;SUB&gt;MATNR E&lt;/SUB&gt;NTGEW&lt;/P&gt;&lt;P&gt;FROM AUFM AS D&lt;/P&gt;&lt;P&gt;INNER JOIN MARA AS E ON E&lt;SUB&gt;MATNR = D&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;INTO TABLE T_ITPO4&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ITPO1&lt;/P&gt;&lt;P&gt;WHERE D&lt;SUB&gt;AUFNR = T_ITPO1-AUFNR AND E&lt;/SUB&gt;MTART IN ('ROH','ZSCR','HALB','FERT')&lt;/P&gt;&lt;P&gt;AND D~BWART IN ('101','261','531').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because the select query gets executed at the database interface and there it does not recognize w_itpo1 as it is not used in the query.... it only takes the variables used in the query and also the fields which are there in the database table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179170#M1198999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179171#M1199000</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 think the solution given by experts will solve your problem,&lt;/P&gt;&lt;P&gt;In the select for all entries the system will not recognize work area as you are reffering internal table.&lt;/P&gt;&lt;P&gt;Once resolved please close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: jyoti sahu on Feb 12, 2009 6:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-code/m-p/5179171#M1199000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:41:48Z</dc:date>
    </item>
  </channel>
</rss>

