<?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 SAPSQL_ARRAY_INSERT_DUPREC while using SUSR_USER_BUFFERS_TO_DB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-while-using-susr-user-buffers-to-db/m-p/508077#M17812</link>
    <description>&lt;P&gt;Hi @ all,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have following problem:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have tried to add a specific parameter ID to the existing parameter IDs of an user. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The function SUSR_USER_PARAMETERS_PUT seems to work correctly, but when I try to save the parameters with function SUSR_USER_BUFFERS_TO_DB I receive above mentioned error/dump. Have I forgotten some coding? &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I want to loop through all affected users and add the missing parameter (if neccessary). Maybe this method is not working, but how should I resolve this Problem. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you very much in advance! Kind regards K.Suta&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Please have a look:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; LOOP AT lt_return.&lt;BR /&gt;READ TABLE userp WITH KEY bname = lt_return-partext.&lt;BR /&gt; MOVE 'PER' to lt_return-parid.&lt;BR /&gt; MOVE userp-zpernr to lt_return-parva.&lt;BR /&gt; APPEND lt_return.&lt;BR /&gt; CLEAR lt_return.&lt;BR /&gt; &lt;BR /&gt; CALL FUNCTION 'SUSR_USER_PARAMETERS_PUT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; USER_NAME = userp-bname&lt;BR /&gt; TABLES&lt;BR /&gt; USER_PARAMETERS = lt_return.&lt;BR /&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt; * Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; CALL FUNCTION 'SUSR_USER_BUFFERS_TO_DB'&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt; NO_LOGONDATA_FOR_NEW_USER = 1&lt;BR /&gt; NO_INIT_PASSWORD = 2&lt;BR /&gt; DB_INSERT_USR02_FAILED = 3&lt;BR /&gt; DB_UPDATE_USR02_FAILED = 4&lt;BR /&gt; DB_INSERT_USR01_FAILED = 5&lt;BR /&gt; DB_UPDATE_USR01_FAILED = 6&lt;BR /&gt; DB_INSERT_USR05_FAILED = 7&lt;BR /&gt; DB_UPDATE_USR05_FAILED = 8&lt;BR /&gt; DB_INSERT_USR21_FAILED = 9&lt;BR /&gt; DB_UPDATE_USR21_FAILED = 10&lt;BR /&gt; INTERNAL_ERROR = 11&lt;BR /&gt; OTHERS = 12&lt;BR /&gt; .&lt;BR /&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt; * Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;BR /&gt; CLEAR lt_return.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 11:26:56 GMT</pubDate>
    <dc:creator>k_suta</dc:creator>
    <dc:date>2017-08-21T11:26:56Z</dc:date>
    <item>
      <title>SAPSQL_ARRAY_INSERT_DUPREC while using SUSR_USER_BUFFERS_TO_DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-while-using-susr-user-buffers-to-db/m-p/508077#M17812</link>
      <description>&lt;P&gt;Hi @ all,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have following problem:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have tried to add a specific parameter ID to the existing parameter IDs of an user. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The function SUSR_USER_PARAMETERS_PUT seems to work correctly, but when I try to save the parameters with function SUSR_USER_BUFFERS_TO_DB I receive above mentioned error/dump. Have I forgotten some coding? &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I want to loop through all affected users and add the missing parameter (if neccessary). Maybe this method is not working, but how should I resolve this Problem. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you very much in advance! Kind regards K.Suta&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Please have a look:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; LOOP AT lt_return.&lt;BR /&gt;READ TABLE userp WITH KEY bname = lt_return-partext.&lt;BR /&gt; MOVE 'PER' to lt_return-parid.&lt;BR /&gt; MOVE userp-zpernr to lt_return-parva.&lt;BR /&gt; APPEND lt_return.&lt;BR /&gt; CLEAR lt_return.&lt;BR /&gt; &lt;BR /&gt; CALL FUNCTION 'SUSR_USER_PARAMETERS_PUT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; USER_NAME = userp-bname&lt;BR /&gt; TABLES&lt;BR /&gt; USER_PARAMETERS = lt_return.&lt;BR /&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt; * Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; CALL FUNCTION 'SUSR_USER_BUFFERS_TO_DB'&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt; NO_LOGONDATA_FOR_NEW_USER = 1&lt;BR /&gt; NO_INIT_PASSWORD = 2&lt;BR /&gt; DB_INSERT_USR02_FAILED = 3&lt;BR /&gt; DB_UPDATE_USR02_FAILED = 4&lt;BR /&gt; DB_INSERT_USR01_FAILED = 5&lt;BR /&gt; DB_UPDATE_USR01_FAILED = 6&lt;BR /&gt; DB_INSERT_USR05_FAILED = 7&lt;BR /&gt; DB_UPDATE_USR05_FAILED = 8&lt;BR /&gt; DB_INSERT_USR21_FAILED = 9&lt;BR /&gt; DB_UPDATE_USR21_FAILED = 10&lt;BR /&gt; INTERNAL_ERROR = 11&lt;BR /&gt; OTHERS = 12&lt;BR /&gt; .&lt;BR /&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt; * Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;BR /&gt; CLEAR lt_return.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-while-using-susr-user-buffers-to-db/m-p/508077#M17812</guid>
      <dc:creator>k_suta</dc:creator>
      <dc:date>2017-08-21T11:26:56Z</dc:date>
    </item>
  </channel>
</rss>

