<?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 highlight a record in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359972#M1541792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am implementing search button, in which if I click on button,  there are 2 fields OD and PERNR. Now, I need to search and highlight that record in the output table control. in my workarea I am am able get the desired single record, but I am not able to highlight it. I tried to use SET CURSER wa_tab-mandt line sy-tabix.. Please help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2010 08:19:09 GMT</pubDate>
    <dc:creator>former_member16044</dc:creator>
    <dc:date>2010-10-20T08:19:09Z</dc:date>
    <item>
      <title>highlight a record in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359972#M1541792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am implementing search button, in which if I click on button,  there are 2 fields OD and PERNR. Now, I need to search and highlight that record in the output table control. in my workarea I am am able get the desired single record, but I am not able to highlight it. I tried to use SET CURSER wa_tab-mandt line sy-tabix.. Please help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 08:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359972#M1541792</guid>
      <dc:creator>former_member16044</dc:creator>
      <dc:date>2010-10-20T08:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: highlight a record in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359973#M1541793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; Have defined  SEL field i.e for row selection in table control , then  when u press the search button after find the record in internal table then set SEL field  EQ 'X'. This wiill select the searched row so it will be highlighted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then write the  Refresh table control statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 09:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359973#M1541793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T09:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: highlight a record in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359974#M1541794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to screen attribute for the table control give the line sel field any value (say 'PICK').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set this line selector variable to 'X' in PBO of the table control with below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let say you are using itab internal table for table control then define this internal tbale as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0, &lt;/P&gt;&lt;P&gt;        PICK.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE (structure refered for table control).&lt;/P&gt;&lt;P&gt;DATA END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see we have added the column PICK in the internal table also which we have given for table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you must have coded for handling the search option and you got the particular searched record, modify PICK='X' for&lt;/P&gt;&lt;P&gt;this record in your internal table.So now you will have the searched value marked 'X' your table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And modify PBO of table control as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop with control &amp;lt;tabcntrl&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module highlight.&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;then Module highlight will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module highlight.&lt;/P&gt;&lt;P&gt;READ itab INDEX &amp;lt;tabcntrl&amp;gt;-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;if itab-PICK = 'X'.&lt;/P&gt;&lt;P&gt;    loop at screen.	&lt;/P&gt;&lt;P&gt;      screen-intensified = 1. or use (screen-color variable).&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.	&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;Or to simply place a cursor use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CURSOR LINE (and give index here) , i think you have not used the proper set cursor statement please check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 09:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359974#M1541794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T09:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: highlight a record in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359975#M1541795</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 agree with madhukar shetty.&lt;/P&gt;&lt;P&gt;use the sel column functionality of table control it will be easier.in that you can use multiple select also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 09:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359975#M1541795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: highlight a record in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359976#M1541796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Madhukar for the concern. But, I am using the with selct option in tab-control already. when I try to refresh using REFRESH CONTROL ctrl_name FROM SCREEN 9000, its a sytactical error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 12:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-a-record-in-table-control/m-p/7359976#M1541796</guid>
      <dc:creator>former_member16044</dc:creator>
      <dc:date>2010-10-20T12:07:03Z</dc:date>
    </item>
  </channel>
</rss>

