<?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: Data base update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179246#M463173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U understood my requirement, I already populated shipref to my internal table wihich is having all the fields of my database table. Next how do I modify date, time etc. based on my shipref no?... If u have any sample code, please send me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am little new to ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 04:09:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-24T04:09:03Z</dc:date>
    <item>
      <title>Data base update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179241#M463168</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;I have a internal table (t_itab) with shipref no and I want to update the database table (z1sd_05) with the statement "UPDATE z1sd_05 from table t_itab."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my database table z1sd_05, there are 20+ fields more like date, time, username etc., My question is when I update the shipref no to database table, is date, time, username is also going to update in the database table or not?..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, how to achive this functionality?..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, date, time, username are all system fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 03:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179241#M463168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T03:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data base update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179242#M463169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant ,&lt;/P&gt;&lt;P&gt;   The value will not be updated automatically , you will have to do it.&lt;/P&gt;&lt;P&gt;For this i would suggest you to use an internal table which has all the feilds of the table you want to populate and populate the internal table with value and use the internal table to update the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 03:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179242#M463169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T03:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data base update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179243#M463170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;shreekant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the syntax for Updation.Based on sysntax it will happen.Suppose if you&lt;/P&gt;&lt;P&gt;use first one only those fields will update in database table.If you use third syntax it will update all the fields in database table by internal table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. UPDATE dbtab SET f1 ... fn. &lt;/P&gt;&lt;P&gt;3. UPDATE dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;UPDATE (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to update all  use first syntax&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;UPDATE z1sd_05  SET  shipref_no = itab-shiref_no&lt;/P&gt;&lt;P&gt;                                    date =   sy-datum &lt;/P&gt;&lt;P&gt;                                    time = sy-uzeit&lt;/P&gt;&lt;P&gt;                                    username = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 03:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179243#M463170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T03:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data base update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179244#M463171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I need to append shipref no to to my internal table which is type of my database table. So, I will end up with only shipref no in my internal table so how to populate the values like date, time, username to my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 03:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179244#M463171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T03:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data base update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179245#M463172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant , &lt;/P&gt;&lt;P&gt;  I am sorry i am not clear with your requirement .&lt;/P&gt;&lt;P&gt;My understanding is that you need to add records to the data base table , these records will be in an internal table , now in this internal table , the value which you retreive is shipref  , rest of the feilds are to be populated with current system data like data , time , username , if this is the case then you have to define an internal table with all the feilds of you database table , once the value of shipref  is populated then modify the internal table with the values of data , time and username , they will be system feilds like sy-uname , check the table SYST for more details .&lt;/P&gt;&lt;P&gt;Hope this helps. In case you have more queries feel free to revert back.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 04:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179245#M463172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T04:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data base update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179246#M463173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U understood my requirement, I already populated shipref to my internal table wihich is having all the fields of my database table. Next how do I modify date, time etc. based on my shipref no?... If u have any sample code, please send me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am little new to ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 04:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-update/m-p/2179246#M463173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T04:09:03Z</dc:date>
    </item>
  </channel>
</rss>

