<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860675#M927882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was faced same problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur PBO you are filling internal table each and eavey time and problem is only that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after press enter ur PAI was called. and then after PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO ur Internal table again filled with default value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to stop that thing you have to use flag variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after filling that you have to set taht flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still there is any problem . reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards must if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2008 10:15:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-19T10:15:56Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860674#M927881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I desined a table control having check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once i execute i got complete record from ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when select checkbox. and re-press, enter&lt;/P&gt;&lt;P&gt;all the checkbox clear automatically. I have not used refresh or clear anywhere in SE38 Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest. How to resolve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860674#M927881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860675#M927882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was faced same problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur PBO you are filling internal table each and eavey time and problem is only that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after press enter ur PAI was called. and then after PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO ur Internal table again filled with default value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to stop that thing you have to use flag variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after filling that you have to set taht flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still there is any problem . reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards must if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 10:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860675#M927882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860676#M927883</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 will explain with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Process Before Output.
loop at it_table into wa_table with control tc_ctrl.
endloop.

Process After Input.
Loop at it_table.
Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the above code. Here tc_ctrl is the table control. it_table is the internal table containing your data. And the table control has 3 fields named wa_table-field1, wa_table-field2, wa_table-field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of PBO and PAI is to transfer the values between the ABAP program and the screen elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are checking the checkbox in the screen the value will be stored in wa_table-field1 (I take this as the field having checkbox). After this, if you press Enter, first PAI will be called. then your PBO. So the screen will again be refreshed from the values in your table it_table in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order to save your changes, you need to add a module in your PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Process After Input.
Loop at it_table.
Module update_table.
Endloop.

* Shoule be written in a PAI Include program.
Module update_table INPUT.
modify it_table from wa_table. "This moves the chages from screen variables to internal table
Endmodule.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the PBO reads the data from internal table, the check box will be checked in the screen again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 10:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3860676#M927883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T10:29:38Z</dc:date>
    </item>
  </channel>
</rss>

