<?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: Transaction Code F.50 Runtime Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840472#M1317882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the issue is closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 07:46:16 GMT</pubDate>
    <dc:creator>sridhar_muthekepalli3</dc:creator>
    <dc:date>2009-07-27T07:46:16Z</dc:date>
    <item>
      <title>Transaction Code F.50 Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840470#M1317880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing T.code F.50, I am getting the following Error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC                                                  &lt;/P&gt;&lt;P&gt;Exceptn                CX_SY_OPEN_SQL_DB                                                           &lt;/P&gt;&lt;P&gt;Date and Time          25.06.2009 11:27:31                                                                                &lt;/P&gt;&lt;P&gt;ShrtText                                                                                &lt;/P&gt;&lt;P&gt;The ABAP/4 Open SQL array insert results in duplicate database records.                                                                                &lt;/P&gt;&lt;P&gt;What happened?                                                                                &lt;/P&gt;&lt;P&gt;Error in ABAP application program.                                                                                &lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLF049" had to be terminated because one of the                   &lt;/P&gt;&lt;P&gt;     statements could not be executed.                                                                                &lt;/P&gt;&lt;P&gt;This is probably due to an error in the ABAP program.                                                                                &lt;/P&gt;&lt;P&gt;Error analysis                                                                                &lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below                      &lt;/P&gt;&lt;P&gt;     . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was                      &lt;/P&gt;&lt;P&gt;      neither                                                                                &lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure                              &lt;/P&gt;&lt;P&gt;      "SICHERN_IN_DB" "(FORM)"                                                                     &lt;/P&gt;&lt;P&gt;     .                                                                                &lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception                      &lt;/P&gt;&lt;P&gt;      to occur, the running program was terminated.                                                &lt;/P&gt;&lt;P&gt;     The reason for the exception is:                                                              &lt;/P&gt;&lt;P&gt;     If you use an ABAP/4 Open SQL array insert to insert a record in                              &lt;/P&gt;&lt;P&gt;     the database and that record already exists with the same key,                                &lt;/P&gt;&lt;P&gt;     this results in a termination.             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      (With an ABAP/4 Open SQL single record insert in the same error       &lt;/P&gt;&lt;P&gt; situation, processing does not terminate, but SY-SUBRC is set to 4.)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Program                                 SAPLF049                                                &lt;/P&gt;&lt;P&gt; Include                                 LF049F00                                                &lt;/P&gt;&lt;P&gt; Row                                     74                                                      &lt;/P&gt;&lt;P&gt; Module type                             (FORM)                                                  &lt;/P&gt;&lt;P&gt; Module Name                             SICHERN_IN_DB                                                                                &lt;/P&gt;&lt;P&gt;gger Location of Exception                                                                       &lt;/P&gt;&lt;P&gt; Program                                 SAPLF049                                                &lt;/P&gt;&lt;P&gt; Include                                 LF049F00                                                &lt;/P&gt;&lt;P&gt; Row                                     86                                                      &lt;/P&gt;&lt;P&gt; Module type                             (FORM)                                                  &lt;/P&gt;&lt;P&gt; Module Name                             SICHERN_IN_DB                                                                                &lt;/P&gt;&lt;P&gt;rce Code Extract                                                                                &lt;/P&gt;&lt;P&gt;e  SourceCde                                                                                &lt;/P&gt;&lt;P&gt;56 *      Insert von RF048 aus CRF048 (bei Commit Work)                   *                      &lt;/P&gt;&lt;P&gt;57 *----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;58 FORM RELATION_SAVE.                                                                           &lt;/P&gt;&lt;P&gt;59                                                                                &lt;/P&gt;&lt;P&gt;60   CHECK NOT CRF048[] IS INITIAL.                                                              &lt;/P&gt;&lt;P&gt;61   INSERT RF048 FROM TABLE CRF048.                                                             &lt;/P&gt;&lt;P&gt;62   REFRESH CRF048.                                                                             &lt;/P&gt;&lt;P&gt;63                                                                                &lt;/P&gt;&lt;P&gt;64 ENDFORM.                    "RELATION_SAVE                                                 &lt;/P&gt;&lt;P&gt; 65                                                                                &lt;/P&gt;&lt;P&gt;66                                                                                &lt;/P&gt;&lt;P&gt;67                                                                                &lt;/P&gt;&lt;P&gt;68 *eject                                                                                &lt;/P&gt;&lt;P&gt;69 *----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; 70 *      Form  SICHERN_IN_DB                                             *                   &lt;/P&gt;&lt;P&gt; 71 *----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; 72 *      Masseninsert/update aus Z-Tabellen                              *                   &lt;/P&gt;&lt;P&gt; 73 *----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; 74 FORM SICHERN_IN_DB.                                                                        &lt;/P&gt;&lt;P&gt; 75                                                                                &lt;/P&gt;&lt;P&gt;76 * Lokale Daten                                                                             &lt;/P&gt;&lt;P&gt; 77 DATA:                                                                                &lt;/P&gt;&lt;P&gt;78       ld_xnetb   TYPE xnetb,                                                               &lt;/P&gt;&lt;P&gt; 79       anz_belnr  TYPE i.                                                                   &lt;/P&gt;&lt;P&gt; 80                                                                                &lt;/P&gt;&lt;P&gt;81 *------ Aufteilungstabellen -&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; 82                                                                                &lt;/P&gt;&lt;P&gt;83 * Einfügen                                                             *                   &lt;/P&gt;&lt;P&gt; 84                                                                                &lt;/P&gt;&lt;P&gt;85 * BFIT_A0                                                                                &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;   INSERT BFIT_A0 FROM TABLE ZBFIT_A0.                                                      &lt;/P&gt;&lt;P&gt; 87   IF SY-SUBRC &amp;lt;&amp;gt; 0.                                                                        &lt;/P&gt;&lt;P&gt; 88     MESSAGE A153.                                                                          &lt;/P&gt;&lt;P&gt; 89   ENDIF.                                                                                &lt;/P&gt;&lt;P&gt;90                                                                                &lt;/P&gt;&lt;P&gt;91 * BFIT_A                                                                                &lt;/P&gt;&lt;P&gt;92   INSERT BFIT_A FROM TABLE ZBFIT_A.                                                        &lt;/P&gt;&lt;P&gt; 93   IF SY-SUBRC &amp;lt;&amp;gt; 0.                                                                        &lt;/P&gt;&lt;P&gt; 94     MESSAGE A154.                                                                          &lt;/P&gt;&lt;P&gt;95   ENDIF.                                                                                &lt;/P&gt;&lt;P&gt;96                                                                                &lt;/P&gt;&lt;P&gt;97 * BFOD_A                                                                                &lt;/P&gt;&lt;P&gt;98   INSERT BFOD_A FROM TABLE ZBFOD_A.                                                      &lt;/P&gt;&lt;P&gt;99   IF SY-SUBRC &amp;lt;&amp;gt; 0.                                                                      &lt;/P&gt;&lt;P&gt;100     MESSAGE A155.                                                                        &lt;/P&gt;&lt;P&gt;101   ENDIF.                                                                                &lt;/P&gt;&lt;P&gt;102                                                                                &lt;/P&gt;&lt;P&gt;103 * BFOD_AB                                                                                &lt;/P&gt;&lt;P&gt;104   INSERT BFOD_AB FROM TABLE ZBFOD_AB.                                                    &lt;/P&gt;&lt;P&gt;105   IF SY-SUBRC &amp;lt;&amp;gt; 0.                                                                                &lt;/P&gt;&lt;P&gt;How to reslove the error? Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 06:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840470#M1317880</guid>
      <dc:creator>sridhar_muthekepalli3</dc:creator>
      <dc:date>2009-06-25T06:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Code F.50 Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840471#M1317881</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;Well it looks quite difficult to understand.......The only thing it says clearly that this is happening because of duplicate Primary Key insertion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 06:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840471#M1317881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T06:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Code F.50 Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840472#M1317882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the issue is closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 07:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-f-50-runtime-error/m-p/5840472#M1317882</guid>
      <dc:creator>sridhar_muthekepalli3</dc:creator>
      <dc:date>2009-07-27T07:46:16Z</dc:date>
    </item>
  </channel>
</rss>

