<?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/2573531#M587888</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 links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/howdo_a.htm" target="test_blank"&gt;http://www.planetsap.com/howdo_a.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id25.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id25.html&lt;/A&gt;&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 &amp;lt;b&amp;gt;ABAPDOCU&amp;lt;/b&amp;gt;.&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;&amp;lt;b&amp;gt;DEMO_DYNPRO_TABLE_CONTROL_1&amp;lt;/b&amp;gt; Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEMO_DYNPRO_TABLE_CONTROL_2&amp;lt;/b&amp;gt; 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;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 11:10:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T11:10:01Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573529#M587886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I have one table control which displays some data &lt;/P&gt;&lt;P&gt;      (data read using internal table).&lt;/P&gt;&lt;P&gt;      ( I have used table control wizard to display internal table items)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I have another z table called zplan inwhich i want store some specific fields which are fetched from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      what is the programming techniques and procedure to store in zplan.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     Totally am using onle one ztable called zplan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573529#M587886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:07: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/2573530#M587887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;just refer to the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/tablecontrol_sap.html" target="test_blank"&gt;http://www.sapmaterial.com/tablecontrol_sap.html&lt;/A&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step by step procedure with screen shots&amp;lt;/b&amp;gt;		&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573530#M587887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573531#M587888</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 links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/howdo_a.htm" target="test_blank"&gt;http://www.planetsap.com/howdo_a.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id25.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id25.html&lt;/A&gt;&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 &amp;lt;b&amp;gt;ABAPDOCU&amp;lt;/b&amp;gt;.&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;&amp;lt;b&amp;gt;DEMO_DYNPRO_TABLE_CONTROL_1&amp;lt;/b&amp;gt; Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEMO_DYNPRO_TABLE_CONTROL_2&amp;lt;/b&amp;gt; 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;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573531#M587888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573532#M587889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very new to dialog programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone explain me the procedure and the logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be helpful to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573532#M587889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573533#M587890</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;TABLE CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the screen elements used to display tabular data they can be called&lt;/P&gt;&lt;P&gt;as screen tables( like STEP LOOP).To use table control we have to create it on the screen using SCREEN PAINTER(SE51) and declare a control variable of TYPE TABLEVIEW using CONTROLS statement in the ABAP program. We have to use LOOP .. ENDLOOP statement in both PBO and PAI with or without AT int_table parameter. IF AT int_table parameter is not used than we have to place a MODULE call between the LOOP...ENDLOOP statement to fill the screen table rows from the ABAP program in PBO and program our own scrolling functions&lt;/P&gt;&lt;P&gt;using OK_CODE field.&lt;/P&gt;&lt;P&gt;Having a parallel loop(at screen table rows &amp;amp; int table rows) by using parameter &lt;/P&gt;&lt;P&gt;AT int_table makes the ABAP code simple.&lt;/P&gt;&lt;P&gt;A special structure of type CXTAB_CONTROL is used to set/get various&lt;/P&gt;&lt;P&gt;attributes of table control at runtime like CURRENT_LINE ,TOP_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: tab_con TYPE TABLEVIEW USING SCREEN nnnn&lt;/P&gt;&lt;P&gt;Here tab_con is the same name we used in screen for the table control.&lt;/P&gt;&lt;P&gt;This ABAP statement will declare a control variable that will be used to access&lt;/P&gt;&lt;P&gt;the table control , and set it's various attributes like number of fixed columns(tab_con-FIXED_COLS) ,total number of records it will display(tab_con-LINES).It is of type CXTAB_CONTROL and is a deep structure(structure containing structures).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL tab_con FROM SCREEN nnnn&lt;/P&gt;&lt;P&gt;This ABAP statement will initialize the table control on the screen nnnn to its initial values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO processing&lt;/P&gt;&lt;P&gt;In PBO we have to use the screen LOOP ...ENDLOOP statement , with or without&lt;/P&gt;&lt;P&gt;intenal table.&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL tab_con.&lt;/P&gt;&lt;P&gt;MODULE fill_tab_con.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;Here a module should be called between the loop endloop statement to transfer&lt;/P&gt;&lt;P&gt;data from th ABAP program to the screen table through a structure.This module&lt;/P&gt;&lt;P&gt;should use the CURRENT_LINE attribute of the table control variable to get the&lt;/P&gt;&lt;P&gt;current screen table record index to read the data from the internal table into a work area.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;READ TABLE int_table INDEX tab_con-CURRENT_LINE&lt;/P&gt;&lt;P&gt;The record read will be placed in the header line of the internal table and will be available to the similarly named screen fields or if these are different it can be written explicitly. e.g.&lt;/P&gt;&lt;P&gt;screen_field_name = int_table-field_name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;LOOP AT int_table INTO workarea WITH CONTROL tab_con CURSOR i FROM &lt;/P&gt;&lt;P&gt;n1 TO n2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the module call is not required to fill the screen table.The CURSOR parameter is a integer of type I indicating which absolute internal table line&lt;/P&gt;&lt;P&gt;should be the first to display on the table control .FROM n1 TO n2 can be used&lt;/P&gt;&lt;P&gt;to restrict the starting line and ending line number of the internal table , they are of type SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases before the LOOP statement a module should be called which&lt;/P&gt;&lt;P&gt;is generally for setting of status ,in which we should fill the LINES attribute&lt;/P&gt;&lt;P&gt;(tab_con-LINES ) of the control with the total number of internal table records,doing this ensures correct and automatic scrolling.&lt;/P&gt;&lt;P&gt;The ABAP statement DESCRIBE TABLE int_table LINES lines can be used&lt;/P&gt;&lt;P&gt;to get the total lines in an int table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI Processing&lt;/P&gt;&lt;P&gt;We have to use LOOP ... ENDLOOP in PAI so that data can transfer fro table control to ABAP program. If we want to write changes to the data we should&lt;/P&gt;&lt;P&gt;call a module between the LOOP ... ENDLOOP. The MODULE call to process user commands (SY-UCOM) should be called after the ENDLOOP statement.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT&lt;/P&gt;&lt;P&gt;MODULE mod AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;LOOP AT itab_table or LOOP "depending on whether we are using AT int_table&lt;/P&gt;&lt;P&gt;MODULE modify_int_table.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE user_command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MODULE call modify_int_table we can use&lt;/P&gt;&lt;P&gt;MODIFY int_table FROM workarea INDEX tab_con-CURRENT_LINE&lt;/P&gt;&lt;P&gt;or we can use&lt;/P&gt;&lt;P&gt;int_table-field_name = screen_field_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/contro02.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/contro02.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;if it helped, you can acknowledge the same by rewarding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573533#M587890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573534#M587891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raja ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screen of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop your internal table with table control tbc1&lt;/P&gt;&lt;P&gt;  LOOP AT it_details INTO gf_details WITH CONTROL tbc1&lt;/P&gt;&lt;P&gt;         CURSOR tbc1-current_line.&lt;/P&gt;&lt;P&gt;    MODULE display_rows. "Populates your data in table control&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT it_details .&lt;/P&gt;&lt;P&gt;    MODULE read_table_control. "Reads table control.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Module read_table_control.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If sy-ucomm eq 'READ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*If it_details having same strucutre&lt;/P&gt;&lt;P&gt;Move it_details to zplan.&lt;/P&gt;&lt;P&gt;Insert zplan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;clear zplan.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*else&lt;/P&gt;&lt;P&gt;Move it_details-field1 to zplan-field1.&lt;/P&gt;&lt;P&gt;Move it_details-field2 to zplan-field2.&lt;/P&gt;&lt;P&gt;Move it_details-field3 to zplan-field3.&lt;/P&gt;&lt;P&gt;Insert zplan.&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;clear zplan.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Endmodule.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K. Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573534#M587891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573535#M587892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja &lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;B&gt;&lt;/B&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Check this link&lt;/P&gt; &lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt;Dialog-driven programs, or any program started using a transaction code, are known as SAP transactions, or just transactions. The term "transaction" is used in several different contexts in the IT world. In OLTP (Online Transaction Processing), where several users are working in one system in dialog mode, the term "transaction" stands for a user request. In conjunction with database updates, it means a change in state in the database. &lt;BR /&gt;&lt;BR /&gt;Programs with type M can only be started using a transaction code, in which an initial screen is defined. Programs with type 1 can be started either using a transaction code, or by entering the program name in one of the transactions SE38 or SA38. Screens call dialog modules in the associated ABAP program from their flow logic. Type M programs serve principally as containers for dialog modules, and are therefore known as module pools. Type 1 programs, or function modules can also switch to dialog mode by calling screens using the CALL SCREEN statement. The program code of the corresponding executable program or function pool must then contain the corresponding dialog modules.&lt;BR /&gt;&lt;BR /&gt;Programs that are partially or wholly dialog-driven cannot be executed in the background. They are therefore sometimes referred to as dialog programs.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Components of a Dialog Program&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;A dialog-driven program consists of the following basic components:&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Transaction code&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;The transaction code starts a screen sequence. You create transaction codes in the Repository Browser in the ABAP Workbench or using Transaction SE93. A transaction code is linked to an ABAP program and an initial screen. As well as using a transaction code, you can start a screen sequence from any ABAP program using the CALL SCREEN statement.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Screens&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;Each dialog in an SAP system is controlled by one or more screens. These screens consist of a screen mask and its flow logic. Since the flow logic influences the program flow, screens are sometimes referred to as "dynamic programs". You create screens using the Screen Painter in the ABAP Workbench. Each screen belongs to an ABAP program. &lt;BR /&gt;&lt;BR /&gt;The screen has a layout that determines the positions of input/output fields and other graphical elements such as checkboxes and radio buttons. The flow logic consists of two parts: &lt;BR /&gt;&lt;BR /&gt;Process Before Output (PBO). This defines the processing that takes place before the screen is displayed. &lt;BR /&gt;Process After Input (PAI). This defines the processing that takes place after the user has chosen a function on the screen. &lt;BR /&gt;All of the screens that you call within an ABAP program must belong to that program. The screens belonging to a program are numbered. For each screen, the system stores the number of the screen which is normally displayed next. This screen sequence can be either linear or cyclic. From within a screen chain, you can even call another screen chain and, after processing it, return to the original chain. You can also override the statically-defined next screen from within the dialog modules of the ABAP program.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;GUI status&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;Each screen has a GUI status. This controls the menu bars, standard toolbar, and application toolbar, with which the user can choose functions in the application. Like screens, GUI statuses are independent components of an ABAP program. You create them in the ABAP Workbench using the Menu Painter. &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;ABAP Program&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;Each screen and GUI status in the R/3 System belongs to one ABAP program. The ABAP program contains the dialog modules that are called by the screen flow logic, and also process the user input from the GUI status. ABAP programs that use screens are also known as dialog programs. In a module pool (type M program); the first processing block to be called is always a dialog module. However, you can also use screens in other ABAP programs, such as executable programs or function modules. The first processing block is then called differently; for example, by the runtime environment or a procedure call. The screen sequence is then started using the CALL SCREEN statement. &lt;BR /&gt;&lt;BR /&gt;Dialog modules are split into PBO modules and PAI modules. Dialog modules called in the PBO event are used to prepare the screen, for example by setting context-specific field contents or by suppressing fields from the display that are not needed. Dialog modules called in the PAI event are used to check the user input and to trigger appropriate dialog steps, such as the update task. &lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;B&gt;Passing Data Between ABAP Programs and Screens&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;How are fields from ABAP programs displayed on the screen? And how is user input on the screen passed back to the ABAP program? Unlike in list programming, you cannot write field data to the screen using the WRITE statement. Instead, the system transfers the data by comparing the names of screen fields with the names of the ABAP fields in the program. If it finds a pair of matching names, the data is transferred between the screen and the ABAP program. This happens immediately before and immediately after displaying the screen.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Field Attributes&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;For all screen fields of a dialog screen, field attributes are defined in the Screen Painter. If a field name in the screen corresponds to the name of an ABAP Dictionary field, the system automatically establishes a reference between these two fields. Thus, a large number of field attributes for the screen are automatically copied from the ABAP Dictionary. The field attributes together with data element and domain of the assigned Dictionary field form the basis for the standard functions the screen executes in a dialog (automatic format check for screen fields, automatic value range check, online help, and so on).&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Error Dialogs&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Another task of the screen processor is to conduct error dialogs. Checking the input data is carried out either automatically using check tables of the ABAP Dictionary or by the ABAP program itself. The screen processor includes the error message into the received screen and returns the screen to the user. The message may be context-sensitive, that is, the system replaces placeholders in the message text with current field contents. In addition, only fields whose contents is related to the error and for which a correction may solve the error can accept input. See also Messages on Screens.&lt;BR /&gt;&lt;BR /&gt;Data Consistency&lt;BR /&gt;&lt;BR /&gt;To keep data consistent within complex applications, ABAP offers techniques for optimizing database updates that operate independent of the underlying database and correspond to the special requests of dialog programming. See also Programming Database Updates.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;See this&lt;BR /&gt;syntax:&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONTROLS &amp;lt;tab_ctrl_name&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;screen_no&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;chk the demo prog:&lt;/P&gt;&lt;BR /&gt;DEMO_DYNPRO_TABCONT_LOOP&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Cursor Position on Table Controls&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At PBO you can set the cursor on a specific field of a specific row of a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET CURSOR FIELD &amp;lt;f&amp;gt; LINE &amp;lt;lin&amp;gt; [OFFSET &amp;lt;off&amp;gt;].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the optional addition OFFSET, you can enter the offset of the cursor in the field as described under Setting the Cursor Position .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At PAI you can read the current cursor position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET CURSOR FIELD &amp;lt;f&amp;gt; LINE &amp;lt;lin&amp;gt; ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to the information given under Finding Out the Cursor Position , field &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;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;See the prgrams:&lt;/P&gt;&lt;BR /&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement &lt;BR /&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt; &lt;BR /&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;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;table control scrolling:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Check following link for the same.&lt;BR /&gt;&lt;A href="https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&amp;amp;content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D52%26threadID%3D45079%26messageID%3D459011%23459011" target="test_blank"&gt;https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&amp;amp;content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D52%26threadID%3D45079%26messageID%3D459011%23459011&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;table control with wizard&lt;BR /&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/6d/150d67da1011d3963800a0c94260a5/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/6d/150d67da1011d3963800a0c94260a5/content.htm&lt;/A&gt; &lt;BR /&gt;Have a look at below link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt; &lt;BR /&gt;You can also check the transaction ABAPDOCU which gives you lot of sample programs.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Also you can see the below examples...&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&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 &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ABAPDOCU.&lt;/P&gt;&lt;BR /&gt;+&lt;B&gt;&lt;P&gt;YOu can find more examples there.&lt;BR /&gt;See the prgrams:&lt;/P&gt;&lt;/B&gt;+&lt;P&gt;&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;PRE&gt;&lt;CODE&gt;REPORT ZBHMOD1 .
DATA:OKCODE1 LIKE SY-UCOMM,
OKCODE2 LIKE SY-UCOMM.
DATA:N1(10) TYPE N,N2(10) TYPE N,RES(12) TYPE N.

