<?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 record in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386810#M813188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;put a button delete in the screen if user selected the record and pressed delete then the record will deleted.&lt;/P&gt;&lt;P&gt;if sy-ucomm eq 'delete'.&lt;/P&gt;&lt;P&gt;loop at it_table_control into fs_table_control.&lt;/P&gt;&lt;P&gt;if sel_field eq 'X'.&lt;/P&gt;&lt;P&gt;  delete ztable from fs_table_control.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; message s000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Plzz reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 09:49:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T09:49:17Z</dc:date>
    <item>
      <title>delete record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386809#M813187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have created a table control and i want to delete rows from the database tables if the check box is checked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386809#M813187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: delete record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386810#M813188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;put a button delete in the screen if user selected the record and pressed delete then the record will deleted.&lt;/P&gt;&lt;P&gt;if sy-ucomm eq 'delete'.&lt;/P&gt;&lt;P&gt;loop at it_table_control into fs_table_control.&lt;/P&gt;&lt;P&gt;if sel_field eq 'X'.&lt;/P&gt;&lt;P&gt;  delete ztable from fs_table_control.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; message s000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Plzz reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386810#M813188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: delete record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386811#M813189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write a module in the PAI &lt;/P&gt;&lt;P&gt;write form delete_sel_row in that module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM delete_sel_row TABLES   lt_table TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_fs_selrow&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_wa_table&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;  CLEAR gv_ok_code.&lt;/P&gt;&lt;P&gt;  LOOP AT lt_table ASSIGNING &amp;lt;l_wa_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 'SEL' OF STRUCTURE &amp;lt;l_wa_table&amp;gt; TO &amp;lt;l_fs_selrow&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      IF &amp;lt;l_fs_selrow&amp;gt; EQ c_true.&lt;/P&gt;&lt;P&gt;        DELETE lt_table.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tyanks,&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386811#M813189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: delete record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386812#M813190</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;whether the check box u meant here is the selection column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the check box is a selection column,please tell me whether you will be clicking any button after you click the check box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 10:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386812#M813190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: delete record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386813#M813191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya the check box is a selection column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 10:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386813#M813191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T10:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: delete record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386814#M813192</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;Here are the assumptions which i have made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Number     - 100&lt;/P&gt;&lt;P&gt;Internal Table        -  it_demo&lt;/P&gt;&lt;P&gt;Delete(PF-Status) -  DEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Suggestion is (Given Step by Step):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In the PAI Module, in the User_command_100 Module&lt;/P&gt;&lt;P&gt;check for the pf-status as DEL.&lt;/P&gt;&lt;P&gt;2) If its DEL then all the records from the Ztable where selcol = 'X' in the itab it_demo.&lt;/P&gt;&lt;P&gt;3) Then delete the records from the itab it_demo where selcol = 'X'. This deletion is done to make the updation in the table control with the new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this answers your question. Please get back to me if it doesnt answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 11:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-record/m-p/3386814#M813192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T11:06:56Z</dc:date>
    </item>
  </channel>
</rss>

