<?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: Highlight row in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629726#M874309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for your reply. It was really helpful. One of my mistakes was that I was doing the processing for checking duplicate states outside the loop &lt;DEL&gt;- endloop in the PAI and not within loop&lt;/DEL&gt;-endloop. Have rewarded the answer with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tessy Vadakel on Apr 4, 2008 9:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2008 19:23:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-04T19:23:57Z</dc:date>
    <item>
      <title>Highlight row in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629724#M874307</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 in which the user is able to enter States. If the User has entered a duplicate state, eg, NY,NY, an error needs to be issued alerting him of the fact and one of the rows corresponding to the duplicate state needs to be highlighted(selected) so that the user can go ahead and delete that duplicate row.&lt;/P&gt;&lt;P&gt;The problem I'm facing is after the error message is issued, how do I get the row to be selected?&lt;/P&gt;&lt;P&gt;Your answers would be appreciated.&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, 02 Apr 2008 22:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629724#M874307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T22:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629725#M874308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tessy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the multiple selections on the screen?&lt;/P&gt;&lt;P&gt;i.e...i am referring is an option where user can select multiple lines/single lines on table control&lt;/P&gt;&lt;P&gt;in the screen painter..there is an option for multiple/single selections..and then you can assign a name to it like W_SEL&lt;/P&gt;&lt;P&gt;Then in the internal table you have displayed on the screen there should be a field of length 1 type character(W_SEL type C.)&lt;/P&gt;&lt;P&gt;if the following is the internal table with 2 fields..to do the select the declaration should be like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of ty_screentable,&lt;/P&gt;&lt;P&gt;         w_sel type c,&lt;/P&gt;&lt;P&gt;         field1 type XXX,&lt;/P&gt;&lt;P&gt;         field2 type YYY,&lt;/P&gt;&lt;P&gt;         end of ty_screntable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: int_screentab type table of ty_screentable.&lt;/P&gt;&lt;P&gt;data: wa_screentab type ty_screentable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you create a screen painter&lt;/P&gt;&lt;P&gt;the table control screen contains fields...&lt;/P&gt;&lt;P&gt;int_screentab-w_sel ,int_screentab-field1,int_screentab-field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are looping at the screen with control in PBO&lt;/P&gt;&lt;P&gt;in PAI....&lt;/P&gt;&lt;P&gt;loop at internal table &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so in PAI..when you realise that you have multiple entries...set the field = 'X'  and update the internal table by modifying the current line.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write logic to find duplicates..when u find the duplicate record..&lt;/STRONG&gt;l&lt;/P&gt;&lt;P&gt;loop at the internal table..&lt;/P&gt;&lt;P&gt;if this is a duplicate record..&lt;/P&gt;&lt;P&gt;wa_screentab-w_sel ='X'..&lt;/P&gt;&lt;P&gt;modify internal table from workarea transporting&lt;/P&gt;&lt;P&gt;w_sel....&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;/P&gt;&lt;P&gt;Please check and revert&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 03:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629725#M874308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T03:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629726#M874309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for your reply. It was really helpful. One of my mistakes was that I was doing the processing for checking duplicate states outside the loop &lt;DEL&gt;- endloop in the PAI and not within loop&lt;/DEL&gt;-endloop. Have rewarded the answer with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tessy Vadakel on Apr 4, 2008 9:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 19:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629726#M874309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T19:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629727#M874310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thre..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;CONTROLS .&lt;/P&gt;&lt;P&gt;&lt;/P&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;u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.&lt;/P&gt;&lt;P&gt;Go through this urls.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.saptechnical.com" target="test_blank"&gt;www.saptechnical.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com" target="test_blank"&gt;www.sap-img.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links.&lt;/P&gt;&lt;P&gt;just refer to the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/tablecontrol_sap.html" target="test_blank"&gt;http://www.sapmaterial.com/tablecontrol_sap.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;step by step procedure with screen shots &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/howdo_a.htm" target="test_blank"&gt;http://www.planetsap.com/howdo_a.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id25.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id25.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can see the below examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to se38 and give demo&lt;STRONG&gt;dynpro&lt;/STRONG&gt; and press F4.&lt;/P&gt;&lt;P&gt;YOu will get a list of demo module pool programs.&lt;/P&gt;&lt;P&gt;One more T-Code is ABAPDOCU.&lt;/P&gt;&lt;P&gt;YOu can find more examples there.&lt;/P&gt;&lt;P&gt;See the prgrams:&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2008 16:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/highlight-row-in-table-control/m-p/3629727#M874310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-06T16:25:37Z</dc:date>
    </item>
  </channel>
</rss>

