<?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: VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007553#M1165760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the below the code snippet... table_control is the name of the TableControl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module STATUS_1000 output.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'BEN_MENU'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: lin type i.&lt;/P&gt;&lt;P&gt;  PERFORM AUTO_EMPID.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_all LINES lin.&lt;/P&gt;&lt;P&gt;  table_control-lines = lin.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_1000  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jan 2009 14:10:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-10T14:10:57Z</dc:date>
    <item>
      <title>VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007550#M1165757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a trouble with my table control when i want to scroll down. My table control is for input data and when i fill the rows in my tc and then i scroll down, the data i filled is cleared. I have this in my PBO: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
*&amp;amp;SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TAB_CTRL_FICHA'
  MODULE TAB_CTRL_FICHA_CHANGE_TC_ATTR.
  
*&amp;amp;SPWIZARD: MODULE TAB_CTRL_FICHA_CHANGE_COL_ATTR.
  LOOP AT   I_FICHA
       WITH CONTROL TAB_CTRL_FICHA
       CURSOR TAB_CTRL_FICHA-CURRENT_LINE.
*&amp;amp;SPWIZARD:   MODULE TAB_CTRL_FICHA_CHANGE_FIELD_ATTR
  MODULE G_CTRL_FICHA_GET_LINES.
  ENDLOOP.

MODULE G_CTRL_FICHA_GET_LINES OUTPUT.
"G_TCTRL_LINES = SY-LOOPC.
 TAB_CTRL_FICHA-LINES = 90.
TAB_CTRL_FICHA-V_SCROLL = 'X'.
ENDMODULE.                 " G_CTRL_FICHA_GET_LINES  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this happen when i change of tab. How can i mantain the data in my table control when i scroll down or navigate on the tabs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Danyel Ramírez..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 11:01 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Danyel  Ramírez on Jan 8, 2009 5:04 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 16:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007550#M1165757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007551#M1165758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your table control is for input data &lt;/P&gt;&lt;P&gt;and when u fill the rows in  tc  and scroll down&lt;/P&gt;&lt;P&gt;pai is called&lt;/P&gt;&lt;P&gt;save the data in PAI and not in PBO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 16:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007551#M1165758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007552#M1165759</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;&lt;/P&gt;&lt;P&gt; try this code during code:&lt;/P&gt;&lt;P&gt;&lt;/P&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:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007552#M1165759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-10T06:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007553#M1165760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the below the code snippet... table_control is the name of the TableControl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module STATUS_1000 output.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'BEN_MENU'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: lin type i.&lt;/P&gt;&lt;P&gt;  PERFORM AUTO_EMPID.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_all LINES lin.&lt;/P&gt;&lt;P&gt;  table_control-lines = lin.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_1000  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2009 14:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007553#M1165760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-10T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007554#M1165761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Try include this code in PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;module modify_tab&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program&lt;/P&gt;&lt;P&gt;module modify_tab&lt;/P&gt;&lt;P&gt;describe table itab lines tc-liens&lt;/P&gt;&lt;P&gt;if tc-current_line &amp;gt; tc-lines&lt;/P&gt;&lt;P&gt;append itab&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;modify itab index tc-current_line&lt;/P&gt;&lt;P&gt;endmodule&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2009 17:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007554#M1165761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-10T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: VERTICAL SCROLLING PROBLEM IN TABLE CONTROL FOR INPUT DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007555#M1165762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danyel,&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;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
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:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vertical-scrolling-problem-in-table-control-for-input-data/m-p/5007555#M1165762</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-11T05:20:09Z</dc:date>
    </item>
  </channel>
</rss>

