<?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: modify internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659321#M881440</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; Use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_date type sy-datum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key errorlog = 'e'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; v_date = itab-date.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where date lt v_date.&lt;/P&gt;&lt;P&gt;itab-errorlog = 'e'.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 10:07:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T10:07:28Z</dc:date>
    <item>
      <title>modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659316#M881435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vbeln posnr qty errorlog  date&lt;/P&gt;&lt;P&gt;0001 10 2000             21.04.2008&lt;/P&gt;&lt;P&gt;0001 10 200              22.04.2008&lt;/P&gt;&lt;P&gt;0001 10 100 e           23.04.2008&lt;/P&gt;&lt;P&gt;0002 10 1000            22.04.2008 &lt;/P&gt;&lt;P&gt;0002 20 2000            15.04.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depending on the error at e in third item remain above in same vbeln need to make errorlog as e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln posnr qty errorlog  date&lt;/P&gt;&lt;P&gt;0001 10 2000 e     21.04.2008&lt;/P&gt;&lt;P&gt;0001 10 200 e      22.04.2008&lt;/P&gt;&lt;P&gt;0001 10 100 e       23.04.2008&lt;/P&gt;&lt;P&gt;0002 10 1000      22.04.2008&lt;/P&gt;&lt;P&gt;0002 20 2000       15.04.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; query not working properly need to sort vbeln in ascending order and date by descending so that date &lt;/P&gt;&lt;P&gt;vbeln posnr qty errorlog  date&lt;/P&gt;&lt;P&gt;0001 10 100 e       23.04.2008&lt;/P&gt;&lt;P&gt;0001 10 200       22.04.2008&lt;/P&gt;&lt;P&gt;0001 10 2000      21.04.2008&lt;/P&gt;&lt;P&gt;0002 10 1000      22.04.2008&lt;/P&gt;&lt;P&gt;0002 20 2000       15.04.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based up on the e message i have to populate the other 2, and 3 record with e as below&lt;/P&gt;&lt;P&gt;vbeln posnr qty errorlog  date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0001 10 100 e       23.04.2008&lt;/P&gt;&lt;P&gt;0001 10 200   e    22.04.2008&lt;/P&gt;&lt;P&gt;0001 10 2000   e   21.04.2008&lt;/P&gt;&lt;P&gt;0002 10 1000      22.04.2008&lt;/P&gt;&lt;P&gt;0002 20 2000       15.04.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;read table modify table based on error log&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; sort it_data descending by zedatu_apd ascending vbeln.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; break-point.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; loop at it_data where errlog = 'E'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MODIFY it_data where vbeln = it_data-vbeln TRANSPORTING errlog = 'E'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659316#M881435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659317#M881436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the Modify statement in the loop as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY it_data where vbeln = it_data-vbeln and posnr = it_data-posnr TRANSPORTING errlog = 'E'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659317#M881436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659318#M881437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; First of all understand the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_tabix type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key errorlog = 'e'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix - 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not v_tabix is initial.&lt;/P&gt;&lt;P&gt;loop at itab from 1 to v_tabix.&lt;/P&gt;&lt;P&gt;itab-errorlog = 'e'.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And try to close the threads immediately once you got the  solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on Apr 3, 2008 11:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659318#M881437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659319#M881438</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;just loop at ur table  and check if errorlog =  'e'  then save that vbeln into a temporary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then while reading that new table containing vbeln with errorlog = 'e'   match ur  original table  where-ever the both vbeln matches modify ur internal table  transportin errorlog =  'e'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659319#M881438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659320#M881439</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;You are using modify in loop...endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use modify itab index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If modify is out of the loop...endloop and to mdify a group of records use where condition and transporting. If in the where condition all the keys are primary, then again only single record is modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659320#M881439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659321#M881440</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; Use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_date type sy-datum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key errorlog = 'e'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; v_date = itab-date.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where date lt v_date.&lt;/P&gt;&lt;P&gt;itab-errorlog = 'e'.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 10:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3659321#M881440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T10:07:28Z</dc:date>
    </item>
  </channel>
</rss>

