<?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: problem with read statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969125#M1338940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete gt_ekpo where budat is not initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2009 11:39:50 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2009-08-19T11:39:50Z</dc:date>
    <item>
      <title>problem with read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969123#M1338938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have one internal table gt_ekpo in which fields such as ebeln, ebelp, mblnr, mjahr and budat are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I want to to delete all the records which have values present in budat(date)  so i have tried following statement:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT gt_ekpo INTO ls_ekpo.&lt;/P&gt;&lt;P&gt;      READ TABLE gt_ekpo INTO ls_ekpo WITH TABLE KEY budat = ls_ekpo-budat TRANSPORTING ebeln budat.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    READ TABLE gt_ekpo into ls_ekpo WITH TABLE KEY budat = ls_ekpo-budat transporting ebeln budat."ebeln = ls_ekpo-ebeln ebelp = ls_ekpo-ebelp mblnr = ls_ekpo-mblnr mjahr = ls_ekpo-mjahr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      DELETE gt_ekpo INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it is giving me syntax error as declaration of ebeln key field is missing.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing if we use loop at for read then it will read multipple lines...rught?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969123#M1338938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969124#M1338939</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT gt_ekpo.
if gt_ekpo-budat is not initial.
DELETE gt_ekpo INDEX sy-tabix.
endif.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You wont require the read statement here. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vikred on Aug 19, 2009 5:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969124#M1338939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969125#M1338940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete gt_ekpo where budat is not initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969125#M1338940</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2009-08-19T11:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969126#M1338941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Use Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use after Fetching data:&lt;/P&gt;&lt;P&gt;Delete GT_EKPO where budat is not initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969126#M1338941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969127#M1338942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say do the way Vikred said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_ekpo.&lt;/P&gt;&lt;P&gt;if gt_ekpo-budat is not initial.&lt;/P&gt;&lt;P&gt;DELETE gt_ekpo INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 13:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5969127#M1338942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T13:08:45Z</dc:date>
    </item>
  </channel>
</rss>

