<?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-Whether updated or created new entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384585#M1544572</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;Set  a flag variable where you use MODIFY statement. Have a IF statement for that flag, if the status is 'x' then insert the data and have a write statemnt to display or set a status information that created a new entry. Similarly if the flag value is ' ' then it means it is going to update the data. Just have your code like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN action.&lt;/P&gt;&lt;P&gt;  IF AFLAG = 'X'.&lt;/P&gt;&lt;P&gt;   INSERT ZVX_TCURT INTO TABLE TCURT_TAB.&lt;/P&gt;&lt;P&gt;   NO_ROWS = NO_ROWS + 1.&lt;/P&gt;&lt;P&gt;// HAVE YOUR WRITE TSTAEMENT HERE OR STATUS INFORMATION FOR INSERTION  &lt;/P&gt;&lt;P&gt; AFLAG = ' '.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;   MODIFY TCURT_TAB INDEX ROW_NO FROM ZVX_TCURT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY YCL_TCURT.&lt;/P&gt;&lt;P&gt;// HAVE YOUR WRITE TSTAEMENT HERE OR STATUS INFORMATION FOR UPDATION&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;&lt;/P&gt;&lt;P&gt;Vinodh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Nov 2010 09:42:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-01T09:42:21Z</dc:date>
    <item>
      <title>Modify Statement-Whether updated or created new entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384584#M1544571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know whether a MODIFY statement has updated the entry or it created a new entry based in one line or by any one variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest me the shortest way of finding it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;counting the number of entries is big process as i need to repeat this for 15 times in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Viswanath A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 09:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384584#M1544571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T09:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement-Whether updated or created new entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384585#M1544572</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;Set  a flag variable where you use MODIFY statement. Have a IF statement for that flag, if the status is 'x' then insert the data and have a write statemnt to display or set a status information that created a new entry. Similarly if the flag value is ' ' then it means it is going to update the data. Just have your code like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN action.&lt;/P&gt;&lt;P&gt;  IF AFLAG = 'X'.&lt;/P&gt;&lt;P&gt;   INSERT ZVX_TCURT INTO TABLE TCURT_TAB.&lt;/P&gt;&lt;P&gt;   NO_ROWS = NO_ROWS + 1.&lt;/P&gt;&lt;P&gt;// HAVE YOUR WRITE TSTAEMENT HERE OR STATUS INFORMATION FOR INSERTION  &lt;/P&gt;&lt;P&gt; AFLAG = ' '.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;   MODIFY TCURT_TAB INDEX ROW_NO FROM ZVX_TCURT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY YCL_TCURT.&lt;/P&gt;&lt;P&gt;// HAVE YOUR WRITE TSTAEMENT HERE OR STATUS INFORMATION FOR UPDATION&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;&lt;/P&gt;&lt;P&gt;Vinodh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 09:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384585#M1544572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement-Whether updated or created new entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384586#M1544573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 12:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-whether-updated-or-created-new-entry/m-p/7384586#M1544573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T12:21:47Z</dc:date>
    </item>
  </channel>
</rss>

