<?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 in user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372564#M1235844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got my own&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 19:39:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T19:39:10Z</dc:date>
    <item>
      <title>Modify in user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372559#M1235839</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 developed the code to update the custom table in user exit, for this i have used MODIFY statement. One of my co-worker is telling that we should not use MODIFY statement in user exits directly since it will trigger the implicit COMMIT WORK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to this COMMIT WORK other previous MODIFY statements also may trigger and try to update the corresponding standard tables too. Is it true?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote INSERT statements in user exits several times, everything is working fine in the production. Alternatively he is suggesting to use the PERFORM statement with 'UPDATE TASK' and in that i can use MODIFY statement. Is it correct ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which approach is correct? and can you please explain what will happen in both cases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;Jaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 02:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372559#M1235839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T02:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify in user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372560#M1235840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When look at the ABAP keyword documentation for MODIFY you can see that your colleague is wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Syntax 
MODIFY target FROM source. 



Effect 
The MODIFY statement inserts one or several lines specified in source
in the database table specified in target, or overwrites existing lines. 



System fields 

The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields. 



sy-subrc Meaning 
0 All lines were inserted or changed. 
4 At least one line could not be processed as there is already a line 
with the same unique name secondary index in the database table. 
 


The MODIFY statement sets sy-dbcnt to the number of processed lines. 



Note 
The changes are finally transferred to the database table 
with the next database commit. Up to that point, they can be reversed with a database rollback. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user-exit (I guess CMOD/SMOD) would be called via RFC then you would get an implicit COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 03:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372560#M1235840</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-30T03:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify in user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372561#M1235841</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;You can use modify statement in user exit to update ur table, and it does triggers implicit commit work you have to write explicitly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can press F1 in modify statement to read more abt this and LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 03:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372561#M1235841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T03:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify in user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372562#M1235842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain me ...when we need to use MODIFY directly &amp;amp; when we need to use PERFORM with UPDATE TASK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 04:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372562#M1235842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T04:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modify in user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372563#M1235843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u are using MODIFY statement it perform both the function insert and update.&lt;/P&gt;&lt;P&gt;e.g. if there exists any value then it will update else it will insert a new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as UPDATE works on the existing value only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Kusum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 14:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372563#M1235843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modify in user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372564#M1235844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got my own&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 19:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-in-user-exit/m-p/5372564#M1235844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T19:39:10Z</dc:date>
    </item>
  </channel>
</rss>

