<?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: Cursur position in Table control. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293177#M1220933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please search the CODE GALLERY with &lt;STRONG&gt;Insertion of data from Table Control to Database table&lt;/STRONG&gt; You will get a code.........try to utilize it.&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, 16 Mar 2009 14:06:42 GMT</pubDate>
    <dc:creator>sarbajitm</dc:creator>
    <dc:date>2009-03-16T14:06:42Z</dc:date>
    <item>
      <title>Cursur position in Table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293174#M1220930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the table contol to enter the data,&lt;/P&gt;&lt;P&gt;TC is having 5 Rows and 3 cols, After enter the data in first row I will press Enter key then cursur will come into second row first column, which is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After compliting the total 5 rows ( displayed 5 rows ) if I press the Enter Key the cursur is going to top row, it should come to next line ( I mean to 6th row we can say page down )&lt;/P&gt;&lt;P&gt;I am using the below logic in my PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA lv_line11 LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gt_scr200 LINES lv_line11.&lt;/P&gt;&lt;P&gt;  SET CURSOR FIELD 'WA_SCR200-ZZID' LINE lv_line11.&lt;/P&gt;&lt;P&gt;gt_scr200 is my Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know to to make the cursur position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 12:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293174#M1220930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cursur position in Table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293175#M1220931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_cursor = lv_line11 + 1.&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD 'WA_SCR200-ZZID' LINE lv_cursor.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 12:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293175#M1220931</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-03-16T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cursur position in Table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293176#M1220932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THis may help you,&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="217552"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 12:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293176#M1220932</guid>
      <dc:creator>siddhesh_pathak4</dc:creator>
      <dc:date>2009-03-16T12:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cursur position in Table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293177#M1220933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please search the CODE GALLERY with &lt;STRONG&gt;Insertion of data from Table Control to Database table&lt;/STRONG&gt; You will get a code.........try to utilize it.&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, 16 Mar 2009 14:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293177#M1220933</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-16T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cursur position in Table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293178#M1220934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, TC is dispaling only 5 rows, so the top one is the 1st one. Whenever you want to "page down" you have to scroll your tc, setting new &lt;STRONG&gt;top_line&lt;/STRONG&gt; field number.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"in screen flow logic
PROCESS AFTER INPUT.
     Loop at gt_scr200.
        MODULE some_module.
     Endloop.

"in ABAP program 
MODULE some_module INPUT.
    if lv_line11 = sy-loopc.   "if last displayed line reached.
      ADD sy-loopc TO tc_structure-top_line.    "scroll down, setting new top line 
      ADD sy-stepl TO lv_line11.    "set current line as the new top line
    endif.

   SET CURSOR FIELD 'WA_SCR200-ZZID' LINE lv_line11. "set cursor at new position (in 6th row )
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should suffice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 14:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursur-position-in-table-control/m-p/5293178#M1220934</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-03-16T14:40:12Z</dc:date>
    </item>
  </channel>
</rss>