MODULE USER_COMMAND_1000 INPUT.

CASE OKCODE1.
WHEN 'NEXT'.
RES = N1 + N2.
SET SCREEN 1001.
WHEN 'CLEA'.
CLEAR:N1,N2.
WHEN 'BACK'.
SET SCREEN '0'.
ENDCASE.

ENDMODULE. " USER_COMMAND_1000 INPUT


MODULE STATUS_1000 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT1'.

ENDMODULE. " STATUS_1000 OUTPUT


MODULE USER_COMMAND_1001 INPUT.

CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN 1000.
ENDCASE.

ENDMODULE. " USER_COMMAND_1001 INPUT


MODULE STATUS_1001 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT2'.

ENDMODULE. " STATUS_1001 OUTPUT




FLOW LOGIC:


PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.



PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.

**************************************************************************
************************************************************************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;2)&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;PRE&gt;&lt;CODE&gt;
REPORT ZBHMOD2.
DATA: OKCODE1 TYPE SY-UCOMM,
OKCODE2 TYPE SY-UCOMM,
ENAME(10) TYPE C,
DNAME(10) TYPE C.

MODULE STATUS_1000 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT1'.

ENDMODULE. " STATUS_1000 OUTPUT


MODULE STATUS_1001 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT2'.

ENDMODULE. " STATUS_1001 OUTPUT


