<?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 Error in multiple operation with change document object for custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805289#M1468084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a change document object for a custom table ZTEST and developed a report program for insertion, updation &amp;amp; deletion..everything works fine if I do only once ie. if I created only 1 entries. If I created 2 new entries , I am getting an Error "DUPREC:POS&amp;amp;Z3RL_TAB&amp;amp;Z3RL_TAB" and EXIT the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why I am getting this error??? is it not possible to do multiple operation with the change document???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JaiKarthik on Apr 7, 2010 6:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 04:19:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-07T04:19:46Z</dc:date>
    <item>
      <title>Error in multiple operation with change document object for custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805289#M1468084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a change document object for a custom table ZTEST and developed a report program for insertion, updation &amp;amp; deletion..everything works fine if I do only once ie. if I created only 1 entries. If I created 2 new entries , I am getting an Error "DUPREC:POS&amp;amp;Z3RL_TAB&amp;amp;Z3RL_TAB" and EXIT the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why I am getting this error??? is it not possible to do multiple operation with the change document???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JaiKarthik on Apr 7, 2010 6:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 04:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805289#M1468084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T04:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in multiple operation with change document object for custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805290#M1468085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probable reason will be in the CHANGE&lt;STRONG&gt;DOCUMENT&lt;/STRONG&gt;UPDATE* function module there will be any duplicate entries while passing values to this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 04:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805290#M1468085</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-04-07T04:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in multiple operation with change document object for custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805291#M1468086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
   LOOP AT ts_mod INTO wa_mod.
            READ TABLE &amp;lt;i_itab&amp;gt; INTO &amp;lt;wa_tab&amp;gt; INDEX wa_mod-row.

* Select the existing entries in table Z3RL for change history
                SELECT SINGLE * FROM z3rl
                       INTO wa_z3rl
                       WHERE vkorg   = &amp;lt;wa_tab&amp;gt;+3(4)
                       AND   zzkunnr = &amp;lt;wa_tab&amp;gt;+7(10).
* Move the old entries
                IF sy-subrc = 0.
                  CLEAR ls_z3rl.
                  ls_z3rl = wa_z3rl.
                ENDIF.

* Update the table
             MODIFY (viewname) FROM &amp;lt;wa_tab&amp;gt;.

               CLEAR wa_z3rl.
                wa_z3rl-mandt      = &amp;lt;wa_tab&amp;gt;+0(3).
                wa_z3rl-vkorg      = &amp;lt;wa_tab&amp;gt;+3(4).
                wa_z3rl-zzkunnr    = &amp;lt;wa_tab&amp;gt;+7(10).

* Populate change tables
                CLEAR wa_change.
                wa_change-teilobjid = 'Z3RL'.
                wa_change-textart = 'TEST_2'.
                wa_change-textspr = 'EN'.
                wa_change-updkz = 'U'.
                APPEND wa_change TO ts_change.

*call the fM to log the values in CDHDR table.
                CALL FUNCTION 'Z3RL_WRITE_DOCUMENT'
                  EXPORTING
                    objectid                 = 'Z3RL'
                    tcode                    = sy-tcode
                    utime                    = sy-uzeit
                    udate                    = sy-datum
                    username                 = sy-uname
                    planned_change_number    = ' '
                    object_change_indicator  = 'U'
                    planned_or_real_changes  = 'U'
                    no_change_pointers       = 'U'
                    upd_icdtxt_z3rl= 'U'
                    n_z3rl= wa_z3rl
                    o_z3rl        = ls_z3rl
                    upd_z3rl= 'U'
                    lv_opt                   = ' '
                  TABLES
                    icdtxt_z3rl= ts_change.


            CLEAR : wa_mod, &amp;lt;wa_tab&amp;gt;.
          ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JaiKarthik on Apr 7, 2010 6:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 04:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805291#M1468086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T04:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error in multiple operation with change document object for custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805292#M1468087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-multiple-operation-with-change-document-object-for-custom-table/m-p/6805292#M1468087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T05:26:13Z</dc:date>
    </item>
  </channel>
</rss>

