<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489931#M228108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP runtime errors    SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;       Occurred on     08/25/2006 at 15:05:13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP/4 program "ZMDR2090 " had to be terminated because&lt;/P&gt;&lt;P&gt;one of the statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably due to an error in the ABAP/4 program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2006 23:21:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-25T23:21:18Z</dc:date>
    <item>
      <title>MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489924#M228101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small issue with MODIFY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is the table structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZZB_MANDT            MANDT            CLNT      3            Client&lt;/P&gt;&lt;P&gt;ZZB_KUNNR            KUNNR            CHAR     10            Customer number&lt;/P&gt;&lt;P&gt;ZZB_KTOKD            ZB_KTOKD         CHAR      4            BEST Customer Account Group&lt;/P&gt;&lt;P&gt;ZZB_VKORG            VKORG            CHAR      4            Sales organization&lt;/P&gt;&lt;P&gt;ZZB_VTWEG            VTWEG            CHAR      2            Distribution channel&lt;/P&gt;&lt;P&gt;ZZB_PARVW            PARVW            CHAR      2            Partner function ID (e.g. SH f&lt;/P&gt;&lt;P&gt;ZZG_PARTN            ZG_KUNNR         CHAR     10            GLOBE Customer Number&lt;/P&gt;&lt;P&gt;ZZB_PARTN            ZB_KUNNR         CHAR     10            BEST Customer Number&lt;/P&gt;&lt;P&gt;ZZG_KUNNR            ZG_KUNNR         CHAR     10            GLOBE Customer Number&lt;/P&gt;&lt;P&gt;ZZG_KTOKD                             CHAR      4            GLOBE Account Group&lt;/P&gt;&lt;P&gt;ZZG_VKORG                             CHAR      4            GLOBE Sales Organization&lt;/P&gt;&lt;P&gt;ZZG_VTWEG                             CHAR      2            GLOBE Distribution Channel&lt;/P&gt;&lt;P&gt;ZZG_PARVW            PARVW            CHAR      2            Partner function ID (e.g. SH f&lt;/P&gt;&lt;P&gt;ZZB_KNFLG                             CHAR      1            KNVP Flag&lt;/P&gt;&lt;P&gt;ZZB_TELX1            TELX1            CHAR     30            Telex number&lt;/P&gt;&lt;P&gt;ZZB_LSTCHGDT         ZLSTCHG          DATS      8            Date last changed&lt;/P&gt;&lt;P&gt;ZZB_LSTCHGTM         AEZET            TIMS      6            Time last change was made&lt;/P&gt;&lt;P&gt;ZZB_CHGBY            ZCHGBY           CHAR     12            Created / Changed By&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to insert some records in to the above database by using the modify statement as below:&lt;/P&gt;&lt;P&gt;  modify zg_patnr_tab from table a00_mandt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following is the data:&lt;/P&gt;&lt;P&gt; 0204062407|0001     |NUSA     |00       |RE       |0000944819|0300000019  |&lt;/P&gt;&lt;P&gt;0204062407|0001     |NUSA     |00       |RE       |0000944819|0300000401  |&lt;/P&gt;&lt;P&gt;0204062407|0001     |NUSA     |00       |RE       |0000944819|0312345940  |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the above statement is executed it inserts only one record into the database rather than inserting all the three records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using INSERT statement.. its giving me short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want all the three records to get inserted into the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me on the above issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 22:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489924#M228101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T22:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489925#M228102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZZB_MANDT MANDT CLNT 3 Client&lt;/P&gt;&lt;P&gt;ZZB_KUNNR KUNNR CHAR 10 Customer number&lt;/P&gt;&lt;P&gt;ZZB_KTOKD ZB_KTOKD CHAR 4 BEST Customer Account Group&lt;/P&gt;&lt;P&gt;ZZB_VKORG VKORG CHAR 4 Sales organization&lt;/P&gt;&lt;P&gt;ZZB_VTWEG VTWEG CHAR 2 Distribution channel&lt;/P&gt;&lt;P&gt;ZZB_PARVW PARVW CHAR 2 Partner function ID (e.g. SH f&lt;/P&gt;&lt;P&gt;ZZG_PARTN ZG_KUNNR CHAR 10 GLOBE Customer Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are the key fields in the above database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 22:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489925#M228102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T22:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489926#M228103</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;  Make sure all the key fields are filled in the internal table including MANDT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  And also check if the other 2 records are already available in the table..As modify will update if the record is already in the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Narendran Muthukumaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489926#M228103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489927#M228104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wat is happening is its inserting the first record into the table and its modifying the same statement twice, rather than inserting all the three records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because i am using the MODIFY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489927#M228104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489928#M228105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes..MODIFY will update if the record is already there in the table with the key combinations..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise it will insert..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Narendran Muthukumaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489928#M228105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489929#M228106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i use INSERT then i am getting a short dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489929#M228106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489930#M228107</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; Please send the short dump description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489930#M228107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489931#M228108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP runtime errors    SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;       Occurred on     08/25/2006 at 15:05:13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP/4 program "ZMDR2090 " had to be terminated because&lt;/P&gt;&lt;P&gt;one of the statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably due to an error in the ABAP/4 program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489931#M228108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489932#M228109</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;  The reason is you try to INSERT the records which are already there in the database table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you use ACCEPTING DUPLICATES then it will ignore the records that are already there.And I believe the sy-subrc will be set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Narendran Muthukumaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489932#M228109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489933#M228110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Yes it is because of Modify statement only....&lt;/P&gt;&lt;P&gt;modify will either insert or update depending on the key fields...&lt;/P&gt;&lt;P&gt;here in your case all the 3 records are having same key so first time it will insert the record and next two times it updates the same record in the table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert will give short dump for the 2nd and 3rd records as you are trying to insert a record which is having same key combination as your first record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want add all the 3 records to the table then make the next field also as key...this will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489933#M228110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489934#M228111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that means add ZZB_PARTN ZB_KUNNR  as key field in your table....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489934#M228111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489935#M228112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the problem on my own.. i made the field ZZB_PARTN Key Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it is working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You For your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 23:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489935#M228112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T23:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489936#M228113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh Babu &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;please remember to award points for helpful answers and mark your post as solved when solved completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 01:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/1489936#M228113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-26T01:10:17Z</dc:date>
    </item>
  </channel>
</rss>

