<?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: Delete single row in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699691#M890855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SEQNR will always bee Unique if nothing else and the first one of the day would be equal to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE * FROM PA0022 where &amp;lt;your conditions&amp;gt; and SEQNR GT 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would look into using FM for deletes as previouly suggested unless you are sure these entries do not effect any other tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 13:23:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T13:23:50Z</dc:date>
    <item>
      <title>Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699683#M890847</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;Can some one tell me how to delete a single row from Database table, where we have duplicate entries using DELETE Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like Select Single or Select upto 1 row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently i'm using &lt;/P&gt;&lt;P&gt;Delete from PA0022 where conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this all records are getting deleted at once. but i need only once row to be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699683#M890847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699684#M890848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use DELETE PA0022 index &amp;lt;row number&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699684#M890848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699685#M890849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use Index to delete the required record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699685#M890849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699686#M890850</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;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a condition to be checked to delete. More over how to find out the row number in PA0022 for a specific record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699686#M890850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699687#M890851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM : HR_INFOTYPE_OPERATION to delete from &lt;/P&gt;&lt;P&gt;infotypes ... &lt;/P&gt;&lt;P&gt;Pass 'DEL' for parameter OPERATION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699687#M890851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699688#M890852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to be more specific with your delete.  All these fields are part of the key.  Ensure that all the fields are popluated that will make your delete unique to the record you want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERNR&lt;/P&gt;&lt;P&gt;SUBTY&lt;/P&gt;&lt;P&gt;OBJPS&lt;/P&gt;&lt;P&gt;SPRPS&lt;/P&gt;&lt;P&gt;ENDDA&lt;/P&gt;&lt;P&gt;BEGDA&lt;/P&gt;&lt;P&gt;SEQNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699688#M890852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699689#M890853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &lt;STRONG&gt;FIELD&lt;/STRONG&gt; INDEX &amp;lt;ROW NUMBER&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BY&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699689#M890853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699690#M890854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken care of those key fields, but the thing, if a record is created multiple times on the same day then duplicates will appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to delete those duplicate keeping only one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699690#M890854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699691#M890855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SEQNR will always bee Unique if nothing else and the first one of the day would be equal to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE * FROM PA0022 where &amp;lt;your conditions&amp;gt; and SEQNR GT 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would look into using FM for deletes as previouly suggested unless you are sure these entries do not effect any other tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699691#M890855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699692#M890856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Table maintanence generator is nothing but making a table available for adding records and deleting records.&lt;/P&gt;&lt;P&gt;The transaction code used is SM30.&lt;/P&gt;&lt;P&gt;follow below steps&lt;/P&gt;&lt;P&gt;1) go to se11 check table maintanance check box under&lt;/P&gt;&lt;P&gt;attributes tab&lt;/P&gt;&lt;P&gt;2) utilities-table maintanance Generator-&amp;gt;&lt;/P&gt;&lt;P&gt;create function group and assign it under&lt;/P&gt;&lt;P&gt;function group input box.&lt;/P&gt;&lt;P&gt;also assign authorization group default &amp;amp;NC&amp;amp; .&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;select standard recording routine radio in table&lt;/P&gt;&lt;P&gt;table mainitainence generator to move table&lt;/P&gt;&lt;P&gt;contents to quality and production by assigning&lt;/P&gt;&lt;P&gt;it to request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) select maintenance type as single step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) maintainence screen as system generated numbers&lt;/P&gt;&lt;P&gt;this dialog box appears when you click on create&lt;/P&gt;&lt;P&gt;button&lt;/P&gt;&lt;P&gt;6) save and activate table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using sm30 you can create entries manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these links&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="1856183"&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="2545202"&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="2629253"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Maintenance type&lt;/P&gt;&lt;P&gt;It specifies when you insert the new record, dat to be filled for the new entry should come in same screen one step) or new screen should come for data entry(two step)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Maintenance Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is screen which is displayed to user. you can edit the screen and set the attributes of screen as per your need.&lt;/P&gt;&lt;P&gt;e.g.-if you want one of fields as output only and in the pAI of screen you can populate the value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Recording routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recording routine is same as your delivery class of table.&amp;gt;&lt;/P&gt;&lt;P&gt;if recording routine is no or use it means 'A'-no transport request number is asked while saving the entries.&amp;gt;&lt;/P&gt;&lt;P&gt;if it is standard -'C'it means it will ask for transport request number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699692#M890856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699693#M890857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using this code, but still its not working out, what it is doing is, it is not deleting other single records with seqnr = 0 which were created on any other day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My req: i need to delete all duplicates keeping only earliest record for given pernr zpbegda zpendda zpcertmajo zpcertsub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DELETE FROM pa0022 CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt;                         WHERE mandt = sy-mandt&lt;/P&gt;&lt;P&gt;                         AND pernr EQ pi_0022_dupl-pernr&lt;/P&gt;&lt;P&gt;                         AND subty EQ '69'&lt;/P&gt;&lt;P&gt;                         AND begda EQ pi_0022_dupl-begda&lt;/P&gt;&lt;P&gt;                         AND endda EQ pi_0022_dupl-endda&lt;/P&gt;&lt;P&gt;                         and seqnr GT 0&lt;/P&gt;&lt;P&gt;                         AND zpbegda EQ itab_dupl-zpbegda&lt;/P&gt;&lt;P&gt;                         AND zpendda EQ itab_dupl-zpendda&lt;/P&gt;&lt;P&gt;                         AND zpcertmajo EQ itab_dupl-zpcertmajo&lt;/P&gt;&lt;P&gt;                         AND zpcertsub EQ itab_dupl-zpcertsub.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 14:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699693#M890857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete single row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699694#M890858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all: Do NOT delete entries from a standard DB table just like this, since there probably are many relationships with other tables. Use the function modules for this like already suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more TIP: How come you have duplicate entries in your database table? Try to avoid this by checking the data before saving. Do not insert new entries, better to modify the entry upon saving using a user exit or BAdI!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 15:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-single-row/m-p/3699694#M890858</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-21T15:22:41Z</dc:date>
    </item>
  </channel>
</rss>

