<?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: Cell - Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807872#M346633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;process before output.

* Set screen attributes for table control
  LOOP AT itab_0100 with control itabctl
                    cursor itabctl-top_line.
    MODULE modify_screen_0100.
  ENDLOOP.

  MODULE modify_screen_0100 OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1  = '001'.
      screen-input = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LOOP AT SCREEN, you can add logic to determine if you want to make it display or not. In this way, you can have any field in the table control open for input or display only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 21:13:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-11T21:13:40Z</dc:date>
    <item>
      <title>Cell - Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807869#M346630</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;I have table control have 10 columns . My requirement is i need to make the  &lt;/P&gt;&lt;P&gt;alternative row cells in display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie i need to convert the &lt;/P&gt;&lt;P&gt;  1st row 3rd column, &lt;/P&gt;&lt;P&gt;  3rd row 5th column &lt;/P&gt;&lt;P&gt;  5th row 3rd column&lt;/P&gt;&lt;P&gt;  7th row 5th column .............like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code to make this happen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at tabcntl7-cols into i_cols.&lt;/P&gt;&lt;P&gt;      v_tabix1 = sy-tabix.&lt;/P&gt;&lt;P&gt;      condense i_cols-screen-name no-gaps.&lt;/P&gt;&lt;P&gt;      v_strlen = strlen( i_cols-screen-name ).&lt;/P&gt;&lt;P&gt;      search i_cols-screen-name for '-'.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq c_0.&lt;/P&gt;&lt;P&gt;         v_sstrg = sy-fdpos + c_1.&lt;/P&gt;&lt;P&gt;         v_strlen = v_strlen - v_sstrg.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      move i_cols-screen-name+v_sstrg(v_strlen) to v_scrfld.&lt;/P&gt;&lt;P&gt;      read table i_yfe047_1 into wa_yfe047_1&lt;/P&gt;&lt;P&gt;                 with key fieldname = v_scrfld.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq c_0.&lt;/P&gt;&lt;P&gt;          i_cols-screen-input = c_off.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;          i_cols-screen-input = c_on.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify tabcntl7-cols from i_cols index v_tabix1.&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;But currently system changing all rows to display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 20:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807869#M346630</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2006-12-11T20:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cell - Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807870#M346631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the fields you want to be display only into a field group on the screen painter. Then in the PBO:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    LOOP AT SCREEN.
      IF screen-group1  = '001'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 20:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807870#M346631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cell - Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807871#M346632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain if we use Loop at screen in table control whether it will work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 21:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807871#M346632</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2006-12-11T21:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cell - Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807872#M346633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;process before output.

* Set screen attributes for table control
  LOOP AT itab_0100 with control itabctl
                    cursor itabctl-top_line.
    MODULE modify_screen_0100.
  ENDLOOP.

  MODULE modify_screen_0100 OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1  = '001'.
      screen-input = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LOOP AT SCREEN, you can add logic to determine if you want to make it display or not. In this way, you can have any field in the table control open for input or display only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 21:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807872#M346633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T21:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cell - Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807873#M346634</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;Give the LOOP AT SCREEN..ENDLOOP.. Inside the LOOP AT ITAB ..ENDLOOP. of the PBO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL TC..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE DISABLE.&lt;/P&gt;&lt;P&gt;&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;MODULE DISABLE.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    ....&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 21:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cell-display/m-p/1807873#M346634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T21:14:13Z</dc:date>
    </item>
  </channel>
</rss>

