<?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: Update internal table rows based on values from a single row in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679532#M1449365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shorter &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA wa_itab LIKE LINE OF itab.
SORT itab BY aezet DESCENDING.
READ TABLE itab INTO wa_itab INDEX 1.
MODIFY itab FROM wa_itab TRANSPORTING aezet
  WHERE aezet NE wa_itab-aezet.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But you wrote&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;as it is a key field&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in this case (SORTED type table) you wont be able to update (nor SORT) the internal table, but need to delete and re-insert the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Mar 2010 12:21:41 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2010-03-05T12:21:41Z</dc:date>
    <item>
      <title>Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679528#M1449361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could you help me on this below requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change CHANGED TIME (AEZET) for the record only once, as it is a key field in the Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ZPROFILE_ID  ZPROF_MONTH ZPRO_EFF_DATE ZOPER_UNIT AEZET     ZVALUE_PERC&lt;/P&gt;&lt;P&gt;                                                                     &lt;/P&gt;&lt;P&gt;P003               |201001              |20110503              |SESA           |114642|   10.0000 |&lt;/P&gt;&lt;P&gt;P003               |201002              |20110503              |SESA           |114644|   90.0000 |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to take the last value for AEZET that is 114644, I have to use this value and show up in the above record also. Can you let me know how do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: subject corrected, please use a more meaningful one next time.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 5, 2010 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 11:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679528#M1449361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T11:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679529#M1449362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry your question is not clear. Elaborate your question properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 11:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679529#M1449362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679530#M1449363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Here is the requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use that last value for the changed time field (aezet), and modify my complete internal table with that value for every profile (ZPROFILE_ID), here in the example I have to modify every record  of P003 with that last value of AEZET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you got my question....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679530#M1449363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T12:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679531#M1449364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: v_aezet type ztable-aezet.

sort itab by AEZET descending.

read table itab index 1. 
v_aezet = itab-aezet.

clear itab.

loop at itab.
itab-aezet = v_aezet.
modify itab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679531#M1449364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679532#M1449365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shorter &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA wa_itab LIKE LINE OF itab.
SORT itab BY aezet DESCENDING.
READ TABLE itab INTO wa_itab INDEX 1.
MODIFY itab FROM wa_itab TRANSPORTING aezet
  WHERE aezet NE wa_itab-aezet.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But you wrote&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;as it is a key field&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in this case (SORTED type table) you wont be able to update (nor SORT) the internal table, but need to delete and re-insert the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679532#M1449365</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-05T12:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679533#M1449366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are close to the solution I feel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in my itab I have different profiles which will have one to many connection for zperc_value and aezet values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;profile                     aezet             zvalue_perc&lt;/P&gt;&lt;P&gt;P001	         17:43:07         20.0000&lt;/P&gt;&lt;P&gt;P001	         17:42:22        90.0000&lt;/P&gt;&lt;P&gt;P001	         17:43:10         80.0000&lt;/P&gt;&lt;P&gt;P002	         18:08:18         10.0000&lt;/P&gt;&lt;P&gt;P002	         18:08:19          20.0000&lt;/P&gt;&lt;P&gt;P002	         18:08:21         30.0000&lt;/P&gt;&lt;P&gt;P002	         18:08:22         40.0000&lt;/P&gt;&lt;P&gt;P002	         18:08:28         0.0000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for every last aezet of the profile, I have to modify that complete profile values with that aezet value.&lt;/P&gt;&lt;P&gt;That is 17:43:10 for P001 should be updated for all the aezet values for the same P001 and like wise for all the new profiles respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679533#M1449366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679534#M1449367</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;with in loop you can use at new .&lt;/P&gt;&lt;P&gt;sort itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new aezet.&lt;/P&gt;&lt;P&gt;read itab index sy-index.&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;Edited by: dharma raj on Mar 5, 2010 5:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679534#M1449367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679535#M1449368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am using at new its only updating the first record for that profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P. Varun Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679535#M1449368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T12:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679536#M1449369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_itab LIKE LINE OF itab,
      last_itab LIKE LINE OF itab.
SORT itab BY profile aezet.
LOOP AT itab INTO wa_itab.
  last_itab = wa_itab. " store last value
  AT END OF profile. " here cursor is already before next profile value
    MODIFY itab FROM last_itab TRANSPORTING aezet
      WHERE profile = last_itab-profile. " whole profile updated
  ENDAT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679536#M1449369</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-05T12:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update internal table rows based on values from a single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679537#M1449370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks for your time, issue resolved....&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;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 12:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-internal-table-rows-based-on-values-from-a-single-row/m-p/6679537#M1449370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T12:42:34Z</dc:date>
    </item>
  </channel>
</rss>