MODULE USER_COMMAND_1000 INPUT.

CASE OKCODE1.
WHEN 'BACK'.
SET SCREEN '0'.
WHEN 'NEXT'.
DNAME = ENAME.
SET SCREEN '1001'.
ENDCASE.

ENDMODULE. " USER_COMMAND_1000 INPUT


MODULE USER_COMMAND_1001 INPUT.

CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN '1000'.
ENDCASE.

ENDMODULE. " USER_COMMAND_1001 INPUT



FORM ON_CTMENU_FORM USING ZDEMO1 TYPE REF TO CL_CTMENU.

CALL METHOD ZDEMO1-&amp;gt;LOAD_GUI_STATUS
EXPORTING
PROGRAM = 'ZDEMO1'
STATUS = 'ZDEMO1'
MENU = ZDEMO1.

ENDFORM. " ON_CTMENU_FORM






FLOW LOGIC:


PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.




PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.

*************************************************************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every Screen has a pbo and a pai.&lt;/P&gt;&lt;P&gt;Screen elements are the textbox, buttons, radio buttons and check boxes .....&lt;/P&gt;&lt;P&gt;If we want to pass data from a abap program to a screen element, we have to create a variable with the name we have given in the screen.So whatever the value is present in that variable is reflected on to the screen element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Here is an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using subscreens and some of the screen elements &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;PRE&gt;&lt;CODE&gt;DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.

