<?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 - vertical Scroller in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996244#M1163624</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;Use this code, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the names of the input/output fields as work_area-field_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need to do exactly is read the values from internal table into table control in PBO of the screen after modifying them in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Screen Logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE status_8002. "for pf-status
 
  LOOP WITH CONTROL po_tab. "po_tab is name of table control
    MODULE pass_data. "to pass data into table control from internal table
  ENDLOOP.
 
PROCESS AFTER INPUT.
  MODULE user_command_8002. "to handle other user commands (back and exit)
 
  LOOP WITH CONTROL po_tab. "po_tab is name of table control
    MODULE modify_data. "to modify data from table control into internal table
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  PASS_DATA  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE pass_data OUTPUT.
  READ TABLE it_ekpo into wa_ekpo INDEX po_tab-current_line.
  " read data from internal table into table control
  DATA : line_count TYPE i.
  
  DESCRIBE TABLE it_ekpo
  LINES line_count. "count number of records in internal table
 
  po_tab-lines = line_count + 5.
  " take 5 more lines than the number of records in internal table
  " in order to make table control scrollable
ENDMODULE.                 " PASS_DATA  OUTPUT
"it_ekpo is internal table and wa_ekpo is the work area
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  MODIFY_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE MODIFY_DATA INPUT.
  MODIFY IT_EKPO INDEX PO_TAB-CURRENT_LINE FROM WA_EKPO.
  "modify records from table control into the internal table
ENDMODULE.                 " MODIFY_DATA  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Jan 2009 05:44:09 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2009-01-11T05:44:09Z</dc:date>
    <item>
      <title>Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996238#M1163618</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 enable to activate the vertical scroller in the table control for the module pool please provide the solution with explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vishal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 12:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996238#M1163618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996239#M1163619</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;   Select PBO module status &amp;amp; click on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just you write a code after normal code as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VCONTROL-LINES = SY-DBCNT.(this will enable the table control vertical scroll bar.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normal code before above statement is(for eg.),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE WA-EBELN TO EKKO-EBELN.&lt;/P&gt;&lt;P&gt;MOVE WA-AEDAT TO EKKO-AEDAT.&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;BBR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 13:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996239#M1163619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996240#M1163620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write the below code in the PBO module before the table control loop.. endloop statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DESCRIBE TABLE &amp;lt;internal_table_name&amp;gt; LINES tablecontrolname-lines. "&amp;lt;internal_table_name&amp;gt; is the name of the internal table used for the table control
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 13:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996240#M1163620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996241#M1163621</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;write the following code in the PBO event.&lt;/P&gt;&lt;P&gt;data: line type i.&lt;/P&gt;&lt;P&gt;describe tables itab lines line.&lt;/P&gt;&lt;P&gt;tc-lines = line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where tc is the table control name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if records exceeds the physial space in table control, then only vertical control bar will be displayed. &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;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996241#M1163621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996242#M1163622</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;Have you created TC by not wizard? If yes ,go to layout of TC and click the check box of vertical separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards.&lt;/P&gt;&lt;P&gt;jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996242#M1163622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996243#M1163623</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;Select PBO module status &amp;amp; click on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just you write a code after normal code as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLECONTROLNAME-LINES = SY-DBCNT.(this will enable the table control vertical scroll bar.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normal code before above statement is(for eg.),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE WA-EBELN TO EKKO-EBELN.&lt;/P&gt;&lt;P&gt;MOVE WA-AEDAT TO EKKO-AEDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BBR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2009 06:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996243#M1163623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-10T06:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - vertical Scroller</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996244#M1163624</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;Use this code, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the names of the input/output fields as work_area-field_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need to do exactly is read the values from internal table into table control in PBO of the screen after modifying them in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Screen Logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE status_8002. "for pf-status
 
  LOOP WITH CONTROL po_tab. "po_tab is name of table control
    MODULE pass_data. "to pass data into table control from internal table
  ENDLOOP.
 
PROCESS AFTER INPUT.
  MODULE user_command_8002. "to handle other user commands (back and exit)
 
  LOOP WITH CONTROL po_tab. "po_tab is name of table control
    MODULE modify_data. "to modify data from table control into internal table
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  PASS_DATA  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE pass_data OUTPUT.
  READ TABLE it_ekpo into wa_ekpo INDEX po_tab-current_line.
  " read data from internal table into table control
  DATA : line_count TYPE i.
  
  DESCRIBE TABLE it_ekpo
  LINES line_count. "count number of records in internal table
 
  po_tab-lines = line_count + 5.
  " take 5 more lines than the number of records in internal table
  " in order to make table control scrollable
ENDMODULE.                 " PASS_DATA  OUTPUT
"it_ekpo is internal table and wa_ekpo is the work area
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  MODIFY_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE MODIFY_DATA INPUT.
  MODIFY IT_EKPO INDEX PO_TAB-CURRENT_LINE FROM WA_EKPO.
  "modify records from table control into the internal table
ENDMODULE.                 " MODIFY_DATA  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 05:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-vertical-scroller/m-p/4996244#M1163624</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-11T05:44:09Z</dc:date>
    </item>
  </channel>
</rss>

