<?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 in loop at itab in ECC 6.0 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952596#M944792</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;In the OO concept we should not modify or process an internal table direcly.&lt;/P&gt;&lt;P&gt;A work area must be used for this purpose. The error will be thrown if WA is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;teja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 13:54:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T13:54:54Z</dc:date>
    <item>
      <title>error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952591#M944787</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;in ECC 6.0, in an abap proxy class i have a loop statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tablename.&lt;/P&gt;&lt;P&gt;    sdfsdf&lt;/P&gt;&lt;P&gt;    sfsfsf&lt;/P&gt;&lt;P&gt;    s&lt;/P&gt;&lt;P&gt;    fsf&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i get the error, At "Loop At itab" one of the additions into/assigning or transporting no fields is required in OO context !! what does that mean ? in my abap proxy class can't i use the loop at statement's simplest form ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the solution ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952591#M944787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T13:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952592#M944788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a workarea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952592#M944788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952593#M944789</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;in OO conetxt you cannot use internal table with header line, so you have to LOOP through the table INTO a work area or you have to ASSIGN a field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab &lt;STRONG&gt;INTO wa&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952593#M944789</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-05-30T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952594#M944790</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;Is that tablename an input structure of the proxy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must create a work area for it, and then use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT tablename INTO wa.
...
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952594#M944790</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-30T13:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952595#M944791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu can't use the normal internal table declared with OCCURS 0 extention in OO programming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have the internal tables declared with type and you have to explicitally take the current row into the workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of ty_tab,
field1 type vbeln,
end  of ty_tab.

data: tablename type standard table of ty_tab,
wa_tab type ty_tab.

LOOP AT tablename into wa_tab.
wa_tab-vbeln = 'XXXX'.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952595#M944791</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-30T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952596#M944792</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;In the OO concept we should not modify or process an internal table direcly.&lt;/P&gt;&lt;P&gt;A work area must be used for this purpose. The error will be thrown if WA is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;teja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952596#M944792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T13:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952597#M944793</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;It means it can only use an internal table without header line, so it needs to create a workarea in order to see the data of a record of the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: WA TYPE TABLENAME.

LOOP AT tablename INTO WA.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952597#M944793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952598#M944794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure you can, you just have to use an explicit workarea and use the INTO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: begin of ttab,
            fld1 type c,
           fld2 type c,
          end of ttab.


data: itab type table of ttab.
data: wa like line of itab.

Loop at itab INTO wa.

* Now the row is stord in WA, do what you need to here.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can NOT use internal tables with header lines in the OO context.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952598#M944794</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-05-30T13:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: error in loop at itab in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952599#M944795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use work area when you are working with Object Oriented environment. I hope you are using the loop inside class or BSP or WDA or some BADI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA.  use work area for all internal table processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-loop-at-itab-in-ecc-6-0/m-p/3952599#M944795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T13:57:14Z</dc:date>
    </item>
  </channel>
</rss>

