<?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: logic needed pls help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443712#M827037</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 dont want to update the table one by one.&lt;/P&gt;&lt;P&gt;for example my file having  100,000 records means it ll affect performance. first i need to update structure. then i need to update data base table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 08:52:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T08:52:07Z</dc:date>
    <item>
      <title>logic needed pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443710#M827035</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 need to update and  the data base table using fiel symbol and i need to count the records&lt;/P&gt;&lt;P&gt;following is the code. pls hepl me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FIELD-SYMBOLS : &amp;lt;fs_op&amp;gt; TYPE zfifn_op .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM zfifn_op INTO TABLE zfifn_op_upd&lt;/P&gt;&lt;P&gt;                    WHERE opbel = itab_custom-opbel&lt;/P&gt;&lt;P&gt;                    AND   bukrs = itab_custom-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SORT zfifn_op_upd BY opbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT zfifn_op_upd ASSIGNING &amp;lt;fs_op&amp;gt;.&lt;/P&gt;&lt;P&gt;      READ TABLE itab_custom WITH KEY opbel = &amp;lt;fs_op&amp;gt;-opbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        &amp;lt;fs_op&amp;gt;-opbel = itab_custom-opbel.&lt;/P&gt;&lt;P&gt;&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;    UPDATE zfifn_op&lt;/P&gt;&lt;P&gt;            FROM TABLE zfifn_op_upd.&lt;/P&gt;&lt;P&gt;    COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be reward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443710#M827035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443711#M827036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while LOOPing the internal table you don't write back the changed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA : lv_tabix TYPE sy-tabix.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT zfifn_op_upd ASSIGNING &amp;lt;fs_op&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lv_tabix = sy-tabix.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab_custom WITH KEY opbel = &amp;lt;fs_op&amp;gt;-opbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;lt;fs_op&amp;gt;-opbel = itab_custom-opbel.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY TABLE zfifn_op_upd FROM &amp;lt;fs_op&amp;gt; INDEX lv_tabix.&lt;/STRONG&gt;&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;New lines are in bold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443711#M827036</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-19T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443712#M827037</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 dont want to update the table one by one.&lt;/P&gt;&lt;P&gt;for example my file having  100,000 records means it ll affect performance. first i need to update structure. then i need to update data base table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443712#M827037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T08:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443713#M827038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi please see this sample code, might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For selecting data using field symbol.&lt;/P&gt;&lt;P&gt;  SELECT * FROM&lt;/P&gt;&lt;P&gt;              &amp;lt;db table name&amp;gt;  INTO TABLE &amp;lt;fs_itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Modify database table using field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY &amp;lt;db table name&amp;gt; FROM TABLE &amp;lt;fs_itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &amp;lt;fs_itab&amp;gt; is a field symbol of type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please get back if you need some more info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443713#M827038</guid>
      <dc:creator>former_member416498</dc:creator>
      <dc:date>2008-02-19T08:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443714#M827039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the changes I suggested only updates the internal table, other part of the source code has to remain the same (I just did not include them), only the LOOP is changed. this means the DB update will be in one go, like before. Pls. give it a try!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443714#M827039</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-19T08:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed pls help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443715#M827040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code looks absolutely correct. I tried following code bundle and it is working.&lt;/P&gt;&lt;P&gt;data: zfifn_op_upd like ztest125 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;fs_op&amp;gt; TYPE ztest125 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ztest125 INTO TABLE zfifn_op_upd&lt;/P&gt;&lt;P&gt;WHERE matnr = '22510G'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT zfifn_op_upd BY matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT zfifn_op_upd ASSIGNING &amp;lt;fs_op&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;fs_op&amp;gt;-mtart = 'HM01'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ztest125&lt;/P&gt;&lt;P&gt;FROM TABLE zfifn_op_upd.&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Atanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-pls-help/m-p/3443715#M827040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:14:36Z</dc:date>
    </item>
  </channel>
</rss>

