<?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 Saving Ztable using Module Pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598656#M866693</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 want to save the entries into a Ztable using Module pool programming.. I want the Module Pool Program to work like the SM30 table maintenance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now.. I have 2 module pool screen on the screen... one which displays the entries of Ztable and the other which is an input enabled screen so that I can enter records into it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I save the records the Ztable should get updated and when the screen again comes to PBO the enetered records should be displayed in the first table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am stuck here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
* MODULE STATUS_0001.r45
MODULE FILL_TABLE.
LOOP AT TBL_ZTVM3 into wa_ztvm3 WITH CONTROL TC1 CURSOR TC1-TOP_LINE.
ENDLOOP.

LOOP AT TBL2_ZTVM3 into ztvm3 WITH CONTROL TC2 CURSOR TC2-TOP_LINE.
ENDLOOP.

*
PROCESS AFTER INPUT.
LOOP AT TBL_ZTVM3.
ENDLOOP.

LOOP AT TBL2_ZTVM3.
ENDLOOP.

MODULE USER_COMMAND_0001.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user command goes like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;  Include           YENTRIES_ZTABLE_I01
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0001  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0001 INPUT.

CASE SY-ucomm.
when 'SAVE'.
modify tbl2_ztvm3 from wa2_ztvm3 INDEX TC2-CURRENT_LINE.
ENDCASE.

ENDMODULE.                 " USER_COMMAND_0001  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO quite a simple code.. but after 1 year I just lost touch with this.. I have defined the Selection Column check rows too for the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with this.. I &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 27, 2008 1:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 16:34:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T16:34:48Z</dc:date>
    <item>
      <title>Saving Ztable using Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598656#M866693</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 want to save the entries into a Ztable using Module pool programming.. I want the Module Pool Program to work like the SM30 table maintenance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now.. I have 2 module pool screen on the screen... one which displays the entries of Ztable and the other which is an input enabled screen so that I can enter records into it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I save the records the Ztable should get updated and when the screen again comes to PBO the enetered records should be displayed in the first table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am stuck here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
* MODULE STATUS_0001.r45
MODULE FILL_TABLE.
LOOP AT TBL_ZTVM3 into wa_ztvm3 WITH CONTROL TC1 CURSOR TC1-TOP_LINE.
ENDLOOP.

LOOP AT TBL2_ZTVM3 into ztvm3 WITH CONTROL TC2 CURSOR TC2-TOP_LINE.
ENDLOOP.

*
PROCESS AFTER INPUT.
LOOP AT TBL_ZTVM3.
ENDLOOP.

LOOP AT TBL2_ZTVM3.
ENDLOOP.

MODULE USER_COMMAND_0001.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user command goes like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;  Include           YENTRIES_ZTABLE_I01
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0001  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0001 INPUT.

CASE SY-ucomm.
when 'SAVE'.
modify tbl2_ztvm3 from wa2_ztvm3 INDEX TC2-CURRENT_LINE.
ENDCASE.

ENDMODULE.                 " USER_COMMAND_0001  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO quite a simple code.. but after 1 year I just lost touch with this.. I have defined the Selection Column check rows too for the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with this.. I &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 27, 2008 1:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 16:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598656#M866693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T16:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Ztable using Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598657#M866694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I get it, but you mean updating the Z table on the data dictionary from the data you've changed on the internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the point, you'll have to use the MODIFY this way, just after updating your internal table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODIFY &amp;lt;dtable&amp;gt; FROM TABLE &amp;lt;itable&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 16:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598657#M866694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Ztable using Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598658#M866695</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;Question still open.. I mean to say how do I read the values which are entered into the Table Control 2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are they stored... please post sample code if you have it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598658#M866695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Ztable using Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598659#M866696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IN PAI of the Module flow logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to modify the internal table with the modified content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
  MODULE EXIT AT EXIT-COMMAND.
  MODULE CHECK_PAI.
  LOOP WITH CONTROL TC. 
    MODULE MODIFY_DATA. 
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN side the MODIFY_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to update the Internal table with the modified content. then your internal table will have the latest Information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You save the latest information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598659#M866696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Ztable using Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598660#M866697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost done, thanks for the code sample.. I searched for this command in forums and got the required help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 12:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-ztable-using-module-pool/m-p/3598660#M866697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T12:11:03Z</dc:date>
    </item>
  </channel>
</rss>

