<?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 table contents in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437857#M545444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a ztable A with fields&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
f1 f2 f3
a 1
a 2
a 3
a 4
a 5
b 2
b 3
       i just want to add
b 1
b 4
b 5
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;my ztable, in the same way value 'a' has 400 values. and 'b' has 100 values. I just want to copy the remaining 300 to value 'b'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 12:46:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T12:46:00Z</dc:date>
    <item>
      <title>table contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437857#M545444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a ztable A with fields&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
f1 f2 f3
a 1
a 2
a 3
a 4
a 5
b 2
b 3
       i just want to add
b 1
b 4
b 5
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;my ztable, in the same way value 'a' has 400 values. and 'b' has 100 values. I just want to copy the remaining 300 to value 'b'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 12:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437857#M545444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: table contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437858#M545445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way is to create a flat file and upload it through LSWM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 12:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437858#M545445</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-05T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: table contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437859#M545446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use an internal table.  First copy all "a" records to your internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ztable INTO w_record&lt;/P&gt;&lt;P&gt;WHERE field1 = 'a'.&lt;/P&gt;&lt;P&gt;APPEND w_record TO w_table.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create new entries for the "b" values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT w_table INTO w_record.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ztable INTO b_record&lt;/P&gt;&lt;P&gt;WHERE field1 = 'b' AND field2 = w_record-field2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;b_record-field1 = 'b'.&lt;/P&gt;&lt;P&gt;b_record-field2 = w_record-field2.&lt;/P&gt;&lt;P&gt;INSERT INTO ztable VALUES b_record.&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;I hope this helps.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 13:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437859#M545446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T13:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: table contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437860#M545447</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;here is the code  ...  just change  the fields  names and table name as yours  ... there   see in the debug mode  AND  SEE IT  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was working in my end .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT   ZTEST_UPDATE.

tables :  spfli .

DATA sflight_tab TYPE TABLE OF sflight.
FIELD-SYMBOLS &amp;lt;sflight&amp;gt; TYPE sflight.

SELECT CARRID CONNID  FROM sflight  INTO TABLE sflight_tab
                                                WHERE carrid = 'A' .

IF sy-subrc = 0.
LOOP AT sflight_tab ASSIGNING &amp;lt;sflight&amp;gt;.
&amp;lt;sflight&amp;gt;-CARRID  = 'B' .
APPEND &amp;lt;sflight&amp;gt; to   sflight_tab .
ENDLOOP.
ENDIF.

UPDATE sflight FROM TABLE sflight_tab    .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 13:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-contents/m-p/2437860#M545447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T13:23:35Z</dc:date>
    </item>
  </channel>
</rss>

