<?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: Module pool report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043059#M720253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check these links&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap.html" target="test_blank"&gt;http://sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap.htm" target="test_blank"&gt;http://www.sap-img.com/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com" target="test_blank"&gt;http://www.sap-img.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/" target="test_blank"&gt;http://www.sap-img.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/applet.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/applet.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have a look at these good links-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap09/" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap09/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/abap-00/" target="test_blank"&gt;http://sap.mis.cmich.edu/abap-00/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/links/abap.htm" target="test_blank"&gt;http://www.sapgenie.com/links/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/example_code.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/example_code.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/default.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/default.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/spmp.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/spmp.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap.html" target="test_blank"&gt;http://sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap.htm" target="test_blank"&gt;http://www.sap-img.com/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/" target="test_blank"&gt;http://www.sap-img.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/faq/faqdiapr.pdf" target="test_blank"&gt;http://www.sappoint.com/faq/faqdiapr.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/example_code.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/example_code.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/links/abap.htm" target="test_blank"&gt;http://www.sapgenie.com/links/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Painter&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menu Painter&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Table Control Creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Screen tables&lt;/P&gt;&lt;P&gt;A table can be created in transaction. These tables, when designed on the screen are called as SCREEN TABLES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are of two types.&lt;/P&gt;&lt;P&gt;Table Controls and Step loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tables are treated as Loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Features of Table Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is displayed in the form of table.&lt;/P&gt;&lt;P&gt;Table control gives user the feeling of an actual table.&lt;/P&gt;&lt;P&gt;You can scroll through the table vertically as well as horizontally.&lt;/P&gt;&lt;P&gt;You can select rows and columns.&lt;/P&gt;&lt;P&gt;You can resize the with of columns.&lt;/P&gt;&lt;P&gt;You can have separator lines between rows and columns.&lt;/P&gt;&lt;P&gt;Automatic resizing of the table when the user resizes the window.&lt;/P&gt;&lt;P&gt;You can update information in the table control and it can be updated in the database table by writing code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Steps for creating table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration of table control in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Designing of table controls on the screen.&lt;/P&gt;&lt;P&gt;Passing data to table control in flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Declaration of TC in MPP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls &amp;lt;name of table control&amp;gt; type tableview using screen &amp;lt;&amp;#129;escreen no.&amp;#129;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)Designing Table control on screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on Table in Control bar and place it on the screen. You can adjust the length and width of the Table Control.&lt;/P&gt;&lt;P&gt;Name the table control.(same name as given in data declaration).&lt;/P&gt;&lt;P&gt;From dictionary object OR from program fields select the fields and place them in the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Passing data to table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually transfer of data from program to screen is automatic.&lt;/P&gt;&lt;P&gt;In case of TC, you need to explicitly transfer the data to table control.&lt;/P&gt;&lt;P&gt;ABAP/4 provides Loop statement, which is associated with flow logic to transfer the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7)Passing of data contd.&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;name of internal table&amp;gt; with control &amp;lt;name of table control&amp;gt; cursor &amp;lt;scroll variable&amp;gt;.&lt;/P&gt;&lt;P&gt;module&amp;#129;c&amp;#129;c.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Loop at &amp;lt; name of internal table&amp;gt;.Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8)Scroll variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top_line : the row of table where the screen display starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current_line : the row currently being processed inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9)Transfer of data from prg to TC.&lt;/P&gt;&lt;P&gt;With &amp;#129;eLoop at &amp;#129;c&amp;#129;f statement, the first row is placed in the header of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any module is specified between Loop and End loop, it will be executed. In this module, generally we will be assigning this internal table fields to table control screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row in internal table is transferred to the TC as stated in the &amp;#129;eLoop at&amp;#129;c..&amp;#129;f statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system encounters the &amp;#129;eEndloop&amp;#129;f statement and control is passed back to the next line of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way all the records of the internal table are passed to the TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example demo_dynpro_value_select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this one will validate the input, and push button also there..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2007 08:48:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-01T08:48:53Z</dc:date>
    <item>
      <title>Module pool report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043058#M720252</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;Can any one give me brief idea about Module pool reporting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;P&gt;SAP-ABAP Consultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043058#M720252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043059#M720253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check these links&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap.html" target="test_blank"&gt;http://sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap.htm" target="test_blank"&gt;http://www.sap-img.com/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com" target="test_blank"&gt;http://www.sap-img.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/" target="test_blank"&gt;http://www.sap-img.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/applet.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/applet.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have a look at these good links-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap09/" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap09/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/abap-00/" target="test_blank"&gt;http://sap.mis.cmich.edu/abap-00/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/links/abap.htm" target="test_blank"&gt;http://www.sapgenie.com/links/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/example_code.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/example_code.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/default.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/default.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/spmp.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/spmp.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap.html" target="test_blank"&gt;http://sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap.htm" target="test_blank"&gt;http://www.sap-img.com/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?i=10&amp;amp;t=450&amp;amp;a=t&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/" target="test_blank"&gt;http://www.sap-img.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/faq/faqdiapr.pdf" target="test_blank"&gt;http://www.sappoint.com/faq/faqdiapr.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/dialog_programming.html" target="test_blank"&gt;http://www.allsaplinks.com/dialog_programming.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/example_code.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/example_code.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/links/abap.htm" target="test_blank"&gt;http://www.sapgenie.com/links/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Painter&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menu Painter&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Table Control Creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Screen tables&lt;/P&gt;&lt;P&gt;A table can be created in transaction. These tables, when designed on the screen are called as SCREEN TABLES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are of two types.&lt;/P&gt;&lt;P&gt;Table Controls and Step loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tables are treated as Loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Features of Table Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is displayed in the form of table.&lt;/P&gt;&lt;P&gt;Table control gives user the feeling of an actual table.&lt;/P&gt;&lt;P&gt;You can scroll through the table vertically as well as horizontally.&lt;/P&gt;&lt;P&gt;You can select rows and columns.&lt;/P&gt;&lt;P&gt;You can resize the with of columns.&lt;/P&gt;&lt;P&gt;You can have separator lines between rows and columns.&lt;/P&gt;&lt;P&gt;Automatic resizing of the table when the user resizes the window.&lt;/P&gt;&lt;P&gt;You can update information in the table control and it can be updated in the database table by writing code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Steps for creating table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration of table control in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Designing of table controls on the screen.&lt;/P&gt;&lt;P&gt;Passing data to table control in flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Declaration of TC in MPP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls &amp;lt;name of table control&amp;gt; type tableview using screen &amp;lt;&amp;#129;escreen no.&amp;#129;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)Designing Table control on screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on Table in Control bar and place it on the screen. You can adjust the length and width of the Table Control.&lt;/P&gt;&lt;P&gt;Name the table control.(same name as given in data declaration).&lt;/P&gt;&lt;P&gt;From dictionary object OR from program fields select the fields and place them in the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Passing data to table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually transfer of data from program to screen is automatic.&lt;/P&gt;&lt;P&gt;In case of TC, you need to explicitly transfer the data to table control.&lt;/P&gt;&lt;P&gt;ABAP/4 provides Loop statement, which is associated with flow logic to transfer the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7)Passing of data contd.&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;name of internal table&amp;gt; with control &amp;lt;name of table control&amp;gt; cursor &amp;lt;scroll variable&amp;gt;.&lt;/P&gt;&lt;P&gt;module&amp;#129;c&amp;#129;c.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Loop at &amp;lt; name of internal table&amp;gt;.Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8)Scroll variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top_line : the row of table where the screen display starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current_line : the row currently being processed inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9)Transfer of data from prg to TC.&lt;/P&gt;&lt;P&gt;With &amp;#129;eLoop at &amp;#129;c&amp;#129;f statement, the first row is placed in the header of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any module is specified between Loop and End loop, it will be executed. In this module, generally we will be assigning this internal table fields to table control screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row in internal table is transferred to the TC as stated in the &amp;#129;eLoop at&amp;#129;c..&amp;#129;f statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system encounters the &amp;#129;eEndloop&amp;#129;f statement and control is passed back to the next line of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way all the records of the internal table are passed to the TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example demo_dynpro_value_select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this one will validate the input, and push button also there..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043059#M720253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043060#M720254</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;Module pool programs are based on screen processing.They have PBO(process before output) and PAI(process after input modules. where u code for the respective processes of settin menu in PBO and handling user actions in PAI.&lt;/P&gt;&lt;P&gt;For more info refer the below link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/10/e7dbde82ba11d295a40000e8353423/content.htm&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043060#M720254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043061#M720255</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;Check the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F" target="test_blank"&gt;http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap09/index.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap09/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/links/abap.htm" target="test_blank"&gt;http://www.sapgenie.com/links/abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check the transaction ABAPDOCU which gives you lot of sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can see the below examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to se38 and give demo&lt;STRONG&gt;dynpro&lt;/STRONG&gt; and press F4.&lt;/P&gt;&lt;P&gt;YOu will get a list of demo module pool programs.&lt;/P&gt;&lt;P&gt;One more T-Code is ABAPDOCU.&lt;/P&gt;&lt;P&gt;YOu can find more examples there.&lt;/P&gt;&lt;P&gt;See the prgrams:&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters :&lt;/P&gt;&lt;P&gt;table1(30) type c,&lt;/P&gt;&lt;P&gt;input(30) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_flag type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;if w_flag eq 1.&lt;/P&gt;&lt;P&gt;clear w_flag.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'INPUT'.&lt;/P&gt;&lt;P&gt;%_INPUT_%_APP_%-TEXT = TABLE1.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;w_flag = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use GET PF-STATUS to Gets the current GUI status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PF-STATUS &amp;lt;f&amp;gt; [PROGRAM &amp;lt;prog&amp;gt;] [EXCLUDING &amp;lt;itab&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the name of the current GUI status (the same as SY-PFKEY) into the variable &amp;lt;f&amp;gt;. The PROGRAM addition writes the name of the ABAP program to which the status belongs into the variable &amp;lt;prog&amp;gt;. The EXCLUDING addition returns a list of all currently inactive function codes into the internal table &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use SET PF-STATUS Sets the GUI status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS &amp;lt;stat&amp;gt; [EXCLUDING &amp;lt;f&amp;gt;|&amp;lt;itab&amp;gt;]&lt;/P&gt;&lt;P&gt;[IMMEDIATELY] [OF PROGRAM &amp;lt;prog&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the GUI status &amp;lt;stat&amp;gt; for the subsequent screens. The EXCLUDING addition allows you to deactivate functions dynamically. The IMMEDIATELY addition sets the GUI status of the list currently displayed. The OF PROGRAM addition allows you to use a GUI status from another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can use the Excluding option to exclude the ICONS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample coding&lt;/P&gt;&lt;P&gt;&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; Include MZ_TABLEO01 *&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;&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 STATUS_0100 OUTPUT&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 status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MYSTATUS'.&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'TITLE-001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " STATUS_0100 OUTPUT&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 POPULATE_IT OUTPUT&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 populate_it OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ok_code NE 'ADD' AND&lt;/P&gt;&lt;P&gt;ok_code NE 'DEL'.&lt;/P&gt;&lt;P&gt;IF flag NE 'X'.&lt;/P&gt;&lt;P&gt;SELECT * FROM ztest_so INTO TABLE it_populate.&lt;/P&gt;&lt;P&gt;flag = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " POPULATE_IT OUTPUT&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 set_lines OUTPUT&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 set_lines OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE it_populate LINES sy-tfill.&lt;/P&gt;&lt;P&gt;so_tbl_ctrl-lines = sy-tfill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " set_lines OUTPUT&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 move_values_to_tbl_ctrl OUTPUT&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 move_values_to_tbl_ctrl OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE : it_populate-vbeln TO ztest_so-vbeln,&lt;/P&gt;&lt;P&gt;it_populate-bukrs TO ztest_so-bukrs,&lt;/P&gt;&lt;P&gt;it_populate-kunnr TO ztest_so-kunnr,&lt;/P&gt;&lt;P&gt;it_populate-erdat TO ztest_so-erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " move_values_to_tbl_ctrl OUTPUT&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 set_select_status OUTPUT&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 set_select_status OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_selected WITH KEY vbeln = it_populate-vbeln.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;line_sel_col = 'X'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;line_sel_col = space.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " set_select_status OUTPUT&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 clear_okcode OUTPUT&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 clear_okcode output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR OK_CODE.&lt;/P&gt;&lt;P&gt;endmodule. " clear_okcode OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in PAI&lt;/P&gt;&lt;P&gt;&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; Include MZ_TABLEI01 *&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;&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 USER_COMMAND_0100 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 USER_COMMAND_0100 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;when 'BACK' or 'CANC' or 'EXIT'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;when 'SELALL'.&lt;/P&gt;&lt;P&gt;clear IT_selected.&lt;/P&gt;&lt;P&gt;refresh IT_selected.&lt;/P&gt;&lt;P&gt;loop at IT_POPULATE.&lt;/P&gt;&lt;P&gt;move-corresponding IT_POPULATE to IT_selected.&lt;/P&gt;&lt;P&gt;append IT_selected.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;when 'DESELALL'.&lt;/P&gt;&lt;P&gt;clear IT_selected.&lt;/P&gt;&lt;P&gt;refresh IT_selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;LOOP AT IT_SELECTED.&lt;/P&gt;&lt;P&gt;MODIFY ZTEST_SO FROM IT_SELECTED.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;LOOP AT IT_DELETED.&lt;/P&gt;&lt;P&gt;DELETE FROM ZTEST_SO WHERE VBELN = IT_DELETED-VBELN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;when 'DEL'.&lt;/P&gt;&lt;P&gt;LOOP AT IT_SELECTED.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING IT_SELECTED&lt;/P&gt;&lt;P&gt;TO&lt;/P&gt;&lt;P&gt;IT_DELETED.&lt;/P&gt;&lt;P&gt;APPEND IT_DELETED.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Also delete it from T_SO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DELETE IT_POPULATE WHERE VBELN = IT_SELECTED-VBELN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR IT_SELECTED.&lt;/P&gt;&lt;P&gt;REFRESH IT_SELECTED.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_0100 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;P&gt;*&amp;amp; Module get_selected_so 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 get_selected_so input.&lt;/P&gt;&lt;P&gt;If ok_code ne 'SELALL'.&lt;/P&gt;&lt;P&gt;IF line_sel_col EQ 'X'.&lt;/P&gt;&lt;P&gt;Read table IT_selected with key vbeln = IT_POPULATE-vbeln.&lt;/P&gt;&lt;P&gt;If sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ztest_so TO IT_selected.&lt;/P&gt;&lt;P&gt;Append IT_selected.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ztest_so TO IT_selected.&lt;/P&gt;&lt;P&gt;Modify IT_selected index sy-tabix.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;Read table IT_selected with key vbeln = IT_POPULATE-VBELN.&lt;/P&gt;&lt;P&gt;If sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;Delete IT_selected where VBELN = IT_POPULATE-VBELN.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " get_selected_so INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these links, it may be helpful to u.&lt;/P&gt;&lt;P&gt;this link contains information about :&lt;/P&gt;&lt;P&gt;1)Table Controls in ABAP Programs&lt;/P&gt;&lt;P&gt;2)Looping Through an Internal Table&lt;/P&gt;&lt;P&gt;3)Table Controls: Examples with Scrolling&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&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 'MY_TAB'
  module my_tab_change_tc_attr.
