<?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: Help deleting a row from a table using a screen pushbutton (ABAP) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488120#M2002259</link>
    <description>&lt;P&gt;Thank you, could you elaborate on &amp;lt;condition&amp;gt;? &lt;/P&gt;&lt;P&gt;I have tried: &lt;/P&gt;&lt;P&gt;delete from z625_user where username = wa_user-username.&lt;/P&gt;&lt;P&gt;But nothing gets deleted. wa_user-username is the value from the screen that is intended used to identify the row for deletion.  What could I be doing wrong if the entered Username matches perfectly with a record's Username field and it doesn't get deleted?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 09:32:15 GMT</pubDate>
    <dc:creator>former_member1325140</dc:creator>
    <dc:date>2021-10-25T09:32:15Z</dc:date>
    <item>
      <title>Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488116#M2002255</link>
      <description>&lt;P&gt;table: z625_user&lt;/P&gt;
  &lt;P&gt;Screen input field: WA_USER-Username&lt;/P&gt;
  &lt;P&gt;pushbutton: DEL&lt;/P&gt;
  &lt;P&gt;Hi all, I am trying to make it so the user can enter a username into a text field that was brought into Layout (called wa_user-username) and press a pushbutton to delete the row from the z625_user table that shares that username in its "Username" field. I am new to this and am having lots of trouble with the logic, this is what I have:&lt;/P&gt;
  &lt;P&gt;when 'DEL'.&lt;BR /&gt; select * from z625_user into wa_user where username = wa_user-username.&lt;BR /&gt; endselect.&lt;BR /&gt; delete it_user where username = wa_user-username.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 19:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488116#M2002255</guid>
      <dc:creator>former_member1325140</dc:creator>
      <dc:date>2021-10-24T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488117#M2002256</link>
      <description>&lt;P&gt;Thank you for visiting SAP
Community to get answers to your questions. Since you're asking a question here for the first time, I
recommend that you familiarize yourself with &lt;U&gt;&lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;Community
Q&amp;amp;A&lt;/A&gt;&lt;/U&gt; , as it provides tips for preparing
questions that draw responses from our members.&lt;/P&gt;

&lt;P&gt;For example,
you can:&lt;/P&gt;

&lt;P&gt;- outline what steps you took to
find answers (and why they weren't helpful)&lt;/P&gt;

&lt;P&gt;- share screenshots of what
you've seen/done&lt;/P&gt;

&lt;P&gt;- make sure you've applied the
appropriate tags&lt;/P&gt;

&lt;P&gt;- use a more descriptive subject line.&lt;/P&gt;

&lt;P&gt;The more details you provide, the
more likely it is that members will be able to respond. Feel free to also take
our Q&amp;amp;A  tutorial &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;Q&amp;amp;A tutorial&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Should you wish, you can revise
your question by selecting Actions, then Edit.&lt;/P&gt;

&lt;P&gt;By adding a picture to your Profile
you encourage readers to respond.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 19:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488117#M2002256</guid>
      <dc:creator>former_member751591</dc:creator>
      <dc:date>2021-10-24T19:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488118#M2002257</link>
      <description>&lt;P&gt;SQL syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delete from &amp;lt;dbtablename&amp;gt; where &amp;lt;condition&amp;gt;.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Oct 2021 20:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488118#M2002257</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-10-24T20:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488119#M2002258</link>
      <description>&lt;P&gt;Your code seems to delete from an internal table, not from a database table, &lt;/P&gt;&lt;P&gt;But see&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenopen_sql_writing.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenopen_sql_writing.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 05:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488119#M2002258</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2021-10-25T05:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488120#M2002259</link>
      <description>&lt;P&gt;Thank you, could you elaborate on &amp;lt;condition&amp;gt;? &lt;/P&gt;&lt;P&gt;I have tried: &lt;/P&gt;&lt;P&gt;delete from z625_user where username = wa_user-username.&lt;/P&gt;&lt;P&gt;But nothing gets deleted. wa_user-username is the value from the screen that is intended used to identify the row for deletion.  What could I be doing wrong if the entered Username matches perfectly with a record's Username field and it doesn't get deleted?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 09:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488120#M2002259</guid>
      <dc:creator>former_member1325140</dc:creator>
      <dc:date>2021-10-25T09:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488121#M2002260</link>
      <description>&lt;P&gt;in debug, did you check the value of SY-SUBRC after the statement DELETE ... ? &lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488121#M2002260</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-10-25T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help deleting a row from a table using a screen pushbutton (ABAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488122#M2002261</link>
      <description>&lt;P&gt;&amp;lt;condition&amp;gt; = any condition behind the where&lt;/P&gt;&lt;P&gt;If nothing gets deleted, either the line doesn't even exist (see Frederic remark about checking sy-subrc by debug) or you check before the commit happens or something rollbacks the deletion before an eventual commit.&lt;/P&gt;&lt;P&gt;Also, be careful with lower case and upper case.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-deleting-a-row-from-a-table-using-a-screen-pushbutton-abap/m-p/12488122#M2002261</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-10-25T14:08:42Z</dc:date>
    </item>
  </channel>
</rss>

