<?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: doubt in updating database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555984#M251787</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 command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;update ztab
  set f1 = 1
...
  where f2 = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2006 13:45:09 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2006-10-16T13:45:09Z</dc:date>
    <item>
      <title>doubt in updating database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555983#M251786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;i want to modify values ztable from a internal table .... &lt;/P&gt;&lt;P&gt;for eg : the ztable contains matnr and accept_qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr   qty&lt;/P&gt;&lt;P&gt;mat01    &lt;/P&gt;&lt;P&gt;mat02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to modify qty of the table .. i am using where condition (ie modify where matnr = ) but where condition is not working for database tables .... how to proceed with this ..&lt;/P&gt;&lt;P&gt; thanks &lt;/P&gt;&lt;P&gt;lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555983#M251786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in updating database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555984#M251787</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 command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;update ztab
  set f1 = 1
...
  where f2 = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555984#M251787</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-10-16T13:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in updating database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555985#M251788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh Chander,&lt;/P&gt;&lt;P&gt;Can you show your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;       include structure ztab.&lt;/P&gt;&lt;P&gt;data: end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-matnr = 'mat1'.&lt;/P&gt;&lt;P&gt;itab-accept_qty = 1.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-matnr = 'mat2'.&lt;/P&gt;&lt;P&gt;itab-accept_qty = 1.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztab from table itab. "itab must be of the same type as ztab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555985#M251788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in updating database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555986#M251789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use conversion exit to convert the Material into SAP internal format before modify/update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally this will fails when you are passing MATNR directly without conversion. Just have a look in debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555986#M251789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in updating database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555987#M251790</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;P&gt;before that :- modify statemnt will modify a record if there is record having the same key like that of record in work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no record in itab with key of work area record, it will insert a new record in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look this sample code.&lt;/P&gt;&lt;P&gt;*modify internal table&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;wa-field1 = data1.&lt;/P&gt;&lt;P&gt;wa-field2 = data2.&lt;/P&gt;&lt;P&gt;wa-field 3= data3.&lt;/P&gt;&lt;P&gt;modify itab from wa transporting field1 field2 field3 where key_field = wa-keyfield. "there shuld not be any chang in key field.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*now update database table&lt;/P&gt;&lt;P&gt;*work area and data base structure shuld be same type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab[] is not initial.&lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 13:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-updating-database-table/m-p/1555987#M251790</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-16T13:54:21Z</dc:date>
    </item>
  </channel>
</rss>