*&amp;amp;spwizard: module MY_TAB_change_col_attr.
  loop at   it_item
       into wa_item
       with control my_tab
       cursor my_tab-current_line.
    module my_tab_get_lines.
*&amp;amp;spwizard:   module MY_TAB_change_field_attr
  endloop.
 
  module status_0100.
  module set_curson.
  module get_date.
  module ok_code.
 
process after input.
*&amp;amp;spwizard: pai flow logic for tablecontrol 'MY_TAB'
  loop at it_item.
    chain.
      field wa_item-zeile.
      field wa_item-matnr.
      field wa_item-maktx.
      field wa_item-meins.
      field wa_item-menge.
      field wa_item-rflag.
      module my_tab_modify on chain-request.
    endchain.
  endloop.
  module my_tab_user_command.
*&amp;amp;spwizard: module MY_TAB_change_tc_attr.
*&amp;amp;spwizard: module MY_TAB_change_col_attr.
  module get_vendor_name.
  module user_command_0100.
 
 



For second screen

PROCESS BEFORE OUTPUT.
*&amp;amp;spwizard: pbo flow logic for tablecontrol 'CON_TAB'
  module CON_TAB_change_tc_attr.
*&amp;amp;spwizard: module CON_TAB_change_col_attr.
  loop at   IT_DB_ITEM
       into WA_DB_ITEM
       with control CON_TAB
       cursor CON_TAB-current_line.
    module CON_TAB_get_lines.
*&amp;amp;spwizard:   module CON_TAB_change_field_attr
  endloop.
 
 MODULE STATUS_0110.
*
PROCESS AFTER INPUT.
*&amp;amp;spwizard: pai flow logic for tablecontrol 'CON_TAB'
  loop at IT_DB_ITEM.
    chain.
      field WA_DB_ITEM-ZEILE.
      field WA_DB_ITEM-MATNR.
      field WA_DB_ITEM-MAKTX.
      field WA_DB_ITEM-MEINS.
      field WA_DB_ITEM-MENGE.
      field WA_DB_ITEM-RFLAG.
    endchain.
  endloop.
  module CON_TAB_user_command.
*&amp;amp;spwizard: module CON_TAB_change_tc_attr.
*&amp;amp;spwizard: module CON_TAB_change_col_attr.
 
 MODULE USER_COMMAND_0110.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-report/m-p/3043061#M720255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:56:47Z</dc:date>
    </item>
  </channel>
</rss>

