<?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 wizard : data flush problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735806#M899092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should get something like this from the Wizard for the editable table control:&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 'TC_0400'
  MODULE TC_0400_CHANGE_TC_ATTR.
*&amp;amp;SPWIZARD: MODULE TC_0400_CHANGE_COL_ATTR.
  LOOP AT   GT_DATA
       WITH CONTROL TC_0400
       CURSOR TC_0400-CURRENT_LINE.
    MODULE TC_0400_GET_LINES.
*&amp;amp;SPWIZARD:   MODULE TC_0400_CHANGE_FIELD_ATTR
  ENDLOOP.

* MODULE STATUS_0400.
*
PROCESS AFTER INPUT.
*&amp;amp;SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_0400'
  LOOP AT GT_DATA.
    CHAIN.
      FIELD GT_DATA-FIELD1.
      FIELD GT_DATA-FIELD2.
      MODULE TC_0400_MODIFY ON CHAIN-REQUEST.  "update is here
    endchain.
  ENDLOOP.
  MODULE TC_0400_USER_COMMAND.
*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the PAI module in the loop it should modify the internal table, e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE TC_0400_MODIFY INPUT.
  MODIFY GT_DATA
    INDEX TC_0400-CURRENT_LINE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 08:09:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-22T08:09:35Z</dc:date>
    <item>
      <title>Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735803#M899089</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 using table control wizard on the screen. So the code in PBO &amp;amp; PAI is automatically generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is, when i enter 1 or more lines in the table control wizard &amp;amp; press enter, the entered data get vanished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is anyone have any solution over this? pls let me know, why this happens &amp;amp; what to do for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;useful answers wil get rewarded surely.&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 06:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735803#M899089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T06:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735804#M899090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the PAI you have to ensure the data from each row of the table control is updated into an internal table in your program, and in the PBO you need to read this internal table back into the row of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 06:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735804#M899090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735805#M899091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply. When we take table control wizard on the screen, the code is generated for it or not? do we require to do some modifications or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bcz both the modules PBO &amp;amp; PAI are having &lt;/P&gt;&lt;P&gt;loop at tc_internal_table.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;statment.&lt;/P&gt;&lt;P&gt;do we need to add something.&lt;/P&gt;&lt;P&gt;I am using only one internal table to capture &amp;amp; show the data in table control wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 06:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735805#M899091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T06:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735806#M899092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should get something like this from the Wizard for the editable table control:&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 'TC_0400'
  MODULE TC_0400_CHANGE_TC_ATTR.
*&amp;amp;SPWIZARD: MODULE TC_0400_CHANGE_COL_ATTR.
  LOOP AT   GT_DATA
       WITH CONTROL TC_0400
       CURSOR TC_0400-CURRENT_LINE.
    MODULE TC_0400_GET_LINES.
*&amp;amp;SPWIZARD:   MODULE TC_0400_CHANGE_FIELD_ATTR
  ENDLOOP.

* MODULE STATUS_0400.
*
PROCESS AFTER INPUT.
*&amp;amp;SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_0400'
  LOOP AT GT_DATA.
    CHAIN.
      FIELD GT_DATA-FIELD1.
      FIELD GT_DATA-FIELD2.
      MODULE TC_0400_MODIFY ON CHAIN-REQUEST.  "update is here
    endchain.
  ENDLOOP.
  MODULE TC_0400_USER_COMMAND.
*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the PAI module in the loop it should modify the internal table, e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE TC_0400_MODIFY INPUT.
  MODIFY GT_DATA
    INDEX TC_0400-CURRENT_LINE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 08:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735806#M899092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T08:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735807#M899093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PAI write like this,&lt;/P&gt;&lt;P&gt;loop at tc_internal_table.&lt;/P&gt;&lt;P&gt;module &lt;STRONG&gt;modify.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module modify.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modify tc_internal_table from &amp;lt;wa&amp;gt; index current_line.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;wa&amp;gt;- is the screen structure used for table control.&lt;/P&gt;&lt;P&gt;&amp;lt;tbctrl&amp;gt;- Is name of table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rengith Skariah on Apr 22, 2008 10:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 08:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735807#M899093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T08:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735808#M899094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renginath &amp;amp; Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What u have suggested is really pointing towards the solution. The code is already given by table control wizard creation. but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another thing i tried to write code like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE modify input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE tc_400 TO work_area_400.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY internal_table_400 &lt;/P&gt;&lt;P&gt;INDEX tc_400-current_line &lt;/P&gt;&lt;P&gt;FROM work_area_400. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END MODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is showing me an error as missing program/report name.&lt;/P&gt;&lt;P&gt;version i am using is ECC 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in PBO module &lt;/P&gt;&lt;P&gt;I am planning to use statment like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE work_area_400 TO tc_400.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 09:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735808#M899094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T09:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table control wizard : data flush problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735809#M899095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to tell what's happening without seeing the whole program... typically you'll have a module pool with an overall structure of includes as described in:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so the "program" statement would normally be found in your "top" include along with global data definitions etc... check that is what your code structure looks like in SE80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the sample code you provided, which variable name is your table control and which is your internal table?  If "tc_400" is the table control then you will not be updating the internal table from it as it just contains data that controls the layout and positioning of the table control, not any data within the TC itself.  In the example I provided above, "gt_data" was an internal table with a header line, and the table control columns names on the dynpro were gt_data-field1 and gt_data-field1 which is why the modify works without a separate work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 10:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-wizard-data-flush-problem/m-p/3735809#M899095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T10:31:06Z</dc:date>
    </item>
  </channel>
</rss>

