<?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 MODULE POOL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708732#M1106234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rasheed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Data is getting refreshed because once you click the save button the control again goes back to the PBO of the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For avoiding this follow the code given below.&lt;/P&gt;&lt;P&gt;*********************Inside PBO ******* &lt;/P&gt;&lt;P&gt;module SELECT output.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if var = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB_BOOK LINES V_NUM.&lt;/P&gt;&lt;P&gt;TABCON-LINES = V_NUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE EQ 'Z754BOOK_DISPLAY' OR SY-TCODE EQ 'Z754BOOK_CHANGE' .&lt;/P&gt;&lt;P&gt; SELECT * FROM Z101754SBOOKDETL INTO CORRESPONDING FIELDS OF table ITAB_BOOK.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WHERE BOOKID = Z101754SBOOKHDR-BOOKID.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;APPEND ITAB_BOOK .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************Inside PAI  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  MODIFY  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module MODIFY input.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var = 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB_BOOK from wa_itab_book INDEX TABCON-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " MODIFY  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point in here is you need to declare a variable which should prevent the control to go back again to the PBO once the Save button is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 09:29:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-29T09:29:06Z</dc:date>
    <item>
      <title>TABLE CONTROL IN MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708731#M1106233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am very much new to module pool.I designed a screen in module pool.which has header data and item data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the user hits save button all the data which i enter should save in z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current problem is after giving the data.when i hit save button data is geting refreshed and unable to get the data i entered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;&amp;lt;removed by moderator&amp;gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rasheed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 08:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708731#M1106233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T08:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL IN MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708732#M1106234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rasheed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Data is getting refreshed because once you click the save button the control again goes back to the PBO of the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For avoiding this follow the code given below.&lt;/P&gt;&lt;P&gt;*********************Inside PBO ******* &lt;/P&gt;&lt;P&gt;module SELECT output.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if var = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB_BOOK LINES V_NUM.&lt;/P&gt;&lt;P&gt;TABCON-LINES = V_NUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE EQ 'Z754BOOK_DISPLAY' OR SY-TCODE EQ 'Z754BOOK_CHANGE' .&lt;/P&gt;&lt;P&gt; SELECT * FROM Z101754SBOOKDETL INTO CORRESPONDING FIELDS OF table ITAB_BOOK.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WHERE BOOKID = Z101754SBOOKHDR-BOOKID.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;APPEND ITAB_BOOK .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************Inside PAI  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  MODIFY  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module MODIFY input.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var = 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB_BOOK from wa_itab_book INDEX TABCON-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " MODIFY  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point in here is you need to declare a variable which should prevent the control to go back again to the PBO once the Save button is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708732#M1106234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL IN MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708733#M1106235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the below lines have you set your workareas to tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;Workarea&amp;gt; TO &amp;lt;workarea of table&amp;gt;.&lt;/P&gt;&lt;P&gt;      INSERT INTO &amp;lt;tablename&amp;gt; VALUES &amp;lt;workarea of table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 11:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708733#M1106235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T11:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL IN MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708734#M1106236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dbac1d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dbac1d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to this link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 13:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-module-pool/m-p/4708734#M1106236</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-10-29T13:02:09Z</dc:date>
    </item>
  </channel>
</rss>