DATA: number1(4) TYPE n VALUE '0110',
number2(4) TYPE n VALUE '0130',
field(10) TYPE c, field1(10) TYPE c, field2(10) TYPE c.

CALL SCREEN 100.

MODULE status_100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.

MODULE fill_0110 OUTPUT.
field = 'Eingabe 1'(001).
ENDMODULE.

MODULE fill_0120 OUTPUT.
field = field1.
ENDMODULE.

MODULE fill_0130 OUTPUT.
field = 'Eingabe 2'(002).
ENDMODULE.

MODULE fill_0140 OUTPUT.
field = field2.
ENDMODULE.

MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.

MODULE save_ok INPUT.
save_ok = ok_code.
CLEAR ok_code.
ENDMODULE.

MODULE user_command_0110 INPUT.
IF save_ok = 'OK1'.
number1 = '0120'.
field1 = field.
CLEAR field.
ENDIF.
ENDMODULE.

MODULE user_command_0130 INPUT.
IF save_ok = 'OK2'.
number2 = '0140'.
field2 = field.
CLEAR field.
ENDIF.
ENDMODULE.

MODULE user_command_100 INPUT.
CASE save_ok.
WHEN 'SUB1'.
number1 = '0110'.
WHEN 'SUB2'.
number1 = '0120'.
CLEAR field1.
WHEN 'SUB3'.
number2 = '0130'.
WHEN 'SUB4'.
number2 = '0140'.
CLEAR field2.
ENDCASE.
ENDMODULE.


* flow logic for screen 100 
PROCESS BEFORE OUTPUT.
MODULE STATUS_100.
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,
AREA2 INCLUDING SY-REPID NUMBER2.

PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE SAVE_OK.
CALL SUBSCREEN: AREA1,
AREA2.
MODULE USER_COMMAND_100.

* flow logic for screen 110 
PROCESS BEFORE OUTPUT.
MODULE FILL_0110.

PROCESS AFTER INPUT.
MODULE USER_COMMAND_0110.

* flow logic for screen 120 
PROCESS BEFORE OUTPUT.
MODULE FILL_0120.

PROCESS AFTER INPUT.

* flow logic for screen 130 
PROCESS BEFORE OUTPUT.
MODULE FILL_0130.

PROCESS AFTER INPUT.
MODULE USER_COMMAND_0130. 

* flow logic for screen 140 

PROCESS BEFORE OUTPUT.
MODULE FILL_0140.

PROCESS AFTER INPUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Here are some links to which i answered earlier&lt;/U&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Reward all helpfull answers&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Pavan&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2573535#M587892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:43:23Z</dc:date>
    </item>
  </channel>
</rss>

