<?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: Dynamic strctures about TABLEVIEW and SCREEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657524#M1287008</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;For screen got the SE11 transaction and type in the table name as SCREEN and click on DISPLAY, it will show all the fileds present. These are again the attributes of the screen fields whta you create in the Screenlayout editor (or SE51 transaction). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt; if screen-name = 'MARA-MATNR'.&lt;/P&gt;&lt;P&gt;  screen-invisible = 1.  -&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;&amp;gt; this will make the filed invisible. &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;&lt;/P&gt;&lt;P&gt;similarly you can make the files, active, inactive, visible invisible, output only, both input and output, you can change the grouping of radio buttonts etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it comes to Table controls.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: tc_tablecontrol TYPE TABLEVIEW USING SCREEN 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in degub mode if you check the structure of "tc_tablecontrol", it will have LINES, CURRENT LINE etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINES will have the total number of active lines in your table control&lt;/P&gt;&lt;P&gt;CURRENT LINE will contain the number of the current line that is edited or selected&lt;/P&gt;&lt;P&gt;LINE SELECTED will be 'X' if that line is selected etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 09:53:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-26T09:53:39Z</dc:date>
    <item>
      <title>Dynamic strctures about TABLEVIEW and SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657522#M1287006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts ,&lt;/P&gt;&lt;P&gt;Can any one  send me and help me to explain about dynamic stctures(or tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic strctures about TABLEVIEW and SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are the fields are consist of this stctures and their ussage in screen programming for table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say like top_line and current_line like and  input ,invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: tc_tablecontrol  TYPE TABLEVIEW USING SCREEN 1000,&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657522#M1287006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic strctures about TABLEVIEW and SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657523#M1287007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Screen:&lt;/P&gt;&lt;P&gt;Component Length Type Attribute Description &lt;/P&gt;&lt;P&gt;name 132 c Name Name &lt;/P&gt;&lt;P&gt;group1 3 c Group1 Modification group &lt;/P&gt;&lt;P&gt;group2 3 c Group2 Modification group &lt;/P&gt;&lt;P&gt;group3 3 c Group3 Modification group &lt;/P&gt;&lt;P&gt;group4 3 c Group4 Modification group &lt;/P&gt;&lt;P&gt;required 1 c Required-entry field Mandatory field &lt;/P&gt;&lt;P&gt;input 1 c Input input-enabled field &lt;/P&gt;&lt;P&gt;output 1 c Output display field &lt;/P&gt;&lt;P&gt;intensified 1 c Intensified intensified field &lt;/P&gt;&lt;P&gt;invisible 1 c Invisible invisible element &lt;/P&gt;&lt;P&gt;length 1 x visLength Field length &lt;/P&gt;&lt;P&gt;active 1 c Input/Output/Invisible active field &lt;/P&gt;&lt;P&gt;display_3d 1 c Two-dimensional Box &lt;/P&gt;&lt;P&gt;value_help 1 c Input help Input help key &lt;/P&gt;&lt;P&gt;request 1 c - Input exists &lt;/P&gt;&lt;P&gt;values_in_combo 1 c Dropdown listbox Value help exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tableview (structure CXTAB_CONTROL)&lt;/P&gt;&lt;P&gt;Via se11, enter type group CXTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on May 26, 2009 11:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657523#M1287007</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-05-26T09:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic strctures about TABLEVIEW and SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657524#M1287008</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;For screen got the SE11 transaction and type in the table name as SCREEN and click on DISPLAY, it will show all the fileds present. These are again the attributes of the screen fields whta you create in the Screenlayout editor (or SE51 transaction). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt; if screen-name = 'MARA-MATNR'.&lt;/P&gt;&lt;P&gt;  screen-invisible = 1.  -&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;&amp;gt; this will make the filed invisible. &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;&lt;/P&gt;&lt;P&gt;similarly you can make the files, active, inactive, visible invisible, output only, both input and output, you can change the grouping of radio buttonts etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it comes to Table controls.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: tc_tablecontrol TYPE TABLEVIEW USING SCREEN 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in degub mode if you check the structure of "tc_tablecontrol", it will have LINES, CURRENT LINE etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINES will have the total number of active lines in your table control&lt;/P&gt;&lt;P&gt;CURRENT LINE will contain the number of the current line that is edited or selected&lt;/P&gt;&lt;P&gt;LINE SELECTED will be 'X' if that line is selected etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657524#M1287008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic strctures about TABLEVIEW and SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657525#M1287009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are the TABLEVIEW dynamic strctre fields details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOL CXTAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;       BEGIN OF CXTAB_COLUMN,&lt;/P&gt;&lt;P&gt;         SCREEN      LIKE SCREEN,     "Attributes struktur SCREEN&lt;/P&gt;&lt;P&gt;         INDEX       TYPE I,         "Position of a column on the screen&lt;/P&gt;&lt;P&gt;         SELECTED(1) TYPE C,          "Indicator 'column selected'&lt;/P&gt;&lt;P&gt;         VISLENGTH   LIKE ICON-OLENG, "Visualised length of a column&lt;/P&gt;&lt;P&gt;         INVISIBLE(1) TYPE C,         "Indicator 'column invisible'&lt;/P&gt;&lt;P&gt;       END   OF CXTAB_COLUMN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF CXTAB_CONTROL,&lt;/P&gt;&lt;P&gt;         FIXED_COLS    TYPE I, "Number of fixed columns&lt;/P&gt;&lt;P&gt;         LINES         TYPE I, "Number of lines to display&lt;/P&gt;&lt;P&gt;         TOP_LINE      TYPE I, "Top line during next PBO&lt;/P&gt;&lt;P&gt;         CURRENT_LINE  TYPE I, "Current line during LOOP/ENDLOOP&lt;/P&gt;&lt;P&gt;         LEFT_COL       TYPE I, "Fist scrollable column after fixed area&lt;/P&gt;&lt;P&gt;         LINE_SEL_MODE    TYPE I, "Line-selection  : none(0), single(1),&lt;/P&gt;&lt;P&gt;         COL_SEL_MODE     TYPE I, "Column-selection:        multiple(2)&lt;/P&gt;&lt;P&gt;         LINE_SELECTOR(1) TYPE C, "Indicator: 'With line-selection col'&lt;/P&gt;&lt;P&gt;         V_SCROLL(1) TYPE C,            "not used&lt;/P&gt;&lt;P&gt;         H_GRID(1) TYPE C,        "Indicator: 'Horizontal  grid-lines'&lt;/P&gt;&lt;P&gt;         V_GRID(1) TYPE C,     "Indicator: 'Vertikal    grid-lines'&lt;/P&gt;&lt;P&gt;         COLS      TYPE STANDARD TABLE OF CXTAB_COLUMN&lt;/P&gt;&lt;P&gt;                        WITH NON-UNIQUE DEFAULT KEY,&lt;/P&gt;&lt;P&gt;         INVISIBLE(1) TYPE C,&lt;/P&gt;&lt;P&gt;       END   OF CXTAB_CONTROL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF CXTAB_TABSTRIP,&lt;/P&gt;&lt;P&gt;         ACTIVETAB LIKE SCREEN-NAME,&lt;/P&gt;&lt;P&gt;         %_SCROLLPOSITION LIKE SCREEN-NAME,&lt;/P&gt;&lt;P&gt;         INVISIBLE(1) TYPE C,&lt;/P&gt;&lt;P&gt;       END OF CXTAB_TABSTRIP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 11:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657525#M1287009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic strctures about TABLEVIEW and SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657526#M1287010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CXTAB_CONTROL&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  When we create a control variable of type TABLEVIEW by using CONTROLS&lt;/P&gt;&lt;P&gt;statement in ABAP to access table control from within ABAP ,the control variable&lt;/P&gt;&lt;P&gt;created is of deep structure type CXTAB_CONTROL.This structure itself consists of a structure(or line) of type CXTAB_COLUMN which represents the columns found on the table control and can be used to modify column properties.These&lt;/P&gt;&lt;P&gt;structures are defined in type group CXTAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; By changing or reading various fields of these structures we can modify the behaviour of  table control at run time in general and its columns.&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;To make a particular record as the top record in the table control we can use the field TOP_LINE of the structure CXTAB_CONTROL  .&lt;/P&gt;&lt;P&gt;tab_con-TOP_LINE = 5 " here tab_con is the name of the table control.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Some of the useful fields of the structure CXTAB_CONTROL are:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LINES&lt;/P&gt;&lt;P&gt;This field or attribute is used to specify the total number of records the table control will be showing and according to SAP must be filled explicitly before any LOOP ... ENDLOOP statement .LINES field having a correct value ensures automatic and correct scrolling.It sis of TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TOP_LINE&lt;/P&gt;&lt;P&gt;This field indicates the index of the record being shown in the top of the table control.It is of TYPE I.This field is used often for extended or self scrolling functions.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CURRENT_LINE&lt;/P&gt;&lt;P&gt;This field specifies the index of the current record being processed in the screen loop statement.It cannot be changed and its value is set by the system.It is of TYPE I.This field is used to determine the index and then used in PBO or PAI&lt;/P&gt;&lt;P&gt;to read the internal table or to modify the internal table.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;READ TABLE itab  INTO workarea INDEX tab_con-CURRENT_LINE .&lt;/P&gt;&lt;P&gt;MODIFY TABLE itab  FROM workarea INDEX  tab_con-CURRENT_LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FIXED_COLS&lt;/P&gt;&lt;P&gt;This field is used to change the number of lead columns(fixed) in table control at runtime.It is of TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LEFT_COL&lt;/P&gt;&lt;P&gt;This field is used to speify the first column that can be horizontallyy scrolled from the lead columns.It is of TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INVISIBLE&lt;/P&gt;&lt;P&gt;This field can be used to hide or make visible the entire table control at run time.It is of TYPE C(1)  and can have value of 'X' or ' '.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;COLS&lt;/P&gt;&lt;P&gt; This field is used to modify various column attributes at run time and represents&lt;/P&gt;&lt;P&gt;the collection of all the columns in the table control.It is  of TYPE CXTAB_COLUMN which is an internal table without header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;CXTAB_COLUMN&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;To access and modify the columns of the table control at run time w have to use the fields of the structure CXTAB_COLUMN which is a line of the structure CXTAB_CONTROL..This structure has 5 fields&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The fields of this structure are :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SCREEN&lt;/P&gt;&lt;P&gt;This filed is of TYPE SCREEN (screen table noramally used in ABAP) .It is &lt;/P&gt;&lt;P&gt;used to modify and access various screen element attributes that created the column .&lt;/P&gt;&lt;P&gt;e.g. SCREEN-NAME will return the  screen element that created the &lt;/P&gt;&lt;P&gt;column ( e.g if the screen elemrnt ADDRESS-PHONE created the column PHONE than the SCREEN-NAME will return the value  ADDRESS-PHONE&lt;/P&gt;&lt;P&gt;and not PHONE ,so we have to use offset method to retrieve the correct field name i.e SCREEN-NAME(+7) will give us the value PHONE ,This method can&lt;/P&gt;&lt;P&gt;be used  for example in dynamic sorting of the column fields when the name&lt;/P&gt;&lt;P&gt;of the column selected is required and not its screen element name&lt;/P&gt;&lt;P&gt;e.g SORT itab STABLE BY SCREEN-NAME(+7) .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INDEX&lt;/P&gt;&lt;P&gt;This field represents the position of the column in the table control.It is of TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INVISIBLE&lt;/P&gt;&lt;P&gt;This field is used to make a particular column invisible or visible.It is of TYPE C(1) and can have a vale of 'X' or ' '.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;VISLENGTH&lt;/P&gt;&lt;P&gt;This field represents the visible length of the column.It is of TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTED&lt;/P&gt;&lt;P&gt;This field represents whether the column is selected or not.It is of TYPE C(1) and can have a value of 'X' or ' '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-strctures-about-tableview-and-screen/m-p/5657526#M1287010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:04:49Z</dc:date>
    </item>
  </channel>
</rss>

