<?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 error in program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445826#M1412985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before raising further basic questions, learn the difference between a correct, very helpful and helpful answer and assign p0ints accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2009 07:06:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-23T07:06:23Z</dc:date>
    <item>
      <title>Syntax error in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445822#M1412981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i check the syntax check for a program i got the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The line structure of the table LIFNR_WORKTAB is incorrect.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declaration and select statement is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:   begin of lfa1_tab occurs 200.       
        include structure lfa1.
data:   end   of lfa1_tab.

data:   begin of lifnr_worktab occurs 500,  
         lifnr like lfa1-lifnr,
        end   of lifnr_worktab.      

          select * from lfa1 appending table lfa1_tab
                           where lifnr in lifnr_worktab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can solve this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 06:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445822#M1412981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T06:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445823#M1412982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well to be honest, this is not the only thing that fails / will fail.&lt;/P&gt;&lt;P&gt;In this case you are comparing two different things actually. This would be the way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          select * from lfa1 appending table lfa1_tab&lt;/P&gt;&lt;P&gt;                           where lifnr in lifnr_worktab-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now you will face problem that this is not an internal table. But what you need here is a range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some well meant advice: Better check ABAP help first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be complete about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stop using the OCCURS statement. Obviously no one is using ABAP OO yet??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 06:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445823#M1412982</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-11-23T06:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445824#M1412983</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;data:   begin of lfa1_tab occurs 200.       &lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;include structure lfa1.
data:   end   of lfa1_tab.
 
data:   begin of lifnr_worktab occurs 500,  
         lifnr like lfa1-lifnr,
        end   of lifnr_worktab.      
 
          select * from lfa1 appending table lfa1_tab
                     for all entries in lifnr_worktab " As per your code this happens to be Internal Table
                           where lifnr = lifnr_worktab-lifnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 06:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445824#M1412983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T06:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445825#M1412984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 06:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445825#M1412984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445826#M1412985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before raising further basic questions, learn the difference between a correct, very helpful and helpful answer and assign p0ints accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 07:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-program/m-p/6445826#M1412985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T07:06:23Z</dc:date>
    </item>
  </channel>
</rss>

