<?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: changing fields at programming level in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468010#M1058531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : cols like line of tc-cols.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at tc-cols into cols.
if cols-screen-group1 eq 'MOD'.
 screen-input eq '0'.
modify tc-cols from cols.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here tc is table control.&lt;/P&gt;&lt;P&gt;MOD is group specified in screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 10:51:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-15T10:51:49Z</dc:date>
    <item>
      <title>changing fields at programming level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468005#M1058526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to make fields in a table control as visible and invisible at programming level? &lt;/P&gt;&lt;P&gt;i know how to do it at screen level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me on this issue.&lt;/P&gt;&lt;P&gt;thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 09:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468005#M1058526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T09:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: changing fields at programming level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468006#M1058527</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;It can't hide a single field of table control, but only to make it available for input/output or output only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can do it by LOOP AT SCREEN statament into LOOOP/ENDLOOP of table control in PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PBO

LOOP AT. ....
  MODULE SCREEN.
ENDLOOP.

MODULE SCREEN.
  LOOP AT SCREEN.
     IF ......
       SCREEN-INPUT = 0.
       MODIFY SCREEN.
    ENDIF.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can hide a colunm changing the parameters of table control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONTROLS: T_CTRL TYPE TABLEVIEW .............................

* Workarea for table control
DATA: BEGIN OF WA_CTRL,
        SCREEN      LIKE SCREEN,     "Attributes struktur SCREEN
        INDEX       TYPE I,         "Position of a column on the screen
        SELECTED(1) TYPE C,          "Indicator 'column selected'
        VISLENGTH   LIKE ICON-OLENG, "Visualised length of a column
        INVISIBLE(1) TYPE C,         "Indicator 'column invisible'
      END   OF WA_CTRL.

PROCESS PBO
  MODULE CHANGE_T_CTRL.

MODULE CHANGE_T_CTRL.
   LOOP AT T_CTRL-COLS INTO WA_CTRL.
     IF .......
      WA_CTRL-INVISIBLE = 'X'.
      MODIFY T_CTRL-COLS FROM  WA_CTRL.
    ENDIF.
   ENDLOOP.
ENDMOUDLE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 10:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468006#M1058527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T10:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: changing fields at programming level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468007#M1058528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this at programming level too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  if ( screen-group1 EQ 'ZR1' ).
      screen-invisible = 1.
  endif.
  modify screen.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 10:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468007#M1058528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T10:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: changing fields at programming level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468008#M1058529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to loop on the screen table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the pbo module, write a code similar to this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose your table control is named as tabctrl and it has two fields f1 and f2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'TABCTRL-F1'.&lt;/P&gt;&lt;P&gt;screen-invisible = 1. "this will make the entire column F1 visible, for particular cells, you will need to pass the index as for example TABCTRL-F1(1) - first row &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 10:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468008#M1058529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T10:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: changing fields at programming level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468009#M1058530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do loop at screen , and inside the loop make the field invisible for that particular screen element name. Refer the example code below. This will make the screen invisible for the field LIPS-LGORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    CHECK SCREEN-NAME = 'LIPS-LGORT'.&lt;/P&gt;&lt;P&gt;    SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 10:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468009#M1058530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: changing fields at programming level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468010#M1058531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : cols like line of tc-cols.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at tc-cols into cols.
if cols-screen-group1 eq 'MOD'.
 screen-input eq '0'.
modify tc-cols from cols.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here tc is table control.&lt;/P&gt;&lt;P&gt;MOD is group specified in screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 10:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-at-programming-level/m-p/4468010#M1058531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T10:51:49Z</dc:date>
    </item>
  </channel>
</rss>

