<?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: Problem in setting the cursor in table control MPP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608708#M1569103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for your reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to include that in my program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify tbc_ctrl from wa.. "like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please correct me if i am wrong..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Viswa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 12:50:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-27T12:50:16Z</dc:date>
    <item>
      <title>Problem in setting the cursor in table control MPP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608706#M1569101</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 giving find (ctrl+f) option in table control abap as follows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if SY-ucomm eq 'FIND'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear:mline.&lt;/P&gt;&lt;P&gt;    refresh tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tab-tabname = 'ZFID_COD_FOD'.&lt;/P&gt;&lt;P&gt;    tab-fieldname = 'C_NOTE_NO'.&lt;/P&gt;&lt;P&gt;    tab-value = ''.&lt;/P&gt;&lt;P&gt;    append tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'POPUP_GET_VALUES'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        popup_title  = 'FIND'&lt;/P&gt;&lt;P&gt;        start_column = '1'&lt;/P&gt;&lt;P&gt;        start_row    = '1'&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        fields       = tab.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    loop at tab where value is not initial.&lt;/P&gt;&lt;P&gt;      read table it_codfod into wa_codfod&lt;/P&gt;&lt;P&gt;                       with key c_note_no = tab-value.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        mline = sy-tabix.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above code is working fine to get the position of the search field into mline(local field)..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set cursor field 'WA_CODFOD-C_NOTE_NO' line mline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By using above code i am trying to place the cursor at specific line(mline).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now my problem is if table control is like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;page up  page down (buttons)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i search bet'n 1-5 for ex 3 it's finding the position as 3 and placing the cursor at 3rd row correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i search for 7 it's finding the position as 7 and it's faling to place the cursor at 7th row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please any body help me to solve above issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Viswa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608706#M1569101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting the cursor in table control MPP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608707#M1569102</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;always modify the Cursor by top line when you trying to use set cursur or get cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting the cursor line in Table Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  get cursor field selfield line selline.&lt;/P&gt;&lt;P&gt;  selindex = tc_batch-top_line + selline - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the cursor line in Table Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; selindex = tc_batch-top_line + selline - 1.&lt;/P&gt;&lt;P&gt; set cursor field 'WA_CODFOD-C_NOTE_NO' line mline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608707#M1569102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting the cursor in table control MPP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608708#M1569103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for your reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to include that in my program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify tbc_ctrl from wa.. "like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please correct me if i am wrong..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Viswa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608708#M1569103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting the cursor in table control MPP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608709#M1569104</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;PRE&gt;&lt;CODE&gt;set cursor field 'WA_CODFOD-C_NOTE_NO' line mline.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of MLINE can be from 1 and N, where N is the number of the lines shown in the table control, so if your table control can display 5 line, MLINE will be from 1 to 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you need to create the link between the line of the table control and the line of internal table, the rule is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table Line = &amp;lt;table control&amp;gt;-TOP_LINE + &amp;lt;table control line&amp;gt; - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 13:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608709#M1569104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T13:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting the cursor in table control MPP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608710#M1569105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks prabhu &amp;amp; Max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem has been solved with your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;viswa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 13:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-setting-the-cursor-in-table-control-mpp/m-p/7608710#M1569105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T13:20:55Z</dc:date>
    </item>
  </channel>
</rss>

