<?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 syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780024#M909537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;types:BEGIN OF typ_tecs,&lt;/P&gt;&lt;P&gt;      matnr_lo LIKE tecs-matnr_lo,&lt;/P&gt;&lt;P&gt;      sernr_lo LIKE tecs-sernr_lo,&lt;/P&gt;&lt;P&gt;      techs    LIKE tecs-techs,&lt;/P&gt;&lt;P&gt;      aufnr    type mdfa-aufnr,&lt;/P&gt;&lt;P&gt;      pspel    LIKE mdfa-pspel,&lt;/P&gt;&lt;P&gt;      END OF typ_tecs.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;data:it_tecs  TYPE STANDARD TABLE OF typ_tecs.&lt;/P&gt;&lt;P&gt;DATA:wa_tecs  TYPE typ_tecs.&lt;/P&gt;&lt;P&gt;SELECT a~matnr_lo&lt;/P&gt;&lt;P&gt;       a~sernr_lo&lt;/P&gt;&lt;P&gt;       a~techs&lt;/P&gt;&lt;P&gt;       b~aufnr&lt;/P&gt;&lt;P&gt;       b~pspel&lt;/P&gt;&lt;P&gt;  FROM tecs AS a INNER JOIN mdfa AS b ON a&lt;SUB&gt;techs = b&lt;/SUB&gt;techs&lt;/P&gt;&lt;P&gt;  INTO TABLE it_tecs.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;SELECT projn&lt;/P&gt;&lt;P&gt;       aufnr&lt;/P&gt;&lt;P&gt;  FROM afpo&lt;/P&gt;&lt;P&gt;  INTO TABLE it_afpo&lt;/P&gt;&lt;P&gt;  WHERE aufnr EQ it_tecs-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting syntax error that it_tecs is atable without header line and therefore has no component called aufnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 11:52:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T11:52:20Z</dc:date>
    <item>
      <title>syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780024#M909537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;types:BEGIN OF typ_tecs,&lt;/P&gt;&lt;P&gt;      matnr_lo LIKE tecs-matnr_lo,&lt;/P&gt;&lt;P&gt;      sernr_lo LIKE tecs-sernr_lo,&lt;/P&gt;&lt;P&gt;      techs    LIKE tecs-techs,&lt;/P&gt;&lt;P&gt;      aufnr    type mdfa-aufnr,&lt;/P&gt;&lt;P&gt;      pspel    LIKE mdfa-pspel,&lt;/P&gt;&lt;P&gt;      END OF typ_tecs.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;data:it_tecs  TYPE STANDARD TABLE OF typ_tecs.&lt;/P&gt;&lt;P&gt;DATA:wa_tecs  TYPE typ_tecs.&lt;/P&gt;&lt;P&gt;SELECT a~matnr_lo&lt;/P&gt;&lt;P&gt;       a~sernr_lo&lt;/P&gt;&lt;P&gt;       a~techs&lt;/P&gt;&lt;P&gt;       b~aufnr&lt;/P&gt;&lt;P&gt;       b~pspel&lt;/P&gt;&lt;P&gt;  FROM tecs AS a INNER JOIN mdfa AS b ON a&lt;SUB&gt;techs = b&lt;/SUB&gt;techs&lt;/P&gt;&lt;P&gt;  INTO TABLE it_tecs.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;SELECT projn&lt;/P&gt;&lt;P&gt;       aufnr&lt;/P&gt;&lt;P&gt;  FROM afpo&lt;/P&gt;&lt;P&gt;  INTO TABLE it_afpo&lt;/P&gt;&lt;P&gt;  WHERE aufnr EQ it_tecs-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting syntax error that it_tecs is atable without header line and therefore has no component called aufnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780024#M909537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780025#M909538</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;The Problem Here is that you have Given a Internal Table's Field in Where Condition whereas it should be a Work Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this there are 3 options given below :&lt;/P&gt;&lt;P&gt;First Option is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:it_tecs TYPE STANDARD TABLE OF typ_tecs &lt;STRONG&gt;WITH HEADER LINE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second Option is :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT projn
aufnr
FROM afpo
INTO TABLE it_afpo
For All Entries IN IT_TECS
WHERE aufnr EQ it_tecs-aufnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Third Option is:&lt;/P&gt;&lt;P&gt; write the Below CODE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types:BEGIN OF typ_tecs,
matnr_lo LIKE tecs-matnr_lo,
sernr_lo LIKE tecs-sernr_lo,
techs LIKE tecs-techs,
aufnr type mdfa-aufnr,
pspel LIKE mdfa-pspel,
END OF typ_tecs.

data:it_tecs TYPE STANDARD TABLE OF typ_tecs.
DATA:wa_tecs TYPE typ_tecs.
DATA:wa_projn LIKE LINE OF it_afpo.
     
SELECT a~matnr_lo
a~sernr_lo
a~techs
b~aufnr
b~pspel
FROM tecs AS a INNER JOIN mdfa AS b ON a~techs = b~techs
INTO TABLE it_tecs.

LOOP AT it_tecs INTO wa_tecs.
SELECT SINGLE projn
       aufnr
  FROM afpo
  INTO wa_afpo
 WHERE aufnr EQ wa_tecs-aufnr.
  APPEND wa_afpo TO it_afpo.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780025#M909538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780026#M909539</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;do this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:BEGIN OF typ_tecs,&lt;/P&gt;&lt;P&gt;matnr_lo LIKE tecs-matnr_lo,&lt;/P&gt;&lt;P&gt;sernr_lo LIKE tecs-sernr_lo,&lt;/P&gt;&lt;P&gt;techs LIKE tecs-techs,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aufnr like mdfa-aufnr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pspel LIKE mdfa-pspel,&lt;/P&gt;&lt;P&gt;END OF typ_tecs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:BEGIN OF typ_tecs,&lt;/P&gt;&lt;P&gt;matnr_lo LIKE tecs-matnr_lo,&lt;/P&gt;&lt;P&gt;sernr_lo LIKE tecs-sernr_lo,&lt;/P&gt;&lt;P&gt;techs LIKE tecs-techs,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aufnr type aufnr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pspel LIKE mdfa-pspel,&lt;/P&gt;&lt;P&gt;END OF typ_tecs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780026#M909539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780027#M909540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:it_tecs TYPE STANDARD TABLE OF typ_tecs occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reghards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780027#M909540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780028#M909541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT projn&lt;/P&gt;&lt;P&gt;aufnr&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE it_afpo&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For All Entries IN IT_TECS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE aufnr EQ it_tecs-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you forgot the FOR ALL ENTRIES IN Stmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780028#M909541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780029#M909542</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 not getting the error what you got, but it says that "Field "IT_AFPO" is unknown. It is neither in one of the specified	tables nor defined by a "DATA" statement . . . . . . . . . .		"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means that it_afpo is not declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780029#M909542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780030#M909543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;use this select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT projn&lt;/P&gt;&lt;P&gt;aufnr&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE it_afpo&lt;/P&gt;&lt;P&gt;for all entries in it_tecs&lt;/P&gt;&lt;P&gt;WHERE aufnr EQ it_tecs-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 12:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3780030#M909543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T12:01:03Z</dc:date>
    </item>
  </channel>
</rss>

