<?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/5486224#M1255749</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;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_EKPO.
    READ TABLE IT_FIRST WITH KEY MATNR = IT_EKPO-MATNR
                                 WERKS = IT_EKPO-WERKS.
    IF SY-SUBRC = 0.
      MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.
      MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.

 "   If you don't want to display the  blank ebeln with Append inside the condition
     APPEND IT_FIRST.
     CLEAR IT_FIRST.
    ENDIF.

 "   If you  want to display the  blank ebeln with Append outside the if condition 
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2009 12:32:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-20T12:32:46Z</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/5486219#M1255744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my rquirement I need to display all  corresponding &lt;STRONG&gt;ebeln&lt;/STRONG&gt; for a particular &lt;STRONG&gt;matnr&lt;/STRONG&gt; also&lt;/P&gt;&lt;P&gt;if any &lt;STRONG&gt;matnr&lt;/STRONG&gt; have no &lt;STRONG&gt;ebeln&lt;/STRONG&gt; also I need to display in O/P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I succeded in fetching the records but my problem is in displaying it as in my O/P  there one excess line for every record ( which is unwanted or duplicate ) now I want to clear it please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have look on my below code and advice me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT MARA~MATNR MARA~MTART MARD~WERKS MARD~LABST MARD~INSME MARD~SPEME FROM MARA INNER JOIN MARD ON MARA~MATNR EQ MARD~MATNR
INTO CORRESPONDING FIELDS OF TABLE IT_MARA  WHERE MARA~MATNR IN MATNR AND MARD~WERKS IN WERKS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_MARA.
    MOVE IT_MARA-MATNR TO IT_TAB-MATNR.
    MOVE IT_MARA-WERKS TO IT_TAB-WERKS.
    MOVE IT_MARA-LABST TO IT_TAB-LABST.
    MOVE IT_MARA-INSME TO IT_TAB-INSME.
    MOVE IT_MARA-SPEME TO IT_TAB-SPEME.
    COLLECT IT_TAB.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_TAB.
    MOVE-CORRESPONDING IT_TAB TO IT_FIRST.
    APPEND IT_FIRST.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT IT_FIRST IS INITIAL.
    SELECT * FROM EKPO INTO CORRESPONDING FIELDS OF TABLE IT_EKPO
       FOR ALL ENTRIES IN IT_FIRST WHERE MATNR EQ IT_FIRST-MATNR
       AND WERKS EQ IT_FIRST-WERKS AND PSTYP EQ '0' AND BSTYP EQ 'F'
       AND ELIKZ EQ ' ' AND LOEKZ NE 'L'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;For the below code I am facing trouble.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT IT_FIRST BY MATNR EBELN.
    LOOP AT IT_EKPO.
    READ TABLE IT_FIRST WITH KEY MATNR = IT_EKPO-MATNR
                                 WERKS = IT_EKPO-WERKS.
    IF SY-SUBRC = 0.
      MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.
      MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.
    ENDIF.
    APPEND IT_FIRST.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486219#M1255744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:02:25Z</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/5486220#M1255745</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;declare another table to display the output..lets say it_final...move the entries to it_final and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_FIRST BY MATNR EBELN.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_EKPO.&lt;/P&gt;&lt;P&gt;    READ TABLE IT_FIRST WITH KEY MATNR = IT_EKPO-MATNR&lt;/P&gt;&lt;P&gt;                                 WERKS = IT_EKPO-WERKS.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      MOVE IT_EKPO-EBELN TO &lt;STRONG&gt;IT_FINAL-EBELN&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;      MOVE IT_EKPO-EBELP TO &lt;STRONG&gt;IT_FINAL-EBELP&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    APPEND &lt;STRONG&gt;IT_FINAL.&lt;/STRONG&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486220#M1255745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:09:03Z</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/5486221#M1255746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Can you please check this code once :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_FIRST BY MATNR EBELN.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_EKPO.&lt;/P&gt;&lt;P&gt;    READ TABLE SORT IT_FIRST BY MATNR EBELN.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_EKPO.&lt;/P&gt;&lt;P&gt;    READ TABLE IT_FIRST WITH KEY MATNR = IT_EKPO-MATNR&lt;/P&gt;&lt;P&gt;                                 WERKS = IT_EKPO-WERKS.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.&lt;/P&gt;&lt;P&gt;      MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    APPEND IT_FIRST.&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;Here you are reading from IT_FIRST  and again you are appending IT_FIRST.&lt;/P&gt;&lt;P&gt;This logic you have written is not correct.&lt;/P&gt;&lt;P&gt;Check the logic once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486221#M1255746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:10:53Z</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/5486222#M1255747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try following code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SORT it_first BY matnr ebeln.
  LOOP AT it_ekpo.
    READ TABLE it_first WITH KEY matnr = it_ekpo-matnr
                                 werks = it_ekpo-werks.
    IF sy-subrc = 0.
      MOVE it_ekpo-ebeln TO it_first-ebeln.
      MOVE it_ekpo-ebelp TO it_first-ebelp.
      MODIFY it_first.
    ENDIF.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also In your select query you should check the contents of internal table rather than it's header line only.&lt;/P&gt;&lt;P&gt;IF NOT &lt;STRONG&gt;IT_FIRST[]&lt;/STRONG&gt;  IS INITIAL.&lt;/P&gt;&lt;P&gt;Correct Code : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT IT_FIRST[]  IS INITIAL.
    SELECT * FROM EKPO INTO CORRESPONDING FIELDS OF TABLE IT_EKPO
       FOR ALL ENTRIES IN IT_FIRST WHERE MATNR EQ IT_FIRST-MATNR
       AND WERKS EQ IT_FIRST-WERKS AND PSTYP EQ '0' AND BSTYP EQ 'F'
       AND ELIKZ EQ ' ' AND LOEKZ NE 'L'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using delete adjacent duplicate command if you are still getting duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;P&gt;Ashwa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486222#M1255747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:15:28Z</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/5486223#M1255748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u !! But its not working 4 me ...actually my o/p is correct only thing is one duplicate line is displayed for every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a &lt;STRONG&gt;matnr&lt;/STRONG&gt; have no Po number it is displayed correctly.&lt;/P&gt;&lt;P&gt;suppose if a &lt;STRONG&gt;matnr&lt;/STRONG&gt; have Po...its displayed like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*werks* , *matnr* , *ebeln*.
 unit1    , ABCD  ,  --space--            "duplicate line 
 unit1    , ABCD  , 4500019328
 unit1    , ABCD  , 4500018621
 unit2    , EFGH  ,  --space--            "duplicate line 
 unit2    , EFGH  , 4500192310
 unit2    , EFGH  , 4500065312&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;but it should display as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*werks* , *matnr* , *ebeln*.
 unit1    , ABCD  , 4500019328
 unit1    , ABCD  , 4500018621
 unit2    , EFGH  , 4500192310
 unit2    , EFGH  , 4500065312&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please advice&lt;/P&gt;&lt;P&gt; Karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Karthik R on Apr 20, 2009 5:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486223#M1255748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:27:12Z</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/5486224#M1255749</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;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_EKPO.
    READ TABLE IT_FIRST WITH KEY MATNR = IT_EKPO-MATNR
                                 WERKS = IT_EKPO-WERKS.
    IF SY-SUBRC = 0.
      MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.
      MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.

 "   If you don't want to display the  blank ebeln with Append inside the condition
     APPEND IT_FIRST.
     CLEAR IT_FIRST.
    ENDIF.

 "   If you  want to display the  blank ebeln with Append outside the if condition 
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486224#M1255749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:32:46Z</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/5486225#M1255750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The code you are writing is having some problem.&lt;/P&gt;&lt;P&gt; you are reading the  table IT_FIRST, and appending to the same table.&lt;/P&gt;&lt;P&gt;Instead of that &lt;/P&gt;&lt;P&gt;Loop at IT_EKPO&lt;/P&gt;&lt;P&gt;Read IT_FIRST&lt;/P&gt;&lt;P&gt;Then istead of using APPEND IT_FIRST,&lt;/P&gt;&lt;P&gt;write&lt;/P&gt;&lt;P&gt;MODIFY IT_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still if the problem prevails then make use of the following statement&lt;/P&gt;&lt;P&gt;DELETE ADJACENT duplicates from (Internal table) COMPARING all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486225#M1255750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T12:39:03Z</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/5486226#M1255751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working ...please advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 13:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486226#M1255751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T13:04:31Z</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/5486227#M1255752</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;after the loop delete the unwanted records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT IT_FIRST BY MATNR EBELN.
    LOOP AT IT_EKPO.
    READ TABLE IT_FIRST WITH KEY MATNR = IT_EKPO-MATNR
                                 WERKS = IT_EKPO-WERKS.
    IF SY-SUBRC = 0.
      DELETE IT_FIRST WHERE MATNR = IT_EKPO-MATNR AND WERKS - IT_EKPO-WERKS AND 
                           EBELN = SPACE.
      MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.
      MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.
      APPEND IT_FIRST.
    ENDIF.

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 13:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486227#M1255752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T13:25:28Z</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/5486228#M1255753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sidharth ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u !! its working but I need to display &lt;STRONG&gt;matnr&lt;/STRONG&gt; which have no corresponding &lt;STRONG&gt;ebeln&lt;/STRONG&gt; in have developed the program in  development and now my o/p is correct but I want to know will all the &lt;STRONG&gt;matnr&lt;/STRONG&gt; with no &lt;STRONG&gt;ebeln&lt;/STRONG&gt; will display in Production if use ur logic ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 04:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486228#M1255753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T04:48:56Z</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/5486229#M1255754</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;100% sure it will display....&lt;/P&gt;&lt;P&gt;That was the reason I wrote the delete statement inside the loop and giving the condition to delete only if the ebeln for the particular matnr is found... If the value for ebeln for the matnr is not found then the delete statement will not execute which means that those matnr values would remain undeleted....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence it will work ... if you want you can check by entering some dummy values in the database table or in the program just write a test code before the loop of delete, inserting the value in it_first and not entering any value in it ekpo.&lt;/P&gt;&lt;P&gt;then check if it displays those records which does not have any values in ebeln i.e. there are no entries in it_ekpo for those records.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 04:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486229#M1255754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T04:59:15Z</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/5486230#M1255755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow ..Sidharth u ROCK !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for ur kind help.....ur above not was very helpful 4 me ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 05:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-statement/m-p/5486230#M1255755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T05:17:30Z</dc:date>
    </item>
  </channel>
</rss>

