<?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 the query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661521#M293125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you dont have the complete key to get the last record using a query, its advicable to use RP_PROVIDE LAST..and then modify the table using mdofiy statement (or you can use the relevant function module [RH_PNNNN_MAINTAIN] to modify the table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sajan Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 19:10:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-08T19:10:03Z</dc:date>
    <item>
      <title>modify the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661519#M293123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a requirement related to Actions infotype in the report I delete the latest record from the database table (PB4000 - related to recruitement). After that I need to delimit the enddate of the last record for the applicant record to '12/31/9999'. I know that I have to use the 'MODIFY' command to update the record in the databse table. To fetch the last record--- shoudl I use RP_RROVIDE LAST... and then use the modify query or can I use the single query statement to fetch the last record and modify?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input will be helpful. Thanks&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 18:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661519#M293123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: modify the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661520#M293124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are not directly updating a standard SAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661520#M293124</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T19:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: modify the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661521#M293125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you dont have the complete key to get the last record using a query, its advicable to use RP_PROVIDE LAST..and then modify the table using mdofiy statement (or you can use the relevant function module [RH_PNNNN_MAINTAIN] to modify the table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sajan Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661521#M293125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T19:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: modify the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661522#M293126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do... Is there a better way?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661522#M293126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T19:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: modify the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661523#M293127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu should use RP_PROVIDE_FROM_LAST if you are using a logical database.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care just to modify just the endda.. otherwise the whole record will get modified and the other data will be passed with blank.. so use TRANSPORTING when doing modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you are not using logical database then you can directly do a select to find the last record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661523#M293127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T19:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: modify the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661524#M293128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. Helpful answers&lt;/P&gt;&lt;P&gt;Vinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-the-query/m-p/1661524#M293128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T20:40:59Z</dc:date>
    </item>
  </channel>
</rss>

