<?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: Error with code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133849#M988564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table that you've declared doesn't have a header line like before. Instead you need to read it (using READ lt_tab1... INTO ls_tab1) or do a LOOP lt_tab1 ... INTO ls_tab1 to works with the data in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to do not use the WITH HEADER LINE because this command has some restriction in ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract from SAP Help&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;These statements for processing individual table rows have short forms that implicitly use the header line as work area. These short forms are allowed only outside of ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 18:36:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-02T18:36:59Z</dc:date>
    <item>
      <title>Error with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133848#M988563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the following error when I check some code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E:"LT_TAB1" is a table without a header line and therefore has no component called "COMPONENT1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined the table as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_tab1 type standard table of /BI0/Ptable initial size 0,&lt;/P&gt;&lt;P&gt;ls_tab1 type /BI0/Ptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was originally defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_tab1 LIKE /BI0/Ptable OCCURS 0,&lt;/P&gt;&lt;P&gt;ls_tab1 LIKE LINE OF lt_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the second definition was giving an error otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone advise? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 18:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133848#M988563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133849#M988564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table that you've declared doesn't have a header line like before. Instead you need to read it (using READ lt_tab1... INTO ls_tab1) or do a LOOP lt_tab1 ... INTO ls_tab1 to works with the data in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to do not use the WITH HEADER LINE because this command has some restriction in ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract from SAP Help&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;These statements for processing individual table rows have short forms that implicitly use the header line as work area. These short forms are allowed only outside of ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 18:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133849#M988564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T18:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133850#M988565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to post more code, like specifically WHERE the error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chance are you are using lt_tab1 where you should be using ls_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 18:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133850#M988565</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-02T18:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133851#M988566</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;Try using the option 'WITH HEADER LINE' and see if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rugmani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 18:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133851#M988566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T18:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133852#M988567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this.  The work is part of SAP BI update rules.  Where I have carried out the following in a start routine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_tab1 type standard table of /BI0/Ptable initial size 0,&lt;/P&gt;&lt;P&gt;ls_tab1 type /BI0/Ptable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH lt_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT field1&lt;/P&gt;&lt;P&gt;  FROM /BI0/Ptable&lt;/P&gt;&lt;P&gt;  INTO TABLE lt_tab1&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN lt_other_table&lt;/P&gt;&lt;P&gt;  WHERE field1 EQ lt_other_table-field1&lt;/P&gt;&lt;P&gt;  AND OBJVERS EQ 'A'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  SORT lt_tab1 BY field1 ASCENDING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not reading the table and will make modifications to do the same.  Have awarded points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 18:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-code/m-p/4133852#M988567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T18:56:30Z</dc:date>
    </item>
  </channel>
</rss>

