<?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 Automatic Page down in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311850#M793215</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 the below requirement. I require a table control where the data is input using a barcode scanner. The requirement is after the last line is entered the table control should have an automatic page down. Could anyone please help me if i can do this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 14:53:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T14:53:20Z</dc:date>
    <item>
      <title>Automatic Page down in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311850#M793215</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 the below requirement. I require a table control where the data is input using a barcode scanner. The requirement is after the last line is entered the table control should have an automatic page down. Could anyone please help me if i can do this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 14:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311850#M793215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Page down in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311851#M793216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this code in PAI of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    WHEN 'P--' OR                     "top of list
         'P-'  OR                     "previous page
         'P+'  OR                     "next page
         'P++'.                       "bottom of list
      PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
                                            L_OK.

*-BEGIN OF LOCAL DATA--------------------------------------------------*
  DATA L_TC_NEW_TOP_LINE     TYPE I.
  DATA L_TC_NAME             LIKE FELD-NAME.
  DATA L_TC_LINES_NAME       LIKE FELD-NAME.
  DATA L_TC_FIELD_NAME       LIKE FELD-NAME.

  FIELD-SYMBOLS &amp;lt;TC&amp;gt;         TYPE CXTAB_CONTROL.
  FIELD-SYMBOLS &amp;lt;LINES&amp;gt;      TYPE I.
*-END OF LOCAL DATA----------------------------------------------------*
*  DESCRIBE TABLE IT_TC01 LINES G_TC01_LINES.
  ASSIGN (P_TC_NAME) TO &amp;lt;TC&amp;gt;.
* get looplines of TableControl
  CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
  ASSIGN (L_TC_LINES_NAME) TO &amp;lt;LINES&amp;gt;.

*  &amp;lt;TC&amp;gt;-LINES = G_TC01_LINES.
* is no line filled?                                                   *
  IF &amp;lt;TC&amp;gt;-LINES = 0.
*   yes, ...                                                           *
    L_TC_NEW_TOP_LINE = 1.
  ELSE.
*   no, ...                                                            *
    CALL FUNCTION 'SCROLLING_IN_TABLE'
         EXPORTING
              ENTRY_ACT             = &amp;lt;TC&amp;gt;-TOP_LINE
              ENTRY_FROM            = 1
              ENTRY_TO              = &amp;lt;TC&amp;gt;-LINES
              LAST_PAGE_FULL        = 'X'
              LOOPS                 = &amp;lt;LINES&amp;gt;
              OK_CODE               = P_OK
              OVERLAPPING           = 'X'
         IMPORTING
              ENTRY_NEW             = L_TC_NEW_TOP_LINE
         EXCEPTIONS
*              NO_ENTRY_OR_PAGE_ACT  = 01
*              NO_ENTRY_TO           = 02
*              NO_OK_CODE_OR_PAGE_GO = 03
              OTHERS                = 0.
  ENDIF.

* get actual tc and column                                             *
  GET CURSOR FIELD L_TC_FIELD_NAME
             AREA  L_TC_NAME.

  IF SYST-SUBRC = 0.
    IF L_TC_NAME = P_TC_NAME.
*     set actual column                                                *
      SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
    ENDIF.
  ENDIF.

* set the new top line                                                 *
  &amp;lt;TC&amp;gt;-TOP_LINE = L_TC_NEW_TOP_LINE.


ENDFORM.                              " COMPUTE_SCROLLING_IN_TC

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 14:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311851#M793216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Page down in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311852#M793217</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;Would the code you mentioned get triggered automatically without page down or page up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 15:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311852#M793217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Page down in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311853#M793218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pradeep &lt;/P&gt;&lt;P&gt;if u got the answer for ur question can u please tell me,even i am having same requirement.&lt;/P&gt;&lt;P&gt;Rgds.&lt;/P&gt;&lt;P&gt;mngowda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-page-down-in-table-control/m-p/3311853#M793218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:50:33Z</dc:date>
    </item>
  </channel>
</rss>

