<?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: selecting data in the table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232698#M480532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked with the logic provided by even though it is not reading the record, can u please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT lt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE read_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  read_data  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module read_data input.&lt;/P&gt;&lt;P&gt;IF row_sel = 'X'.&lt;/P&gt;&lt;P&gt;   lw_final-chek = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " read_data  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2007 05:30:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-07T05:30:31Z</dc:date>
    <item>
      <title>selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232691#M480525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually user requirement is he has to update only the selected data from the displayed data in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how to read the selected records after displaying in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 03:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232691#M480525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T03:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232692#M480526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the table control properties u have an option called W/SelColumn.&lt;/P&gt;&lt;P&gt;Give in some name (ROW_SEL)to that and also include a field CHK in the internal which is being passed to the table control.&lt;/P&gt;&lt;P&gt;and in the PAI of the table control module wirte like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module read_tablecontrol_data.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ROW_SEL = 'X'.&lt;/P&gt;&lt;P&gt;itab-CHK = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this logic will enable you to check the selected records in the table control. and then you can perfom you logic as&lt;/P&gt;&lt;P&gt;loop at itab where CHK = 'X'.&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;endlooop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this you should also enable the Multiple Linesel Option to select multiple lines. You can find it in the table control properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 03:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232692#M480526</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-05-07T03:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232693#M480527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your response can u pls send me the code for my reference, As Ii got strucked with this and tried all the ways but cannot solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 03:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232693#M480527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T03:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232694#M480528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;row_sel is the name which is to be given to the W/SelColumn in the table control properties.&lt;/P&gt;&lt;P&gt;and enable the radio button for the multiple lines select in the table control properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :row_sel(1) type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;	chk(1) type C,&lt;/P&gt;&lt;P&gt;	continue ur fields.....&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PAI module of your internal table include these statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module read_data.&lt;/P&gt;&lt;P&gt;if row_sel = 'X'.&lt;/P&gt;&lt;P&gt;itab-chk = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab index tabc-current_line.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the ur user command&lt;/P&gt;&lt;P&gt;you can update ur selected rows as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where CHK= 'X'.&lt;/P&gt;&lt;P&gt;do the update for those rows.....&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will enable you to check the rows selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If you can paste your part of code i will suggest you of what to be done&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 04:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232694#M480528</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-05-07T04:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232695#M480529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT LT_FINAL.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  MODULE TABCONTROL_USER_COMMAND.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_TC_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_COL_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selected a check box in my internal table,&lt;/P&gt;&lt;P&gt;I am confused where to write the code for reading the data from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,  Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 04:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232695#M480529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T04:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232696#M480530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Line,&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;       Refer this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at i_tab1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Chk_box  = 'Y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR i_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE i_tab1 INDEX tab_cntrl-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i_tab2-matnr = i_tab1-matnr.&lt;/P&gt;&lt;P&gt;    i_tab2-mtart = i_tab1-mtart.&lt;/P&gt;&lt;P&gt;    i_tab2-meins = i_tab1-meins.&lt;/P&gt;&lt;P&gt;    i_tab2-doc   = i_tab1-doc.&lt;/P&gt;&lt;P&gt;    i_tab2-maktx = i_tab1-maktx.&lt;/P&gt;&lt;P&gt;    APPEND i_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;  endloop.&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;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 04:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232696#M480530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T04:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232697#M480531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the module shoudl be wiht in the loop endloop in the flowlogic&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Flowlogic of screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT LT_FINAL.&lt;/P&gt;&lt;P&gt;MODULE TABCONTROL_USER_COMMAND.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*moduel tabcontrol_user_command&lt;/P&gt;&lt;P&gt;MODULE TABCONTROL_USER_COMMAND  input.&lt;/P&gt;&lt;P&gt;if row_sel = 'X'.&lt;/P&gt;&lt;P&gt;lt_tab-chk = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0101 input. &lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_tab where CHK = 'X'.&lt;/P&gt;&lt;P&gt;perform your logic to save.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;make sure you have some action button to SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these programs for better understanding&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at&lt;/P&gt;&lt;P&gt;RSDEMO02&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 04:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232697#M480531</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-05-07T04:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232698#M480532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked with the logic provided by even though it is not reading the record, can u please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT lt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE read_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  read_data  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module read_data input.&lt;/P&gt;&lt;P&gt;IF row_sel = 'X'.&lt;/P&gt;&lt;P&gt;   lw_final-chek = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " read_data  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 05:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232698#M480532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T05:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232699#M480533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code I am getting error message at the input,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct the code, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PBO FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_TC_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_COL_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT   lt_final&lt;/P&gt;&lt;P&gt;       INTO lw_final&lt;/P&gt;&lt;P&gt;       WITH CONTROL tabcontrol&lt;/P&gt;&lt;P&gt;       CURSOR tabcontrol-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE tabcontrol_get_lines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODULE TABCONTROL_CHANGE_FIELD_ATTR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE status_0101.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT lt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MODULE read_data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE tabcontrol_user_command.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_TC_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_COL_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE tabcontrol_user_command input.&lt;/P&gt;&lt;P&gt;  if row_sel = 'X'.&lt;/P&gt;&lt;P&gt;    lt_final-chek = 'X'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 08:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232699#M480533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T08:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232700#M480534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First know the cursor control position and then u can find the index whose value is checked and then u can take this values into table control(Table control will be having the index if it is in the table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 08:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232700#M480534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232701#M480535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Line,&lt;/P&gt;&lt;P&gt;As gopi has suggested do the following..&lt;/P&gt;&lt;P&gt;for the table control properties u have an option called W/SelColumn.&lt;/P&gt;&lt;P&gt;Give in some name (ROW_SEL)to that and also include a field CHK in the internal which is being passed to the table control.&lt;/P&gt;&lt;P&gt;and in the PAI of the table control module wirte like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PBO FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_TC_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_COL_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT lt_final&lt;/P&gt;&lt;P&gt;INTO lw_final&lt;/P&gt;&lt;P&gt;WITH CONTROL tabcontrol&lt;/P&gt;&lt;P&gt;CURSOR tabcontrol-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tabcontrol_get_lines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_FIELD_ATTR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0101.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT lt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE read_data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tabcontrol_user_command.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_TC_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE TABCONTROL_CHANGE_COL_ATTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tabcontrol_user_command input.&lt;/P&gt;&lt;P&gt;if lt_final-chek = 'X'.&lt;/P&gt;&lt;P&gt;*put your logic here something like&lt;/P&gt;&lt;P&gt;move corresponding lt_final to gt_final.&lt;/P&gt;&lt;P&gt;*now you have selcted rows data in gt_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&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, 07 May 2007 09:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232701#M480535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232702#M480536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Some correction.&lt;/P&gt;&lt;P&gt;I hope you included a additional field chk/ some thing in your internal table as suggested by Gopi..&lt;/P&gt;&lt;P&gt;Then In PAI..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
* PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'
LOOP AT lt_final.
* MODULE read_data.
&amp;lt;b&amp;gt;filed  lt_final-chk&amp;lt;/b&amp;gt; MODULE tabcontrol_user_command.
ENDLOOP.
* MODULE TABCONTROL_CHANGE_TC_ATTR.
* MODULE TABCONTROL_CHANGE_COL_ATTR.


MODULE user_command_0101.

MODULE tabcontrol_user_command input.
&amp;lt;b&amp;gt;  IF lt_final-chk= 'X'.
    MODIFY lt_final INDEX tab_cntl-current_line.
    APPEND lt_final TO gt_final.
  ENDIF.
endif.&amp;lt;/b&amp;gt;
end module.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 09:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232702#M480536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232703#M480537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Line,&lt;/P&gt;&lt;P&gt;            Refer this code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab1 .&lt;/P&gt;&lt;P&gt;IF chkbox = 'X'.&lt;/P&gt;&lt;P&gt;    CLEAR i_tab2.&lt;/P&gt;&lt;P&gt;    READ TABLE i_tab1 INDEX tab_cntrl-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i_tab2-matnr = i_tab1-matnr.&lt;/P&gt;&lt;P&gt;    i_tab2-mtart = i_tab1-mtart.&lt;/P&gt;&lt;P&gt;    i_tab2-meins = i_tab1-meins.&lt;/P&gt;&lt;P&gt;    i_tab2-doc   = i_tab1-doc.&lt;/P&gt;&lt;P&gt;    i_tab2-maktx = i_tab1-maktx.&lt;/P&gt;&lt;P&gt;    APPEND i_tab2.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use update or insert command to update data of itab2.&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;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 09:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232703#M480537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T09:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232704#M480538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw this forum and i have the same problem. I already followed evrything in here but still i can't have my &amp;lt;W/SelColumn name&amp;gt; equal to 'X', eventhoug I already select 1 row in my wizard table and when i debug it still my &amp;lt;W/SelColumn name&amp;gt; is equal to no value or blank.&lt;/P&gt;&lt;P&gt;Can help me with this Gopi..PLEASE.&lt;/P&gt;&lt;P&gt;THANK YOU SO MUCH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 03:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232704#M480538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T03:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232705#M480539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL METHOD (node reference here)lo_nd_sel_doc-&amp;gt;GET_SELECTED_ELEMENTS&lt;/P&gt;&lt;P&gt;   RECEIVING&lt;/P&gt;&lt;P&gt;     SET                      =  (Your result set.) lt_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want in a different internal table type.&lt;/P&gt;&lt;P&gt;just loop at this set and append to internal table of any type by assigning each field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232705#M480539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232706#M480540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Line,&lt;/P&gt;&lt;P&gt;              sorry this is for webdynpro control, i guess yours is the regular screen programming.&lt;/P&gt;&lt;P&gt;               I thought your requirement was in webdynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-in-the-table-control/m-p/2232706#M480540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:07:21Z</dc:date>
    </item>
  </channel>
</rss>

