<?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: Insert directly into the database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676937#M1766738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short Dump... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1735/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 12:06:46 GMT</pubDate>
    <dc:creator>arindam_m</dc:creator>
    <dc:date>2013-09-11T12:06:46Z</dc:date>
    <item>
      <title>Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676936#M1766737</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;I know that the INSERT statement allows me to enter the record directly in the database table without checking the foreign key &lt;/P&gt;&lt;P&gt;restrictions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what happens when the table entries are sent to the database system as the database(oracle) will not allow records without the foreign key check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676936#M1766737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676937#M1766738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short Dump... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1735/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676937#M1766738</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-09-11T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676938#M1766739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the error you are facing and what you want to implement..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676938#M1766739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676939#M1766740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP's OPEN SQL takes care of the interaction with the database and in case of any errors sets value of SY-SUBRC to 4. So by checking the value of SY-SUBRC you can know if the record got inserted successfully or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676939#M1766740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676940#M1766741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The foreign key check are not actually created as constraints in the database when SAP ddic generate the tables/views, they are only checked programmatically in SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So nothing should happened, provided you did not create such constraints in native SQL or directly in the database, in this caise an error will be raised, and if you don't catch it, dump will be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676940#M1766741</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-09-11T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676941#M1766742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please read SAP Help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives detailed info as to what will happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_470/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm" title="http://help.sap.com/saphelp_470/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm"&gt;Inserting Lines into Tables (SAP Library - ABAP Programming (BC-ABA))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #fefeee;"&gt;If the database table does not already contain a line with the same primary key as specified in the work area, the operation is completed successfully and SY-SUBRC is set to 0. Otherwise, the line is not inserted, and SY-SUBRC is set to 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676941#M1766742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insert directly into the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676942#M1766743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Hello Hema,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;if u r trying to update the standard tables using Insert query, and if the data is inconsistent then system will not allow you. This is because the while creating standard tables SAP has taken care that if and only if the corresponding record exists in the check table, then only allow the insertion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;this check is applied at application level using foreign key relationship. Checks at Database level is the second thing. See the figure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/277906" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;But If you are maintaining inconsistent data in your own customized tables (Z-&lt;SPAN style="color: #000000; font-family: Arial, sans-serif;"&gt;tables&lt;/SPAN&gt;) and if you have not maintained the foreign key checks then system will allow you to insert the data. You can make this check required for system to check before inserting the data into the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Also see the &lt;STRONG&gt;Value Table &lt;/STRONG&gt;field. for reference &lt;STRONG&gt;MAKT &lt;/STRONG&gt;table is handful.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Nikhil G.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-directly-into-the-database-table/m-p/9676942#M1766743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:47:25Z</dc:date>
    </item>
  </channel>
</rss>

