<?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 Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243340#M483904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Modify-&lt;/P&gt;&lt;P&gt;when use this for &amp;lt;b&amp;gt;db table&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;Change a database table &lt;/P&gt;&lt;P&gt;-&amp;gt;Inserts new lines or updates existing lines in a database table .&lt;/P&gt;&lt;P&gt;if we use &amp;lt;b&amp;gt;in internal table&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;Change an internal table &lt;/P&gt;&lt;P&gt;-&amp;gt;Changes an entry in the internal table itab . &lt;/P&gt;&lt;P&gt;if we use in the &amp;lt;b&amp;gt;list:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;Changes the n th line of the list&lt;/P&gt;&lt;P&gt;if we use this along with &amp;lt;b&amp;gt;SCREEN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Change the attributes of a screen field &lt;/P&gt;&lt;P&gt;Changes the attributes belonging to the current screen field whilst processing with LOOP AT SCREEN ... ENDLOOP .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 09:36:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T09:36:25Z</dc:date>
    <item>
      <title>MODIFY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243338#M483902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the MODIFY operation do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 09:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243338#M483902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243339#M483903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLS check SAP HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY dbtab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;MODIFY target FROM source. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 All lines were inserted or changed. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets sy-dbcnt to the number of processed lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets a database lock until the next database commit or database rollback; incorrect usage can result in a deadlock kommen kann. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of rows that can be inserted into or changed in the tables of a database within a database LUW is restricted database-specifically by the fact that a database system can only manage a limited amount of locks and data in the rollback area. &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;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 09:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243339#M483903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T09:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243340#M483904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Modify-&lt;/P&gt;&lt;P&gt;when use this for &amp;lt;b&amp;gt;db table&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;Change a database table &lt;/P&gt;&lt;P&gt;-&amp;gt;Inserts new lines or updates existing lines in a database table .&lt;/P&gt;&lt;P&gt;if we use &amp;lt;b&amp;gt;in internal table&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;Change an internal table &lt;/P&gt;&lt;P&gt;-&amp;gt;Changes an entry in the internal table itab . &lt;/P&gt;&lt;P&gt;if we use in the &amp;lt;b&amp;gt;list:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;Changes the n th line of the list&lt;/P&gt;&lt;P&gt;if we use this along with &amp;lt;b&amp;gt;SCREEN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Change the attributes of a screen field &lt;/P&gt;&lt;P&gt;Changes the attributes belonging to the current screen field whilst processing with LOOP AT SCREEN ... ENDLOOP .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 09:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243340#M483904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243341#M483905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi krishna ,&lt;/P&gt;&lt;P&gt;you are asking about modify,&lt;/P&gt;&lt;P&gt;in SAP there a lot of thing u can do with this operation : here are some example of them :&lt;/P&gt;&lt;P&gt;A.  &amp;lt;b&amp;gt;MODIFY&amp;lt;/b&amp;gt; =&amp;gt; using to inserts new lines or updates existing lines in a database table OR INTERNAL TABLE. with modify you can perform as INSERT command if the If a line with the specified primary key have not exists , and if the primary key already exist that command will perform as UPDATE command.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Below is the syntax example&amp;lt;/u&amp;gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MODIFY dbtab. or&lt;/P&gt;&lt;P&gt;MODIFY *dbtab. or&lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) ... . .&lt;/P&gt;&lt;P&gt;2. MODIFY dbtab FROM TABLE itab. or&lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;3. MODIFY dbtab VERSION vers. or&lt;/P&gt;&lt;P&gt;MODIFY *dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;4.MODIFY dbtab FROM TABLE itab. or&lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. &amp;lt;b&amp;gt;MODIFY&amp;lt;/b&amp;gt; =&amp;gt; USING ON SCREEN COMMAND=&amp;gt;Modifying Input Fields&lt;/P&gt;&lt;P&gt;To modify the appearance of an input field on the selection screen, you must assign the parameter to a modification group as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p ...... MODIF ID key ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of modification group key should be a three-character variable name without quotation marks. The MODIF ID addition always assigns key to the screen-group1 column of internal table screen. Parameters assigned to a modification group can be processed as an entire group with the LOOP AT SCREEN and MODIFY SCREEN statements during the AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax example :&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_param_modif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: test1(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test2(10) TYPE c MODIF ID sc2,&lt;/P&gt;&lt;P&gt;            test3(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test4(10) TYPE c MODIF ID sc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC1'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '1'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC2'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '0'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 10:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243341#M483905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243342#M483906</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;To be in Simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify on database/ internal  table:&lt;/P&gt;&lt;P&gt;- will insert a new record , if record doesnt exist with that primary key.&lt;/P&gt;&lt;P&gt; -will update the existing record , if record already exist  with that primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if any issues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243342#M483906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243343#M483907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna Latha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MODIFY Statement can modify the internal table, may be Screen or any other table, By using MODIFY Statement u can modify data in  the internal table&lt;/P&gt;&lt;P&gt;and also u can modify how many fields u want Using modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;jogu_vinesh@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 05:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2243343#M483907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T05:02:09Z</dc:date>
    </item>
  </channel>
</rss>

