<?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: Re:ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-abap/m-p/2851433#M668196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel you need to add new entry to table ZSDSHR14_LOG with modification details as well as old and new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now after SELECT, when you compare old and new values, if any of the value is changed, you need to populate all entries for ZSDSHR14_LOG record which will be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to modify existing record of the table ZSDSHR14_LOG with new values, you need to use MODIFY instead of INSERT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2007 00:58:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-24T00:58:10Z</dc:date>
    <item>
      <title>Re:ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-abap/m-p/2851432#M668195</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;&lt;/P&gt;&lt;P&gt;I have created one log table , my requirement is  when i modify some fields say four fields the old values and new values should store in the fields of the logtable, how to do this, iam changing my value in the table control and clicking modify button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'MODIFY'.&lt;/P&gt;&lt;P&gt;      REFRESH I_ZSDSHR14.&lt;/P&gt;&lt;P&gt;      CLEAR OKCODE.&lt;/P&gt;&lt;P&gt;      LOOP AT T_ZSDSHR14.&lt;/P&gt;&lt;P&gt;       CLEAR ZSDSHR14.&lt;/P&gt;&lt;P&gt;     SELECT SINGLE * FROM ZSDSHR14 WHERE ZCCODE = T_ZSDSHR14-ZCCODE AND&lt;/P&gt;&lt;P&gt;                        ZSOLD = T_ZSDSHR14-ZSOLD  AND&lt;/P&gt;&lt;P&gt;                        ZPACKLISTFLAG   = T_ZSDSHR14-ZPACKLISTFLAG AND&lt;/P&gt;&lt;P&gt;                        ZPROFORMADOFLAG = T_ZSDSHR14-ZPROFORMADOFLAG AND&lt;/P&gt;&lt;P&gt;                        ZSHIPALERTFLAG = T_ZSDSHR14-ZSHIPALERTFLAG AND&lt;/P&gt;&lt;P&gt;                        ZEMAILFORMAT = T_ZSDSHR14-ZEMAILFORMAT.&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 ZSDSHR14-ZPACKLISTFLAG &amp;lt;&amp;gt; T_ZSDSHR14-ZPACKLISTFLAG OR&lt;/P&gt;&lt;P&gt;       ZSDSHR14-ZPROFORMADOFLAG &amp;lt;&amp;gt; T_ZSDSHR14-ZPROFORMADOFLAG OR&lt;/P&gt;&lt;P&gt;           ZSDSHR14-ZSHIPALERTFLAG &amp;lt;&amp;gt; T_ZSDSHR14-ZSHIPALERTFLAG OR&lt;/P&gt;&lt;P&gt;           ZSDSHR14-ZEMAILFORMAT &amp;lt;&amp;gt; T_ZSDSHR14-ZEMAILFORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         T_ZSDSHR14-ZUPDATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;         T_ZSDSHR14-ZUPDTIME = SY-UZEIT.&lt;/P&gt;&lt;P&gt;         T_ZSDSHR14-ZUPDATEBY = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ZSDSHR14_LOG-Z_ACTION = 'MODIFIED '. -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; inserting into log table&lt;/P&gt;&lt;P&gt;           ZSDSHR14_LOG-ZUSER = SY-UNAME.&lt;/P&gt;&lt;P&gt;           ZSDSHR14_LOG-ZUZEIT = SY-UZEIT.&lt;/P&gt;&lt;P&gt;           ZSDSHR14_LOG-ZDATUM = SY-DATUM.&lt;/P&gt;&lt;P&gt;           INSERT ZSDSHR14_LOG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 00:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-abap/m-p/2851432#M668195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T00:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re:ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-abap/m-p/2851433#M668196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel you need to add new entry to table ZSDSHR14_LOG with modification details as well as old and new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now after SELECT, when you compare old and new values, if any of the value is changed, you need to populate all entries for ZSDSHR14_LOG record which will be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to modify existing record of the table ZSDSHR14_LOG with new values, you need to use MODIFY instead of INSERT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 00:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-abap/m-p/2851433#M668196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T00:58:10Z</dc:date>
    </item>
  </channel>
</rss>

