<?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: Table control index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877054#M931922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cursor Position on Table Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At PBO you can set the cursor on a specific field of a specific row of a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Plz Reward points if useful&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Richa Khosla on May 28, 2008 7:06 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2008 05:06:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-28T05:06:33Z</dc:date>
    <item>
      <title>Table control index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877053#M931921</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;I have a table control. How to get the index of the row selected in the table control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Very urgent &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 04:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877053#M931921</guid>
      <dc:creator>former_member32754</dc:creator>
      <dc:date>2008-05-28T04:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table control index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877054#M931922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cursor Position on Table Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At PBO you can set the cursor on a specific field of a specific row of a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Plz Reward points if useful&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Richa Khosla on May 28, 2008 7:06 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 05:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877054#M931922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T05:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table control index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877055#M931923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Kushaal Choudri,
Procedure for Table control line selection and modifying master table using
those values.

1).
U should take one variable in your internal table or in structure which
is used for table control fields
ex :
&lt;PRE&gt;&lt;CODE&gt;data :begin of itab occurs 0 ,
mark type c ,
matnr like mara-matnr ,
matkl like mara-matkl,
maktx like makt-maktx,
end of itab .&lt;/CODE&gt;&lt;/PRE&gt;

&lt;PRE&gt;&lt;CODE&gt;Controls: TABC types TABLEVIEW using screen 100.&lt;/CODE&gt;&lt;/PRE&gt;

2). 
This mark variable should be given in Table control properties.
follow the path
double click on the table control--&lt;DEL&gt;&amp;gt;attributes .&lt;/DEL&gt;-&amp;gt;select
w/SelColumn and in that itab-mark. Check in the figure.

[http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
3). 
After that. Take this example.

&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT ITAB WITH CONTROL tabc
ENDLOOP.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
LOOP AT ITAB.
Module read_table_control.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
module user_command_0100.

==============================
In this Module read_table_control, You should write the following code

MODULE read_table_control INPUT.
MODIFY itab INDEX tabc-current_line."( This will update the ITAB table MARK field with 'X ' whatever we have selected on table control.)
ENDMODULE.

4) 
If you want to Delete some of the records from Table control
follow this code u2026Create one pushbutton and give Fucnction code to that
and write below code

&lt;PRE&gt;&lt;CODE&gt;WHEN 'DELETE'.
LOOP AT itab WHERE mark = 'X'.
DELETE itab.
ENDLOOP.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt; 

I hope that it helps u .

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 05:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877055#M931923</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-05-28T05:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table control index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877056#M931924</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 fields of the control table are taken from an internal table.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that internal table should have a field as MARK type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever user clicks on any row in the control table this field becomes contains 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So by using this you can do the functionality u need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 06:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-index/m-p/3877056#M931924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T06:33:01Z</dc:date>
    </item>
  </channel>
</rss>

