<?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 update database table !!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217525#M1826219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi but i want to update only some of fields of them .. have declared another structure with same fields still i am getting same error. ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 09:28:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-24T09:28:31Z</dc:date>
    <item>
      <title>How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217515#M1826209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;Please advice how to update database table with certain cndition needs to be checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;Please consider below scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;have used enqueu and dequeue function to lock entries&amp;nbsp; and also i have used BAPI so considering that return parameter . i want to update table&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;/tdk/st0027.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;1. I want to update database table&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;2. there are certain condition needs to be checked like ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; loop at it_final into wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;th_return-type = 'S'.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;*********************************************************************&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if th_final-vbeln = /tdk/st0027-vbeln and&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-posnr = /tdk/st0027-posnr and&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-etenr = /tdk/st0027-sdslno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;above condition which i need to check .and need to append below system fields need to be appended in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-prstsind = '20'.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-chgdate&amp;nbsp; = g_date.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-chgtime&amp;nbsp; = g_uzeit.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-chgprog&amp;nbsp; = g_cprog.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; th_final-chguser&amp;nbsp; = g_uname.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append th_final to td_final.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; update /tdk/st0027 FROM th_final.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;endloop.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;but i am getting error saying that&amp;nbsp; "The type od database table and work area (TH_FINAL)&amp;nbsp; are not unicode convertible"?&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;I am not able to understandwhat would be the solution for this ? &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;Thanks and regards,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #333333;"&gt;Prasad K. NAralkar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 05:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217515#M1826209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T05:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217516#M1826210</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;The work area is not type compatible with the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check how&amp;nbsp; you have declared the work area TH_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be DATA: work area&amp;nbsp; TYPE database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 05:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217516#M1826210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T05:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217517#M1826211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes have declared the same .but still its not allowing me to write modify or update query ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 05:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217517#M1826211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T05:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217518#M1826212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please paste declaration of TH_FINAL and TD_FINAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 06:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217518#M1826212</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-24T06:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217519#M1826213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;plz check the data type of your inter table th_final.&lt;/P&gt;&lt;P&gt; your&amp;nbsp; table type must be same . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 06:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217519#M1826213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T06:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217520#M1826214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416892" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find above details as i am restrict to copy paste the perticular code .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 06:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217520#M1826214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T06:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217521#M1826215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416893" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 06:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217521#M1826215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T06:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217522#M1826216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please compare structure of typ_final with database table /tdk/st00027. These both are different. Please create a local internal table of same type as database table. append data into that table and update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 06:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217522#M1826216</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-24T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217523#M1826217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the structure of both table is not same. first declare a local internal table as same as structure of that db table. then move corresponding value of th_final to that local internal table. then, update it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 07:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217523#M1826217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T07:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217524#M1826218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error occurs in the UPDATE statement included in the code. In this statement it is seen that there is a mismatch of structure defined for the DDIC table &lt;SPAN style="color: #333333; font-size: 12px;"&gt;/tdk/st0027&lt;/SPAN&gt; and that of your work area &lt;SPAN style="color: #333333; font-size: 12px;"&gt;th_final.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to create a structure w.r.t the DDIC table. &lt;/P&gt;&lt;P&gt;Eg: DATA: wa_temp TYPE &lt;SPAN style="color: #333333; font-size: 12px;"&gt;/tdk/st0027&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &lt;SPAN style="color: #333333; font-size: 12px;"&gt;th_final&lt;/SPAN&gt; TO wa_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try to UPDATE using the temporary work area i.e wa_temp which has structure similar to that of the database table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 07:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217524#M1826218</guid>
      <dc:creator>mayur_priyan</dc:creator>
      <dc:date>2014-03-24T07:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217525#M1826219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi but i want to update only some of fields of them .. have declared another structure with same fields still i am getting same error. ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217525#M1826219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T09:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to update database table !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217526#M1826220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either use a structure identical to database (and initially filled with current values of every field from database, else many fields will get initial value) or use a LOOP and a SELECT SET field = value WHERE statement.&lt;/P&gt;&lt;P&gt;&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>Mon, 24 Mar 2014 12:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-database-table/m-p/10217526#M1826220</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-03-24T12:58:21Z</dc:date>
    </item>
  </channel>
</rss>

