<?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: Modify statement is not working. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915213#M686271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,  "Modify Statement" does not work between &lt;/P&gt;&lt;P&gt;EXEC SQL -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;ENDEXEC. So only Insert or Update can be used depending on the requirement.Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2007 13:18:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-23T13:18:42Z</dc:date>
    <item>
      <title>Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915200#M686258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY AH(table)   FROM  wa(workarea)&lt;/P&gt;&lt;P&gt;   TRANSPORTING  Funct  Sh  SF (table fields)&lt;/P&gt;&lt;P&gt;       WHERE Funct = wa-functlr&lt;/P&gt;&lt;P&gt;            AND Sh = v_sh&lt;/P&gt;&lt;P&gt;            AND SF = wa-sf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 21:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915200#M686258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T21:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915201#M686259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know your code. Are you modifying standard db table or a internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 21:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915201#M686259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T21:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915202#M686260</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; Did you check the value of SY-SUBRC after the modify statement? If the sy-subrc eq 0 then its modifying the data. If its not equal to 0 then the modify statement is failing. Hope the structure of the workarea and the table you are trying to modify is same. Hope you have a record which stratifies the where clause mentioned in the modify statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 21:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915202#M686260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T21:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915203#M686261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I am trying to modify the data in MSSQL-SERVER data base table from the ABAP.I have a workarea 'wa' and &lt;/P&gt;&lt;P&gt;     the table lets say AH.I want to modify the table data    &lt;/P&gt;&lt;P&gt;EXEC SQL&lt;/P&gt;&lt;P&gt; MODIFY AH(table) FROM wa(workarea)&lt;/P&gt;&lt;P&gt;  TRANSPORTING Funct Sh SF (table fields)&lt;/P&gt;&lt;P&gt;   WHERE Funct = wa-functlr&lt;/P&gt;&lt;P&gt;   AND Sh = v_sh&lt;/P&gt;&lt;P&gt;   AND SF = wa-sf. &lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915203#M686261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915204#M686262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeraj,&lt;/P&gt;&lt;P&gt;Instead of directly modifing db table,&lt;/P&gt;&lt;P&gt; First fill up internal table with required data and use Insert statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert DBTABLE from ITAB.&lt;/P&gt;&lt;P&gt;check syntax with help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915204#M686262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915205#M686263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fee lthis modify syntax will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for Native SQL which will give you an idea -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915205#M686263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915206#M686264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijayendra,   Structure of the workarea is not same because the values coming into the workarea are coming from othertable of SAP and I have to update the values of SQLServer table columns.Do you think it is going to modify only same structure table from workarea??.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915206#M686264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915207#M686265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya, I have tried the Insert and update statement and they work fine but at the moment requirement is to modify the data not to insert only. Because modify do insert and update both depending on the records availability.My syntax is jumping back with error saying there is error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915207#M686265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915208#M686266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts, Update actually only works when there is data existing but if the table is empty then I should insert and when there is data then I should update to unique records means the different records then what I am inserting.So modify was the only option but it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915208#M686266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915209#M686267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do one thing.&lt;/P&gt;&lt;P&gt;Before inserting or updating ,&lt;/P&gt;&lt;P&gt;first delete all the records in the DB table.&lt;/P&gt;&lt;P&gt;Then use Insert statement with ITAB.&lt;/P&gt;&lt;P&gt;Then you wll not get error. You will have latest data in the ITAB any way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915209#M686267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915210#M686268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do one thing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select data for the specified condition from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data exists, use UPDATE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data does not exist, use INSERT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915210#M686268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915211#M686269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya,   The requirement is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         If &lt;/P&gt;&lt;P&gt;            the data record(PRkey) to be inserted in table is same like existing record then update other columns for this PRkey record.&lt;/P&gt;&lt;P&gt;        Else&lt;/P&gt;&lt;P&gt;            Insert new record.&lt;/P&gt;&lt;P&gt;        EndIf.&lt;/P&gt;&lt;P&gt; That's why I thought to use Modify because that statement automatically do these both works but I am missing something in syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915211#M686269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915212#M686270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 12:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915212#M686270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T12:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement is not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915213#M686271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,  "Modify Statement" does not work between &lt;/P&gt;&lt;P&gt;EXEC SQL -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;ENDEXEC. So only Insert or Update can be used depending on the requirement.Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 13:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/2915213#M686271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T13:18:42Z</dc:date>
    </item>
  </channel>
</rss>

