<?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: table control top line problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154943#M993469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 13:22:02 GMT</pubDate>
    <dc:creator>darren_bambrick2</dc:creator>
    <dc:date>2008-07-16T13:22:02Z</dc:date>
    <item>
      <title>table control top line problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154938#M993464</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 have a problem with a table control and setting cursors and the top line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 10 lines and only 4 are visible at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I scan a material and i set the cursor to the field where the user can enter a quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem arises when the material I scan is not in the first four visible items of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the material is item 8, I do a scan, i set the top line of the table control to the material index in the pai and then in the pbo&lt;/P&gt;&lt;P&gt;i set the cursor field to line 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The top line is set correctly but the cursor field is not set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use set cursor &amp;lt;fieldname&amp;gt; line &amp;lt;line No&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 15:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154938#M993464</guid>
      <dc:creator>darren_bambrick2</dc:creator>
      <dc:date>2008-07-15T15:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: table control top line problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154939#M993465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your eight record is now on the first line, so you need to set LINE 1 in the Set Cursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
set cursor &amp;lt;fieldname&amp;gt; line 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 15:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154939#M993465</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-07-15T15:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: table control top line problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154940#M993466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nimesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It didn't work for me, the cursor remains in the barcode for the material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI I set the top line to the item index.  &lt;/P&gt;&lt;P&gt;In the Pbo is set the cursor field to line 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE status_0200.&lt;/P&gt;&lt;P&gt;  MODULE tab_output_change_tc_attr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT   tbl_items&lt;/P&gt;&lt;P&gt;       WITH CONTROL tab_output&lt;/P&gt;&lt;P&gt;       CURSOR tab_output-current_line.&lt;/P&gt;&lt;P&gt;    module save_index.&lt;/P&gt;&lt;P&gt;    MODULE tab_output_get_lines.&lt;/P&gt;&lt;P&gt;    module set_line_enabled_status.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE init_0200.&lt;/P&gt;&lt;P&gt; MODULE set_cursor_field.  " this is where i set my cursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;MODULE set_cursor_field&lt;/P&gt;&lt;P&gt;   IF p_line &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      IF p_line &amp;gt; 4.&lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD cursorfield LINE 1.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD cursorfield LINE p_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SET CURSOR FIELD 'P_MATNR'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF p_line &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      IF p_line &amp;gt; 4.&lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD cursorfield LINE 1.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD cursorfield LINE p_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SET CURSOR FIELD 'P_MATNR'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 15:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154940#M993466</guid>
      <dc:creator>darren_bambrick2</dc:creator>
      <dc:date>2008-07-15T15:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: table control top line problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154941#M993467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone got any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 09:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154941#M993467</guid>
      <dc:creator>darren_bambrick2</dc:creator>
      <dc:date>2008-07-16T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: table control top line problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154942#M993468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe your coding is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to set the record you have selected (scan) always&lt;/P&gt;&lt;P&gt;on the top of the table control than you can set the cursor &lt;/P&gt;&lt;P&gt;fix on line 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but please do it like this in PBO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: ZEILE(6) TYPE N.

 ZEILE = 1.

 SET CURSOR FIELD 'ITAB-FELD3' LINE ZEILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154942#M993468</guid>
      <dc:creator>former_member216100</dc:creator>
      <dc:date>2008-07-16T10:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: table control top line problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154943#M993469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 13:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-top-line-problem/m-p/4154943#M993469</guid>
      <dc:creator>darren_bambrick2</dc:creator>
      <dc:date>2008-07-16T13:22:02Z</dc:date>
    </item>
  </channel>
</rss>

