<?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: hI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411750#M537962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;See the documnetaion of UPDATE,INSERT and MODIFY&lt;/P&gt;&lt;P&gt;MODIFY&lt;/P&gt;&lt;P&gt;... FROM { {wa} | {TABLE itab} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A wa data object that is not table-type or an itab internal table can be specified after FROM. On the one hand the content of the data objects determines whether the line(s) are inserted or changed, and on the other hand, which values are inserted or used for changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert or change several lines in a database table, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;target&amp;gt; FROM TABLE &amp;lt;itab&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those lines of the internal table &amp;lt;itab&amp;gt; for which there is not already a line in the database table with the same primary key are inserted into the table. Those lines of the internal table &amp;lt;itab&amp;gt; for which there is already a line in the database table with the same primary key overwrite the existing line in the database table. The same rules apply to the line type of &amp;lt;itab&amp;gt; as to the work area &amp;lt;wa&amp;gt; described above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC is always set to 0. SY-DBCNT is set to the number of lines in the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;... { {VALUES wa} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab [ACCEPTING DUPLICATE KEYS]}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... {VALUES wa} | {FROM wa} ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab [ACCEPTING DUPLICATE KEYS] ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM and VALUES, you can specify a non-table-type data object wa. After FROM, you can also specify an internal table itab. The contents of the row(s) to be inserted are taken from these data objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;P&gt;... { {SET set_expression [WHERE sql_cond]} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... SET set_expression [WHERE sql_cond] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specifications in source define which rows and columns are changed. Either individual columns are changed using the addition SET or entire rows are overwritten using the addition FROM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM, either a non-table-type data object wa or an internal table itab can be specified. The content of these objects determines - on the one hand - which row(s) is/are changed, and - on the other hand - which values are used to overwrite the row(s). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3254405"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="292577"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 10:09:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T10:09:12Z</dc:date>
    <item>
      <title>hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411746#M537958</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 am writing a program to update the record&lt;/P&gt;&lt;P&gt;  iam getting the following error in the program that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ztab_ac is not expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES WORK AREA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZTAB_AC.&lt;/P&gt;&lt;P&gt;ZTAB_AC-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;ZTAB_AC-SERAILNUMBER = '00020'.&lt;/P&gt;&lt;P&gt;ZTAB_AC-ACCOUNTNUMBER = 'A100'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INSERTING RECORDS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INSERT ZTAB_AC.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'NO OF RECORDS INSERTED', SY-DBCNT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;UPDATING RECORDS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;UPDATE:/ ZTAB_AC SET ACCOUNTNUMBER = 'AA100', WHERE SERAILNUMBEER = '00020'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;WRITE:/ 'NO OF RECORDS UPDATED', SY-DBCNT.&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;WRITE:/ 'NO OF RECORDS UPDATED'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411746#M537958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411747#M537959</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;Check table ztab_ac is available or not in SE12.&lt;/P&gt;&lt;P&gt;I think so its not avaliable in se12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411747#M537959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411748#M537960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is thios ZTAB_AC...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not a Dictionary table dont use as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZTAB_AC.also tell us where u r getting the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if usefull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411748#M537960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411749#M537961</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; ZTAB_AC IS avaialble. I am getting the error in the 24th row&lt;/P&gt;&lt;P&gt;UPDATE:/ ZTAB_AC SET ACCOUNTNUMBER = 'AA100', WHERE SERAILNUMBEER = '00020'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411749#M537961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411750#M537962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;See the documnetaion of UPDATE,INSERT and MODIFY&lt;/P&gt;&lt;P&gt;MODIFY&lt;/P&gt;&lt;P&gt;... FROM { {wa} | {TABLE itab} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A wa data object that is not table-type or an itab internal table can be specified after FROM. On the one hand the content of the data objects determines whether the line(s) are inserted or changed, and on the other hand, which values are inserted or used for changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert or change several lines in a database table, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;target&amp;gt; FROM TABLE &amp;lt;itab&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those lines of the internal table &amp;lt;itab&amp;gt; for which there is not already a line in the database table with the same primary key are inserted into the table. Those lines of the internal table &amp;lt;itab&amp;gt; for which there is already a line in the database table with the same primary key overwrite the existing line in the database table. The same rules apply to the line type of &amp;lt;itab&amp;gt; as to the work area &amp;lt;wa&amp;gt; described above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC is always set to 0. SY-DBCNT is set to the number of lines in the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;... { {VALUES wa} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab [ACCEPTING DUPLICATE KEYS]}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... {VALUES wa} | {FROM wa} ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab [ACCEPTING DUPLICATE KEYS] ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM and VALUES, you can specify a non-table-type data object wa. After FROM, you can also specify an internal table itab. The contents of the row(s) to be inserted are taken from these data objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;P&gt;... { {SET set_expression [WHERE sql_cond]} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... SET set_expression [WHERE sql_cond] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specifications in source define which rows and columns are changed. Either individual columns are changed using the addition SET or entire rows are overwritten using the addition FROM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM, either a non-table-type data object wa or an internal table itab can be specified. The content of these objects determines - on the one hand - which row(s) is/are changed, and - on the other hand - which values are used to overwrite the row(s). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3254405"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="292577"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411750#M537962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411751#M537963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the syntax&lt;/P&gt;&lt;P&gt;UPDATE:/ ZTAB_AC SET ACCOUNTNUMBER = 'AA100', WHERE SERAILNUMBEER = '00020' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also whether the entry is 'AA100' or 'A100'...i think you are trying to insert with a different entry and your check for update is different one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:Reward points if helpful!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krithiga.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411751#M537963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411752#M537964</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;  actual entry is a100, but iam trying to insert aa100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411752#M537964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: hI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411753#M537965</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;UPDATE&amp;lt;b&amp;gt;:/&amp;lt;/b&amp;gt; ZTAB_AC SET ACCOUNTNUMBER = 'AA100', WHERE SERAILNUMBEER = '00020'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;UPDATE ZTAB_AC SET ACCOUNTNUMBER = 'AA100'&lt;/P&gt;&lt;P&gt; WHERE SERAILNUMBEER = '00020'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bold content (:/) is the cause for the error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajasekhar Dinavahi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2411753#M537965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:17:59Z</dc:date>
    </item>
  </channel>
</rss>

