<?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: Get selected row in a table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659686#M292479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check demo program DEMO_DYNPRO_TABLE_CONTROL_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 18:47:26 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2006-11-13T18:47:26Z</dc:date>
    <item>
      <title>Get selected row in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659685#M292478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best approach to get a selected row, all fields, in a table control?  I see this done in various transactions in MM but do not see how to do this in documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 18:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659685#M292478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected row in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659686#M292479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check demo program DEMO_DYNPRO_TABLE_CONTROL_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 18:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659686#M292479</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-11-13T18:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected row in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659687#M292480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first you shall specify a variable(e.g:flg_sel) for table control attribute "w/SelColumn" .&lt;/P&gt;&lt;P&gt;second ,you shall judge whether flg_sel = 'X' in you source code ,when flg_sel ='X' ,indicate that row was selected .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 02:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659687#M292480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T02:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected row in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659688#M292481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the screen flow logic you need something like this:&lt;/P&gt;&lt;P&gt;  LOOP AT t_partner.&lt;/P&gt;&lt;P&gt;       MODULE get_selected_line.&lt;/P&gt;&lt;P&gt;      MODULE process_partner.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI module get_selected_line :&lt;/P&gt;&lt;P&gt;MODULE get_selected_line INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;only get cursor position once....as it's constant within each loop&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF sy-stepl EQ 1.&lt;/P&gt;&lt;P&gt;    CLEAR wv_cursor_0120.&lt;/P&gt;&lt;P&gt;    GET CURSOR LINE wv_cursor_0120.&lt;/P&gt;&lt;P&gt;    IF wv_cursor_0120 = 0.&lt;/P&gt;&lt;P&gt;      wv_cursor_0120 = 1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;convert the relative line of the screen to the actual line number in the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    wv_absolute_line = wv_cursor_0120 + tc_partner-top_line - 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " GET_SELECTED_LINE  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module process_partner needs to be something like this:&lt;/P&gt;&lt;P&gt;MODULE process_partner INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;only process the selected line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHECK sy-stepl = wv_cursor_0120.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 03:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659688#M292481</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-11-14T03:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected row in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659689#M292482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U will have data in internal table for the table control...Along with this u need a FLAG field in the internal table which reflects to as w/selection line in table control..Here, in table control, u can select 1 or more line items based on properties selected for TC....Once selected and on press of any key, the internal table gets triggered and based on the flag = 'X', u can do further processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 03:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659689#M292482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T03:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected row in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659690#M292483</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;Check this program-&lt;/P&gt;&lt;P&gt;SAPLSETB&lt;/P&gt;&lt;P&gt;LSETBF01&lt;/P&gt;&lt;P&gt;Below is the name of the perform of the above mentioned program&lt;/P&gt;&lt;P&gt;where u can get the code for Select all pushbutton.&lt;/P&gt;&lt;P&gt;FORM - Lift_Shift_Handler&lt;/P&gt;&lt;P&gt;When 'MARK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 04:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-row-in-a-table-control/m-p/1659690#M292483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T04:54:46Z</dc:date>
    </item>
  </channel>
</rss>

