<?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 How to read table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174434#M997999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expets,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read a table inside a LOOP ... ENDLOOP.&lt;/P&gt;&lt;P&gt;But I am not able to do it because while reading I need to take workarea. Kindly suggest  a way of reading a table inside a LOOP .. ENDLOOP so that I can read all the contents of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above mentioned logic I need to implement in BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 19:15:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T19:15:21Z</dc:date>
    <item>
      <title>How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174434#M997999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expets,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read a table inside a LOOP ... ENDLOOP.&lt;/P&gt;&lt;P&gt;But I am not able to do it because while reading I need to take workarea. Kindly suggest  a way of reading a table inside a LOOP .. ENDLOOP so that I can read all the contents of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above mentioned logic I need to implement in BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 19:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174434#M997999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T19:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174435#M998000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE STANDARD TABLE OF MARA.&lt;/P&gt;&lt;P&gt;      WA_ITAB TYPE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB1 TYPE STANDARD TABLE OF MAKT&lt;/P&gt;&lt;P&gt;      WA_ITAB TYPE ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA_ITAB&lt;/P&gt;&lt;P&gt;  CLEAR WA_ITAB1&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB1 INTO WA_ITAB1 WITH KEY&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 19:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174435#M998000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T19:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174436#M998001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data ind  type i.
loop.
ind = ind + 1.
read table it_data index ind.
if sy-subrc ne 0.
exit.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 19:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174436#M998001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T19:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174437#M998002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.

read table itab index sy-tabix. " every single record will be read here

if sy-subrc eq 0.
 logic....
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 19:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174437#M998002</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-07-23T19:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174438#M998003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below logic whether it works or not please let me know:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT LIT_STBP INTO LW_STBP1.&lt;/P&gt;&lt;P&gt;                       IF LW_STBP1-STUFE = 1.&lt;/P&gt;&lt;P&gt;                        CLEAR LW_STBP2.&lt;/P&gt;&lt;P&gt;                        LOOP AT LIT_TEMP_STBP INTO LW_STBP2&lt;/P&gt;&lt;P&gt;                               WHERE VWEGX = LW_STBP1-WEGXX.&lt;/P&gt;&lt;P&gt;                          IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;                            DELETE LIT_STBP.&lt;/P&gt;&lt;P&gt;                          ENDIF.&lt;/P&gt;&lt;P&gt;                        ENDLOOP.&lt;/P&gt;&lt;P&gt;                       ENDIF.&lt;/P&gt;&lt;P&gt;                    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 19:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174438#M998003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T19:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174439#M998004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no need of sy-subrc check in side loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT LIT_STBP INTO LW_STBP1.
IF LW_STBP1-STUFE = 1.
CLEAR LW_STBP2.
LOOP AT LIT_TEMP_STBP INTO LW_STBP2
WHERE VWEGX = LW_STBP1-WEGXX.

DELETE LIT_STBP.
ENDLOOP.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 19:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174439#M998004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T19:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to read table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174440#M998005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got some solution with ur answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 11:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-table/m-p/4174440#M998005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T11:03:34Z</dc:date>
    </item>
  </channel>
</rss>

