<?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 ztable from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625468#M1281091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to make this 4th field as a primary key or another way is to add an additional filed and make it as primary key such that the values will be appended to the table instead of overwriting.If a w x are primary keys, this new additional field which is also a primary key will hve some different value and the values will get appended.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 11:48:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-11T11:48:05Z</dc:date>
    <item>
      <title>Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625462#M1281085</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;I have a Ztable in which i have 4 diff fields....1 2 3 4&lt;/P&gt;&lt;P&gt;   and an internal table in whch i have same number of fields...&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;Internal table : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    1 2 3 4 &lt;/P&gt;&lt;P&gt;    a w x 9&lt;/P&gt;&lt;P&gt;    a w x 10&lt;/P&gt;&lt;P&gt;    a w x 11&lt;/P&gt;&lt;P&gt;    a w x 13&lt;/P&gt;&lt;P&gt;    a w x 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; When I am using Modify it only appends last record into ztable as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Ztable :  1 2 3 4 &lt;/P&gt;&lt;P&gt;           a w x 12&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Internal table has 6 records and z table should be appended with 6 records too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if varid-report  = 'ZFINRR1001' and&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    varid-VARIANT = 'CITI - ZBA' or&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     varid-VARIANT = 'WACHOVIA - ZBA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Modify ZV12_SWEEP from t_data_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be aprreciated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625462#M1281085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625463#M1281086</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;  u need to use code for modify as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Modify ZV12_SWEEP from table t_data_new.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625463#M1281086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625464#M1281087</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;Check if 1, 2 3 and 4 are all primary keys for the Z table..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625464#M1281087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625465#M1281088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jus check if ur passing the values to the same set of primary keys.&lt;/P&gt;&lt;P&gt;if a w x are primary keys and it has a value already, then it would not append any value instead it will modify or overwrite the existing record with the value from the internal table. jus check this.if not, make the 4th field as primary key and the records will get appended.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625465#M1281088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625466#M1281089</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;Thank you for your quick response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats correct ....1 2 3 are primary key fields...&lt;/P&gt;&lt;P&gt; I cannot change the 4 th fields a primary key field...as it is a table maintenance table and 4 th field will be currency field...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other way I can append the records into ztable ...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be apprecaiated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kittu on May 11, 2009 1:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625466#M1281089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625467#M1281090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the statement "APPEND LINES OF itab1 [FROM idx1] [TO idx2] TO itab2. "&lt;/P&gt;&lt;P&gt;Here you can specify the index from which index you have to pick the entries from itab1 and then append to itab2.&lt;/P&gt;&lt;P&gt;If no index is specified, it will append all the lines of itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625467#M1281090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625468#M1281091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to make this 4th field as a primary key or another way is to add an additional filed and make it as primary key such that the values will be appended to the table instead of overwriting.If a w x are primary keys, this new additional field which is also a primary key will hve some different value and the values will get appended.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 11:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625468#M1281091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625469#M1281092</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;Delete all records of ur ZTABLE matching the primary keys like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE  FROM ZV12_SWEEP  WHERE filed = &amp;lt;wa-field&amp;gt;.
 IF sy-subrc = 0.
    INSERT ZV12_SWEEP FROM TABLE  t_data_new ACCEPTING DUPLICATE KEYS.
        IF sy-subrc EQ 0.
       MESSAGE 'Modified' TYPE 'S'..
  ELSE.
    MESSAGE 'not updated' TYPE 'E'.
  ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REgards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625469#M1281092</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-05-11T12:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625470#M1281093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;  When I am using Modify it only appends last record into ztable  &lt;/P&gt;&lt;P&gt;&amp;gt;  &lt;/P&gt;&lt;P&gt;&amp;gt;   Modify ZV12_SWEEP from t_data_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only get last record appended because your MODIFY statement uses t_data_new as a working area and not as a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To append the content of your internal table, use the FROM TABLE option as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODIFY zv12_sweep FROM TABLE t_data_new.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 13:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625470#M1281093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625471#M1281094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the code in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   modify ztab from wa.&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 13:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625471#M1281094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625472#M1281095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is fixed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apprecaite the help/suggestions! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 07:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625472#M1281095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ztable from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625473#M1281096</link>
      <description>&lt;P&gt;Thank you so much, your code worked fine !!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 10:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-ztable-from-internal-table/m-p/5625473#M1281096</guid>
      <dc:creator>prakriti_sap</dc:creator>
      <dc:date>2023-04-11T10:21:41Z</dc:date>
    </item>
  </channel>
</rss>

