<?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: tab controll in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698900#M890663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Follow this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id29.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id29.html&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/9f/dbac1d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table control is an area on the screen in which the system displays data in tabular form. It is processed using a loop. The top line of a table control is the header line, which is distinguished by a gray separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a table control, you can use table elements, key words, templates, checkboxes, radio buttons, radio button groups, and pushbuttons. A line may have up to 255 columns; each column may have a title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table control contains a series of attributes that are controlled entirely at the presentation server.&lt;/P&gt;&lt;P&gt;These are:&lt;/P&gt;&lt;P&gt;Horizontal scrolling using the scrollbar in the table control&lt;/P&gt;&lt;P&gt;Swapping columns&lt;/P&gt;&lt;P&gt;Changing column widths&lt;/P&gt;&lt;P&gt;Selecting columns&lt;/P&gt;&lt;P&gt;Selecting lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PAI processing block is triggered when you scroll vertically in the table control or save the user configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a table control, you must create:&lt;/P&gt;&lt;P&gt;A table control area &lt;/P&gt;&lt;P&gt;Table control fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a table control area, choose the table control object from the object list in the Screen Painter and place it in the screen work area. Fix the top-left hand corner of the table control area, and then drag the object to the required size.&lt;/P&gt;&lt;P&gt;In the Name attribute, assign a name to your table control. In the ABAP program, declare a structure with the same name, containing the dynamically changeable attributes of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONTROLS statement declares a complex data object with the type TABLEVIEW (corresponding to the type CXTAB_CONTROL, declared in type group CXTAB in the ABAP Dictionary). At runtime, the data object (my_control) contains the static attributes of the table control.&lt;/P&gt;&lt;P&gt;You maintain the initial values (static attributes) in the Screen Painter. The USING SCREEN addition in the CONTROLS statement determines the screen whose initial values are to be used for the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reset a table control to its initial attributes at any time using the statement REFRESH&lt;/P&gt;&lt;P&gt;CONTROL &amp;lt;ctrl&amp;gt; FROM SCREEN &amp;lt;scr&amp;gt;. &amp;lt;scr&amp;gt; does not have to be the same as the initial screen of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You create fields in a table control using the Dict./Program fields function. This involves the following&lt;/P&gt;&lt;P&gt;steps:&lt;/P&gt;&lt;P&gt;Enter the name of the structure whose fields you want to use in the table control and press ENTER.&lt;/P&gt;&lt;P&gt;In the field list, choose the fields that you want to use and choose OK.&lt;/P&gt;&lt;P&gt;Position the cursor in the table control area and click the left mouse button.&lt;/P&gt;&lt;P&gt;The system places all of the selected fields in the table control. If the fields have data element texts, the system uses these as column headings.&lt;/P&gt;&lt;P&gt;Alternatively, you can position individual input/output fields in the table control area. Each field&lt;/P&gt;&lt;P&gt;generates a single column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a table control, the system automatically proposes one with a selection column.&lt;/P&gt;&lt;P&gt;The selection column behaves like a checkbox. It must therefore be a field with length 1 and data type CHAR. You must enter the field name in the attributes of the table control.&lt;/P&gt;&lt;P&gt;The selection column is a field of the structure used for transport between the screen and the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Runal Singh on Apr 11, 2008 3:56 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 1:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2008 10:25:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-11T10:25:09Z</dc:date>
    <item>
      <title>tab controll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698898#M890661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly forward me the sample programme of tabcontrol with screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sujatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698898#M890661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: tab controll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698899#M890662</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;see this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapetabap.com/ovidentia/index.php?tg=fileman&amp;amp;idx=get&amp;amp;id=4&amp;amp;gr=Y&amp;amp;path=ABAP" target="test_blank"&gt;http://www.sapetabap.com/ovidentia/index.php?tg=fileman&amp;amp;idx=get&amp;amp;id=4&amp;amp;gr=Y&amp;amp;path=ABAP&lt;/A&gt;&lt;EM&gt;EN&lt;/EM&gt;ANGLAIS&amp;amp;file=Vertical_Tab_Control_in_SAP.pdf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698899#M890662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: tab controll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698900#M890663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Follow this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id29.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id29.html&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/9f/dbac1d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table control is an area on the screen in which the system displays data in tabular form. It is processed using a loop. The top line of a table control is the header line, which is distinguished by a gray separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a table control, you can use table elements, key words, templates, checkboxes, radio buttons, radio button groups, and pushbuttons. A line may have up to 255 columns; each column may have a title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table control contains a series of attributes that are controlled entirely at the presentation server.&lt;/P&gt;&lt;P&gt;These are:&lt;/P&gt;&lt;P&gt;Horizontal scrolling using the scrollbar in the table control&lt;/P&gt;&lt;P&gt;Swapping columns&lt;/P&gt;&lt;P&gt;Changing column widths&lt;/P&gt;&lt;P&gt;Selecting columns&lt;/P&gt;&lt;P&gt;Selecting lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PAI processing block is triggered when you scroll vertically in the table control or save the user configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a table control, you must create:&lt;/P&gt;&lt;P&gt;A table control area &lt;/P&gt;&lt;P&gt;Table control fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a table control area, choose the table control object from the object list in the Screen Painter and place it in the screen work area. Fix the top-left hand corner of the table control area, and then drag the object to the required size.&lt;/P&gt;&lt;P&gt;In the Name attribute, assign a name to your table control. In the ABAP program, declare a structure with the same name, containing the dynamically changeable attributes of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONTROLS statement declares a complex data object with the type TABLEVIEW (corresponding to the type CXTAB_CONTROL, declared in type group CXTAB in the ABAP Dictionary). At runtime, the data object (my_control) contains the static attributes of the table control.&lt;/P&gt;&lt;P&gt;You maintain the initial values (static attributes) in the Screen Painter. The USING SCREEN addition in the CONTROLS statement determines the screen whose initial values are to be used for the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reset a table control to its initial attributes at any time using the statement REFRESH&lt;/P&gt;&lt;P&gt;CONTROL &amp;lt;ctrl&amp;gt; FROM SCREEN &amp;lt;scr&amp;gt;. &amp;lt;scr&amp;gt; does not have to be the same as the initial screen of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You create fields in a table control using the Dict./Program fields function. This involves the following&lt;/P&gt;&lt;P&gt;steps:&lt;/P&gt;&lt;P&gt;Enter the name of the structure whose fields you want to use in the table control and press ENTER.&lt;/P&gt;&lt;P&gt;In the field list, choose the fields that you want to use and choose OK.&lt;/P&gt;&lt;P&gt;Position the cursor in the table control area and click the left mouse button.&lt;/P&gt;&lt;P&gt;The system places all of the selected fields in the table control. If the fields have data element texts, the system uses these as column headings.&lt;/P&gt;&lt;P&gt;Alternatively, you can position individual input/output fields in the table control area. Each field&lt;/P&gt;&lt;P&gt;generates a single column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a table control, the system automatically proposes one with a selection column.&lt;/P&gt;&lt;P&gt;The selection column behaves like a checkbox. It must therefore be a field with length 1 and data type CHAR. You must enter the field name in the attributes of the table control.&lt;/P&gt;&lt;P&gt;The selection column is a field of the structure used for transport between the screen and the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Runal Singh on Apr 11, 2008 3:56 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 1:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698900#M890663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: tab controll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698901#M890664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this standard report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this report code check the condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'TOGGLE'.&lt;/P&gt;&lt;P&gt;LOOP AT flights-cols INTO cols WHERE index GT 2.&lt;/P&gt;&lt;P&gt;IF cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;ELSEIF cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY flights-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyise these and write in your code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For screen modification...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this report...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_modify_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute these two reports... analyise u ll understand easily..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the modify screen statement to enable/disable screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;MODIFY SCREEN FROM wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement can be used in the statement block after LOOP AT SCREEN only and makes sense only during PBO processing. If FROM is not specified, MODIFY SCREEN modifies the attributes of the current screen element with the values from the predefined screen work area. If a wa work area is specified, its contents are used for the modification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wa work area must have the same data type as screen. The name component must contain the name of the current screen element, otherwise the statement is not executed. nweisung nicht ausgeführt. Up to the group1 to group4 and length components, all remaining components of screen and wa must contain either the value 0 or 1. The value 0 deactivates the corresponding field attribute, and 1 activates it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If MODIFY SCREEN is executed during PBO processing, the modified attributes for the display of the screen affect the current dynpro after PBO processing. The attributes of the screen element of the dynpro are reset to their static attributes at the start of each PBO processing, so that the execution of MODIFY SCREEN during PAI processing does not effect the display of the following screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The active component &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The active component is used to set the input, output and invisible components at once. At the start of PBO processing, the active component always has the value 1. If active is set to 0 with MODIFY SCREEN, input and output are automatically set to 0 and invisible is set to 1. Other values in input, output and invisible are ignored. Conversely, setting input and output to 0 and invisible to 1 automatically sets active to 0 and a different value in active is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifications in Table Controls and Step Loops &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During processing of a table control or a step loop, the changes affect the current line of the table control or the current step loop group. Before the processing of a table control, the change to the attributes of a screen element that is part of a line in the table control does not effect the table control, since the values are transferred from the structure created using CONTROLS. Before a step loop is processed, the change to the attributes of a screen elements that is part of a step loop group affects all groups in the step loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifications to Tabstrip Controls &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the active component for a tab title of a tabstrip control is set to 0, the whole tabstrip page is hidden. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;In the following PBO module, an input field called val is made mandatory and converted to display in the foreground. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE modify_0100 OUTPUT. &lt;/P&gt;&lt;P&gt;LOOP AT SCREEN. &lt;/P&gt;&lt;P&gt;IF screen-name = 'VAL'. &lt;/P&gt;&lt;P&gt;screen-required = '1'. "to make required&lt;/P&gt;&lt;P&gt;screen-intensified = '1'. &lt;/P&gt;&lt;P&gt;screen-input = 0. "to dsplay mode&lt;/P&gt;&lt;P&gt;screen-active = 0. "to hide&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;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sudarsan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698901#M890664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: tab controll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698902#M890665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE CONTROLS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;Table Control component is used to view the internal table contents in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigations to create Table control component:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;1. Create an MPP program.&lt;/P&gt;&lt;P&gt;2. In Top include File, declare variables as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE KNA1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;CONTROLS TBCL TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;DATA CUR TYPE I VALUE 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Save -&amp;gt; Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Create a Screen (100) -&amp;gt; Select Table control component from toolbar -&amp;gt; Double Click and specify name (TBCL) -&amp;gt; Press F6 and specify internal table name (ITAB) -&amp;gt; Select required fields -&amp;gt; Paste on the Table control -&amp;gt; To separate the fields, use Separators option in Table control Attributes -&amp;gt; Specify labels if necessary -&amp;gt; Create pushbuttons (FETCH, MODIFY, PRINT, EXIT) -&amp;gt; Save -&amp;gt; Flowlogic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In PAI module, specify following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'FETCH'.&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;TBCL-LINES = SY-DBCNT. * To create Vertical Scrollbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'PRINT'.&lt;/P&gt;&lt;P&gt;GET CURSOR LINE CUR.&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INDEX CUR.&lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; ITAB-KUNNR, ITAB-NAME1, ITAB-ORT01, ITAB-LAND1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'MODIFY'.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;MODIFY KNA1 FROM ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;MESSAGE S002(ZMSG).&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE E003(ZMSG).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;TBCL-LINES = SY-DBCNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. In FlowLogic editor, specify following step loops:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB CURSOR CUR WITH CONTROL TBCL.&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;MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;MODULE NEW. * New module to move records from ITAB to ITAB1. Double click on Module Name (New) to create a new one.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Specify following code in the NEW module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE NEW INPUT.&lt;/P&gt;&lt;P&gt;APPEND ITAB TO ITAB1.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Create a Tcode -&amp;gt; Activate all -&amp;gt; Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USING TABLE CONTROL WIZARD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;This is a predefined SAP-specific component to create table control using predefined navigations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create an executable program (Z_TABLEWIZARD) in SE38 editor. Write the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Save -&amp;gt; Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Goto SE51 -&amp;gt; Specify program name created earlier (Z_TABLEWIZARD) -&amp;gt; Specify Screen number (200) -&amp;gt; Layout -&amp;gt; Select Table Control (Wizard) component from toolbar -&amp;gt; Opens Table control Wizard -&amp;gt; Follow the navigations -&amp;gt; Save and Activate the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Execute the program (Z_TABLEWIZARD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 1:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698902#M890665</guid>
      <dc:creator>ak_upadhyay</dc:creator>
      <dc:date>2008-04-11T10:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: tab controll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698903#M890666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow the steps to update the database table records.&lt;/P&gt;&lt;P&gt;1.TOP INCLUDE code&lt;/P&gt;&lt;P&gt;TABLES: EKKO.&lt;/P&gt;&lt;P&gt;DATA: OK_CODE TYPE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TC100 TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_EKKO LIKE EKKO OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: CUR TYPE I.&lt;/P&gt;&lt;P&gt;DATA: I_EKKO2 LIKE EKKO OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: V_FNAM TYPE I,V_FVAL(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Create screen with number(e.g 123) and click on layout tab&lt;/P&gt;&lt;P&gt;Give the table control name as TC100.&lt;/P&gt;&lt;P&gt;SELECT THE FIELDS FROM INTERNAL TABLE (IT_EKKO). DRAG THE TEXT FIELDS INTO THE TABLE CONTROL FOR FIELD HEADINGS.&lt;/P&gt;&lt;P&gt;Create 4 pushbuttons(insert,fetch,delete and exit)&lt;/P&gt;&lt;P&gt;CLICK ON &amp;#147;Element list&amp;#148; TAB AND ENTER THE &amp;#147;OK_CODE&amp;#148;.&lt;/P&gt;&lt;P&gt;CLICK ON FLOWLOGIC TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Flowlogic code&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;LOOP AT IT_EKKO CURSOR CUR WITH CONTROL TC100.&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_EKKO.&lt;/P&gt;&lt;P&gt;MODULE MODIFY_ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Double click on MODIFY_ITAB and write as&lt;/P&gt;&lt;P&gt;module MODIFY_ITAB input.&lt;/P&gt;&lt;P&gt;APPEND IT_EKKO TO I_EKKO2.&lt;/P&gt;&lt;P&gt;endmodule. " MODIFY_ITAB INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.Activate PAI and double click on it and write the code as&lt;/P&gt;&lt;P&gt;module USER_COMMAND_0100 input.&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN 'INS'.&lt;/P&gt;&lt;P&gt;LOOP AT I_EKKO2.&lt;/P&gt;&lt;P&gt;MODIFY EKKO FROM I_EKKO2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;SELECT * FROM EKKO INTO TABLE IT_EKKO.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;MESSAGE S003(ZCSMSG).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'FETCH'.&lt;/P&gt;&lt;P&gt;SELECT * FROM EKKO INTO TABLE IT_EKKO UP TO 2000 ROWS.&lt;/P&gt;&lt;P&gt;TC100-LINES = SY-DBCNT.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.Create Transaction code and execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 1:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 12:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-controll/m-p/3698903#M890666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T12:20:27Z</dc:date>
    </item>
  </channel>
</rss>

