<?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: Update data base table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502412#M842414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ekpo&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;ebelp  ekpo&lt;SUB&gt;matkl ekpo&lt;/SUB&gt;netpr ekpo&lt;SUB&gt;netwr zmm_dprpo&lt;/SUB&gt;kostl zmm_dprpo&lt;SUB&gt;zz_dteca ekpo&lt;/SUB&gt;aedat&lt;/P&gt;&lt;P&gt;        into corresponding fields of table i_netpr&lt;/P&gt;&lt;P&gt;                       from&lt;/P&gt;&lt;P&gt;                       ekpo inner join zmm_dprpo&lt;/P&gt;&lt;P&gt;                       on   zmm_dprpo&lt;SUB&gt;refbn = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                       and  zmm_dprpo&lt;SUB&gt;rfpos = ekpo&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;                       where ekpo~matkl eq c_matkl and&lt;/P&gt;&lt;P&gt;                       zmm_dprpo~kostl in s_kostl  and&lt;/P&gt;&lt;P&gt;                       ekpo~aedat in r_dteca.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_netpr by matkl ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from i_netpr comparing ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; refresh lt_newnetpr.&lt;/P&gt;&lt;P&gt; loop at i_netpr where zz_dteca+4(2) =  p_month.&lt;/P&gt;&lt;P&gt; at new zz_dteca.&lt;/P&gt;&lt;P&gt; clear lwa_newnetpr.&lt;/P&gt;&lt;P&gt; move-corresponding i_netpr to lwa_newnetpr.&lt;/P&gt;&lt;P&gt; lwa_newnetpr-domth(2) = i_netpr-aedat+6(2).&lt;/P&gt;&lt;P&gt; clear lwa_newnetpr-netwr.&lt;/P&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;P&gt; lwa_newnetpr-netwr = lwa_newnetpr-netwr + i_netpr-netwr.&lt;/P&gt;&lt;P&gt; at end of zz_dteca.&lt;/P&gt;&lt;P&gt; append lwa_newnetpr to lt_newnetpr.&lt;/P&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz give me the piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sukruthi raj on Mar 7, 2008 2:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 00:59:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T00:59:05Z</dc:date>
    <item>
      <title>Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502404#M842406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have custom table zmm_dscs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vth 5 fields and i want to add the 6th field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 6th field data is filling in my internal table i_netpr&lt;/P&gt;&lt;P&gt;the field is netwr&lt;/P&gt;&lt;P&gt;i want to update my custom table zmm_dscs vth this field&lt;/P&gt;&lt;P&gt;How to do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest its very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my read statmemt is follows where lwa_newnetpr is referening line type of i_netpr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; read table lt_newnetpr into lwa_newnetpr with key domth = i_dscs-zz_dteca+6(2).&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0 and lwa_newnetpr-kostl = i_dscs-kostl.&lt;/P&gt;&lt;P&gt;     i_detl-netwr = lwa_newnetpr-netwr.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sukruthi raj on Mar 6, 2008 10:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 21:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502404#M842406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502405#M842407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you added the field in the data dictionary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 21:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502405#M842407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T21:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502406#M842408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rob &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i added the field in the dictionary zz_netpr but i has to fill it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the read stmt i added &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_dscs-zz_netpr = lwa_newnetpr-netwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of i_dscs occurs 0.                                 &lt;/P&gt;&lt;P&gt; include structure zmm_dscs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in debbugging i am able to see that i_dscs is filled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i cant able to see the data in the custom table zmm_dscs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 22:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502406#M842408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T22:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502407#M842409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify dbtable from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBtable and Itab should be of same type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 22:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502407#M842409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T22:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502408#M842410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but here the DB table and internal table are not of same type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like update netwr filed values that are in i_dscs&lt;/P&gt;&lt;P&gt;into table zmm_dscs &lt;/P&gt;&lt;P&gt;In this table i added zz_netpr field &lt;/P&gt;&lt;P&gt;what i have to do is to fill zz_netpr field vth netwr values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz any help is highly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 22:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502408#M842410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T22:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502409#M842411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sukruthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me the fields in your database table and fields in your internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be more helpful if you can pass on me that info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 22:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502409#M842411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T22:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502410#M842412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are so many fields in my custom table but kostl and zz_dteca are primary fields &lt;/P&gt;&lt;P&gt;In my internal table there are kostl,zz_dteca,netpr,netwr&lt;/P&gt;&lt;P&gt;are fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to fill the zz_netpr field vth netwr values that i get in internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 00:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502410#M842412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T00:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502411#M842413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sukruthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should define a work area (wa) of your data base table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then select a record from your data base table using the key fields as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single * (if there are multiple records then use internal table rather than work area in this select statement and dont use SINGLE) from dbtable into work area (use internal table if there are multiple records) inwhere key1 = itab-key1 ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then move itab-netwr to wa-zz_netpr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify dbtable from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 00:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502411#M842413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T00:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502412#M842414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ekpo&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;ebelp  ekpo&lt;SUB&gt;matkl ekpo&lt;/SUB&gt;netpr ekpo&lt;SUB&gt;netwr zmm_dprpo&lt;/SUB&gt;kostl zmm_dprpo&lt;SUB&gt;zz_dteca ekpo&lt;/SUB&gt;aedat&lt;/P&gt;&lt;P&gt;        into corresponding fields of table i_netpr&lt;/P&gt;&lt;P&gt;                       from&lt;/P&gt;&lt;P&gt;                       ekpo inner join zmm_dprpo&lt;/P&gt;&lt;P&gt;                       on   zmm_dprpo&lt;SUB&gt;refbn = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                       and  zmm_dprpo&lt;SUB&gt;rfpos = ekpo&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;                       where ekpo~matkl eq c_matkl and&lt;/P&gt;&lt;P&gt;                       zmm_dprpo~kostl in s_kostl  and&lt;/P&gt;&lt;P&gt;                       ekpo~aedat in r_dteca.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_netpr by matkl ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from i_netpr comparing ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; refresh lt_newnetpr.&lt;/P&gt;&lt;P&gt; loop at i_netpr where zz_dteca+4(2) =  p_month.&lt;/P&gt;&lt;P&gt; at new zz_dteca.&lt;/P&gt;&lt;P&gt; clear lwa_newnetpr.&lt;/P&gt;&lt;P&gt; move-corresponding i_netpr to lwa_newnetpr.&lt;/P&gt;&lt;P&gt; lwa_newnetpr-domth(2) = i_netpr-aedat+6(2).&lt;/P&gt;&lt;P&gt; clear lwa_newnetpr-netwr.&lt;/P&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;P&gt; lwa_newnetpr-netwr = lwa_newnetpr-netwr + i_netpr-netwr.&lt;/P&gt;&lt;P&gt; at end of zz_dteca.&lt;/P&gt;&lt;P&gt; append lwa_newnetpr to lt_newnetpr.&lt;/P&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz give me the piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sukruthi raj on Mar 7, 2008 2:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 00:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-base-table/m-p/3502412#M842414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T00:59:05Z</dc:date>
    </item>
  </channel>
</rss>

