<?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: Modify Database table from the internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491085#M1062933</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;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: vbak.


Data : i_vbak type table of vbak.

field-symbols &amp;lt;vbak&amp;gt; type vbak.


select-options : s_vbeln for vbak-vbeln.

select vbeln
       audat
       from vbak
       into corresponding fields of table i_vbak
       where vbeln in s_vbeln.

loop at i_vbak assigning &amp;lt;vbak&amp;gt;.
&amp;lt;vbak&amp;gt;-audat = '20080917'.
endloop.

update vbak from table i_vbak.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code. It is working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kasuladevi Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 06:29:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-17T06:29:02Z</dc:date>
    <item>
      <title>Modify Database table from the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491080#M1062928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;    i have a internal table I_VBAK  (contains only 2 fields &lt;/P&gt;&lt;P&gt;   i wou;d like to modify the database table VBAK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 05:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491080#M1062928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T05:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table from the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491081#M1062929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         It is not recommended to use direct Statements such as Insert / Modify / Update for the Standard SAP Tables which will cause in direct update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Instead, what you can do is to use a BAPI BAPI_SALESORDER_CHANGE and modify the VBAK table indirectly with the fields that you have in the Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkat Phani Prasad Konduri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491081#M1062929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table from the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491082#M1062930</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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to make use of direct statements like modify/ update, first lock the table using the function module enqueue_e_table, then make changes as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: modify &amp;lt;tablename&amp;gt; from &amp;lt;internaltablename&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After modifying unlock the table using the dequeue function module, then use COMMIT WORK stmt to capture the changes in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491082#M1062930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table from the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491083#M1062931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat the fiels i am modifying is an customised field ???&lt;/P&gt;&lt;P&gt;not an standard SAP defined one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491083#M1062931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table from the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491084#M1062932</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;Go through this blog updated by me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://theguruspeaksaboutsap.blogspot.com/2008/01/how-to-update-database-records-without.html" target="test_blank"&gt;http://theguruspeaksaboutsap.blogspot.com/2008/01/how-to-update-database-records-without.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i recommend you not to make changes in standard if you are doing it just for the practice consult your team lead beofre you make changes.And do it only if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harini.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491084#M1062932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table from the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491085#M1062933</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;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: vbak.


Data : i_vbak type table of vbak.

field-symbols &amp;lt;vbak&amp;gt; type vbak.


select-options : s_vbeln for vbak-vbeln.

select vbeln
       audat
       from vbak
       into corresponding fields of table i_vbak
       where vbeln in s_vbeln.

loop at i_vbak assigning &amp;lt;vbak&amp;gt;.
&amp;lt;vbak&amp;gt;-audat = '20080917'.
endloop.

update vbak from table i_vbak.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code. It is working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kasuladevi Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table-from-the-internal-table/m-p/4491085#M1062933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T06:29:02Z</dc:date>
    </item>
  </channel>
</rss>

