<?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 Statement not making new entry in Custom Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409174#M1736641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT i_tab.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tab-field = false.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY i_tab.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since you are modifying within the loop you dont need any addition to the modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it were from outside the loop (for some reason) then you need to pass either the index of the record to be updated or the keys to the record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 06:45:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-17T06:45:11Z</dc:date>
    <item>
      <title>Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409163#M1736630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am getting problem with modify statement, i am modifying the table from internal table ,as i am changing the value of primary key field and keeping all fields of work area as it is so the modify statement not making new entry in Custom table created in data dictionary.&lt;/P&gt;&lt;P&gt;i am pasting my Code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_final type table of zschd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_final type zschd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd type schd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*it_final contains 4 records so i am changing s_date field which is primary key by t_date&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOOP AT it_final INTO wa_final'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-mandt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-mandt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-s_date&amp;nbsp; = t_date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-gewrk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_final-gewrk..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-appt&amp;nbsp;&amp;nbsp; = wa_final-appt.&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_date = t_date + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND wa_schd TO it_mod.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY&amp;nbsp; zschd FROM TABLE it_mod .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But after executing this statement sy-subrc becoming 4 and new record is not going to be created,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i am not understanding what is the problem. Please provide solutions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Shahezad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 10:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409163#M1736630</guid>
      <dc:creator>former_member214915</dc:creator>
      <dc:date>2013-04-16T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409164#M1736631</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;What is the initial value of field t_date? I hope the table ZSCHD is having one key field which is S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purpose, put a break point on MODIFY statement and check the value of the internal table it_mod and the database table ZSCHD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;~Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 11:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409164#M1736631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-16T11:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409165#M1736632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give complete code so we can check and also send table ( &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;zschd&lt;/SPAN&gt; )screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 11:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409165#M1736632</guid>
      <dc:creator>bharat_rathod2</dc:creator>
      <dc:date>2013-04-16T11:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409166#M1736633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure you don't have doubled entries in your internal table it_mod (you can use SORT/DELETE ADJACENT DUPLICATES for this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 18:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409166#M1736633</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-04-16T18:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409167#M1736634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP documentation is speaking of SY-SUBRC = 4 in case a unique secondary key would be violated by the MODIFY operation. Is there a unique secondary index for table ZSCHD?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 18:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409167#M1736634</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2013-04-16T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409168#M1736635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 03:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409168#M1736635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T03:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409169#M1736636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Shahezad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable the structure of &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;it_mod. Do the following as mention below :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;1. Define it with same structure as &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; zschd&lt;/SPAN&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;2. clear all work area after append structure. (Clear: &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;wa_schd&lt;/SPAN&gt;, &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;wa_final&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;3. &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;t_date&lt;/SPAN&gt; is a screen field or default sate ? &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;t_date&lt;/SPAN&gt; data element should same as &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; zschd&lt;/SPAN&gt;-&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;s_date&lt;/SPAN&gt;. (Hope it has been define with type as dats in domain and not char type )&amp;nbsp; .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;4. Use function module to add days to date.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Rahul Singh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 04:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409169#M1736636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T04:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409170#M1736637</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;Here you have mentioned the type of&amp;nbsp; wa_schd as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; wa_schd type schd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No proper information on it_mod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_schd TO it_mod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i understood that you were trying to modify zschd from it_mod which is of different type&lt;/P&gt;&lt;P&gt;with different key field combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY&amp;nbsp; zschd FROM TABLE it_mod .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 04:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409170#M1736637</guid>
      <dc:creator>prakashjasti</dc:creator>
      <dc:date>2013-04-17T04:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409171#M1736638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 04:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409171#M1736638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T04:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409172#M1736639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear muhammad,&lt;/P&gt;&lt;P&gt;Please remove TABLE from your modify statement and check&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY&amp;nbsp; zschd FROM it_mod .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;in place of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY&amp;nbsp; zschd FROM TABLE it_mod .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;with regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vikas pandey&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 06:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409172#M1736639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T06:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409173#M1736640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;Hi Muhammad.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;please try :&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt; LOOP AT it_final INTO wa_final'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-mandt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-mandt.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-s_date&amp;nbsp; = t_date.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-gewrk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_final-gewrk..&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-appt&amp;nbsp;&amp;nbsp; = wa_final-appt.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_date = t_date + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND wa_schd TO it_mod.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;MODIFY&amp;nbsp; zschd From wa_schd tranporting t_date .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt; close the thread if issue is resolved.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vaibhav&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 06:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409173#M1736640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T06:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409174#M1736641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT i_tab.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tab-field = false.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY i_tab.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since you are modifying within the loop you dont need any addition to the modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it were from outside the loop (for some reason) then you need to pass either the index of the record to be updated or the keys to the record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 06:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409174#M1736641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T06:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409175#M1736642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He is updating the DB Table through internal table, That why he is using "TABLE" Statement . What you have suggested id to modify work area.&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;Rahul Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 09:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409175#M1736642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T09:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409176#M1736643</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;The code you mention is to update internal table and he need to update the DB table.&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;Rahul Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 09:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409176#M1736643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-17T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409177#M1736644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can not use MODIFY TABLE to change any existing primary key. In your case I expect the new records (changed primary key) to be inserted, the existing records to remain there. This is a relational database concept: Primary key is always unique and never changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct way is to first INSERT all records with primary key not existing yet and then delete all records with primary key not wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, by the way, CLIENT = SY-MANDT is totally useless if the table is client-dependant (First key field is CLIENT(data type CLNT). The database interface will always supply CLIENT = SY-MANDT for all database operations unless addition CLIENT SPECIFIED is given for SELECT/UPDATE/INSERT/MODYFY statement.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 12:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409177#M1736644</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2013-04-17T12:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409178#M1736645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks to all , i have solved my problem,actually in custom table to which i am updating or modifying ,actually there is one field in custom table which is unique other than primary key&lt;/P&gt;&lt;P&gt;that field value say for e.g. 32 chars long which i have generated automatically for each record in table,so when i am updating custom table from internal table i again need to generate unique value for that field in my program so than that record gets update or modified and sy-subrc becomes 0 after executing modify statement.&lt;/P&gt;&lt;P&gt;so the problem was the field value and &lt;SPAN style="font-size: 10pt;"&gt;uniqueness.&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: arial, sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; LOOP AT it_final INTO wa_final'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-mandt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-mandt.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-s_date&amp;nbsp; = t_date.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-gewrk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_final-gewrk..&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_schd-appt&amp;nbsp;&amp;nbsp; = wa_final-appt. "This field has unique value which i have genrated by calling method&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_date = t_date + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND wa_schd TO it_mod.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY&amp;nbsp; zschd FROM TABLE it_mod .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2013 13:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409178#M1736645</guid>
      <dc:creator>former_member214915</dc:creator>
      <dc:date>2013-05-11T13:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement not making new entry in Custom Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409179#M1736646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So by studying ABAP online help you would have solved this much sooner, see my earlier reply. Please consider this for next time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2013 19:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-not-making-new-entry-in-custom-table/m-p/9409179#M1736646</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2013-05-12T19:08:40Z</dc:date>
    </item>
  </channel>
</rss>

