<?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: how to insert/modify records from internal table to database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659563#M613495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLEASE DO NOT UPDATE STANDARD TABLES FROM YOUR PROGRAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2007 15:31:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-10T15:31:15Z</dc:date>
    <item>
      <title>how to insert/modify records from internal table to database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659560#M613492</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;Can anyone please send  me the code to modify a database table (MARA) from &lt;/P&gt;&lt;P&gt;Internal table t_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 14:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659560#M613492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T14:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert/modify records from internal table to database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659561#M613493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for inserting data&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/htmhelp/34/ee7fb7293911d3a97d00a0c9449261/content.htm" target="test_blank"&gt;http://www.sapdb.org/htmhelp/34/ee7fb7293911d3a97d00a0c9449261/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for modifying&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm" target="test_blank"&gt;http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659561#M613493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T15:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert/modify records from internal table to database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659562#M613494</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;Try this way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  INSERT mara FROM TABLE t_mara.

Or.

  LOOP AT t_mara.
    INSERT INTO mara VALUES t_mara.
  ENDLOOP.

Or.

  UPDATE mara FROM TABLE t_mara.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODIFY mara FROM TABLE t_mara.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659562#M613494</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-08-10T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert/modify records from internal table to database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659563#M613495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLEASE DO NOT UPDATE STANDARD TABLES FROM YOUR PROGRAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659563#M613495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert/modify records from internal table to database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659564#M613496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharma,&lt;/P&gt;&lt;P&gt;Yes the previous replies are very naughty advising you to directly update table MARA, this is not recommended and could seriously damage the data integrity of the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the BAPI called BAPI_MATERIAL_MAINTAINDATA_RT which you can use to safely update MARA and associated tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surbjeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-modify-records-from-internal-table-to-database-table/m-p/2659564#M613496</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2007-08-10T15:36:25Z</dc:date>
    </item>
  </channel>
</rss>

