<?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: Regarding table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335118#M1396629</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;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab with control TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;module modify_tab.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE itab LINES lin.&lt;/P&gt;&lt;P&gt;  IF tc-current_line &amp;gt; lin.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 12:38:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-27T12:38:19Z</dc:date>
    <item>
      <title>Regarding table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335117#M1396628</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 created a screen with table cotrol, i getting a problem while pressing enter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the user enters the data in the table control and presses enter the data is getting vanished..&lt;/P&gt;&lt;P&gt;please help me in doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want all the datas whatever the user is entering the table control to be shown after pressin enter also till he press save button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;sudha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335117#M1396628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335118#M1396629</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;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab with control TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;module modify_tab.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE itab LINES lin.&lt;/P&gt;&lt;P&gt;  IF tc-current_line &amp;gt; lin.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 12:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335118#M1396629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335119#M1396630</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;If what Ram suggests doesnt happen too, then you could possibly try populating your data from the internal table onto your screen fields in the PBO again. When you press Enter, the PBO is triggered where your screen fields from PAI are not retained unless you specify like what Ram has suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try repopulating your data in the PBO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 12:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335119#M1396630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335120#M1396631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_zekpo is my internal table w/o header line,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo is work area.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name of input/output fields on screen are:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo-field1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo-field2, and so on...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a button on the screen with function-code &lt;STRONG&gt;SAVE&lt;/STRONG&gt; or in the pf-status take the function code of the standard save button as &lt;STRONG&gt;SAVE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use code:-&lt;/P&gt;&lt;P&gt;At screen logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
*  MODULE status_8003.
 
  LOOP WITH CONTROL po_tab. "po_tab is table control on screen 8003
    MODULE read_data.
  ENDLOOP.
 
PROCESS AFTER INPUT.
*  MODULE user_command_8003.
 
  LOOP WITH CONTROL po_tab.
    MODULE modify_data.
  ENDLOOP.

  MODULE SAVE_DATA.
&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  READ_DATA  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE read_data OUTPUT.
  READ TABLE it_zekpo INTO wa_zekpo INDEX po_tab-current_line. "po_tab is table control name
  "to read data from internal table to the table control on screen
  DATA : line_count TYPE i.
  DESCRIBE it_zekpo LINES line_count.
  po_tab-lines = line_count + 10.
  "to increase the number of lines in table control dynamically
ENDMODULE.                 " READ_DATA  OUTPUT
&lt;/CODE&gt;&lt;/PRE&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_ZEKPO FROM WA_ZEKPO INDEX po_tab-currentline.
  "this will modify the contents of existing line
ENDMODULE.                 " MODIFY_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  SAVE_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE SAVE_DATA INPUT.

  DATA : A LIKE SY-DBCNT.
  OK_CODE = SY-UCOMM.
  CASE OK_CODE.
    WHEN 'SAVE'. "function code for SAVE button
      MODIFY ZEKPO FROM TABLE IT_ZEKPO.
      A = SY-DBCNT.
      IF SY-SUBRC = 0.
        MESSAGE S008 WITH A.
      ENDIF.
  ENDCASE.
ENDMODULE.                 " SAVE_DATA  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 05:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335120#M1396631</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-28T05:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335121#M1396632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Using..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;LOOP at IT_EKPO into WA_EKPO with table table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly while debugging put a breakpoint before this and check if the data is there in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case ur facing any problem do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nabheet Madan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 16:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/6335121#M1396632</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2009-10-28T16:23:00Z</dc:date>
    </item>
  </channel>
</rss>

