<?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 lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179507#M1199047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erdem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting lines, if user click on delete button, you just need to delete those lines from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take marked column as 'SEL' and also set that in the table control properties also. Let me know if you want further explanations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anil Salekar on Feb 24, 2009 8:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 07:16:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T07:16:21Z</dc:date>
    <item>
      <title>delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179503#M1199043</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;how can I delete selected or marked lines in a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose the user selects some lines and on button kilck these lines&lt;/P&gt;&lt;P&gt;must be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 22:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179503#M1199043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T22:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179504#M1199044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should have a1 char field called SEL that's filled with an 'X' when the user selects the row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply loop through your control to find them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 22:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179504#M1199044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T22:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179505#M1199045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Include a single char field in your internal tab, say pick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
  MODULE user_command_0200.

MODULE user_command_0200 INPUT.

  CASE ok200.

    WHEN 'DELETE'.
      DELETE gt_itab WHERE pick = 'X'

  ENDCASE.
  CLEAR ok200.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the properties of the table control, you should tick the check box &lt;STRONG&gt;w/SelColumn&lt;/STRONG&gt; and give as gt_itab-pick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 23:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179505#M1199045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T23:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179506#M1199046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very sorry when the user selects the row the mentioned field &lt;/P&gt;&lt;P&gt;(char field) doesnt get filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Under the properties of the table control, I have activated the check box w/SelColumn .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the debugger I can see it. It is empty. It is declared as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONTROLS: tc_itab TYPE TABLEVIEW USING SCREEN 0400.

DATA:
  ok_code     TYPE sy-ucomm,
  zeile(6)    TYPE n,
  zeile_tc(6) TYPE n,
  cols        TYPE cxtab_column,
  scr         LIKE screen,
  BEGIN OF itab OCCURS 0,
    mark,
    feld1(10),
    feld2(4),
    feld3(5),
  END OF itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179506#M1199046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T07:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179507#M1199047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erdem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting lines, if user click on delete button, you just need to delete those lines from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take marked column as 'SEL' and also set that in the table control properties also. Let me know if you want further explanations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anil Salekar on Feb 24, 2009 8:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179507#M1199047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T07:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179508#M1199048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Under the properties of the table control, I have activated the check box w/SelColumn .&lt;/P&gt;&lt;P&gt;u will have to give field name as itab-mark , not only mark under this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179508#M1199048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T07:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179509#M1199049</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;After adding the one char field in your table control, you need to modify the internal table display data in your table control in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
*&amp;amp;SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_QNR'
  LOOP AT g_t_tc.
    CHAIN.
      FIELD g_wa_tc-mandt.
      FIELD g_wa_tc-srno.
      MODULE tc_qnr_modify ON CHAIN-REQUEST.
    ENDCHAIN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module &lt;STRONG&gt;tc_qnr_modify&lt;/STRONG&gt; is used to modify the value of the "Selection" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;SPWIZARD: INPUT MODULE FOR TC 'TC_QNR'. DO NOT CHANGE THIS LINE!
*&amp;amp;SPWIZARD: MODIFY TABLE
MODULE tc_qnr_modify INPUT.
  MODIFY g_t_tc
    FROM g_wa_tc
    INDEX tc_qnr-current_line.
ENDMODULE.                    "QUEST_TC_MODIFY INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Selection field of your internal table would be marked 'X' for all the selected rows. &lt;/P&gt;&lt;P&gt;You can delete them from the internal table using DELETE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179509#M1199049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179510#M1199050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attributes of Table Control give w/selcolumn name as ITAB-MARK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in PAI you can write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ITAB WHERE MARK = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179510#M1199050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T07:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179511#M1199051</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;the current problem is the output in the table control is not being updated after I have deleted the line ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can cause that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 09:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179511#M1199051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T09:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179512#M1199052</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;if you use an alv for displaying the table you sould use REFRESH_TABLE_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines/m-p/5179512#M1199052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T10:00:51Z</dc:date>
    </item>
  </channel>
</rss>

