<?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: Set the cursor on table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915403#M57991</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;&lt;/P&gt;&lt;P&gt;Check this link for sample code for Table Control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abap&lt;/A&gt;&lt;EM&gt;Code&lt;/EM&gt;Samples/Table&lt;EM&gt;Control&lt;/EM&gt;in+ABAP.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm" target="test_blank"&gt;http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="412553"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2005 08:10:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-31T08:10:44Z</dc:date>
    <item>
      <title>Set the cursor on table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915402#M57990</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 trying to create a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of table control is fine and i can update and save the records..But i am facing some strange problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i close my program and rerun it, the Cursor will be position on the default field of last run. &lt;/P&gt;&lt;P&gt;How can we position the cursor on table control..Say to a particular row or columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i am not able to interpret the meaning of &lt;/P&gt;&lt;P&gt;Loop at itab with control control name cursor top_line/current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this means that if you use top_line, cursor will be placed at the top line and when you use current_line , it will be placed at current line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Miesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 07:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915402#M57990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T07:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set the cursor on table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915403#M57991</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;&lt;/P&gt;&lt;P&gt;Check this link for sample code for Table Control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abap&lt;/A&gt;&lt;EM&gt;Code&lt;/EM&gt;Samples/Table&lt;EM&gt;Control&lt;/EM&gt;in+ABAP.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm" target="test_blank"&gt;http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="412553"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 08:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915403#M57991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T08:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set the cursor on table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915404#M57992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well you yourself gave answer to your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you want to put cursor on particular row you can do that by assinging value postion to the table control line. also refresh any sy-index or sy-tabix field value on internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else using the statement given by u will also suffice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH TC CURSOR TC-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anything else do post back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 08:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915404#M57992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T08:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set the cursor on table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915405#M57993</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;If i try to set the cursor in loop..endloop, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say for eg, i use top_line, cursor will be at the first line.&lt;/P&gt;&lt;P&gt;if i use current_line , cursor will be at which line then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time my PAI event is fired, it wont be set to the specific field i want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try placing the cursor on second field/column. You come out of program, and then when you run the program again, the cursor is on the same field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also help to explain this, its new to me..&lt;/P&gt;&lt;P&gt;"refresh any sy-index or sy-tabix field value on internal table."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 09:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915405#M57993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T09:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set the cursor on table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915406#M57994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In PAI if you are suing current line inside the loop as below,it will take every line once it is processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_makt.&lt;/P&gt;&lt;P&gt;     FIELD i_makt-zmatnr MODULE zmatnr .&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;MODULE zmatnr INPUT.&lt;/P&gt;&lt;P&gt;  MODIFY i_makt INDEX t_ctrl-current_line.&lt;/P&gt;&lt;P&gt;  IF t_ctrl-current_line GT ln.&lt;/P&gt;&lt;P&gt;    READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting record if it does not exist in database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      APPEND i_makt.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;     MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " zmatnr  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 09:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915406#M57994</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-31T09:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set the cursor on table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915407#M57995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maintaining the "Cursor position" in the screen layout in Attributes tab with the field name that you want the default cursor position to be present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shri Hari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 19:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-the-cursor-on-table-control/m-p/915407#M57995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T19:05:36Z</dc:date>
    </item>
  </channel>
</rss>

