Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hiding table control column

Former Member
0 Likes
669

Hi,

I have a table control on a screen in "Z" module pool program.

Now at runtime, I want to make one column of the table control invisible. How do I do it?

Thanks and Regards,

Mick

6 REPLIES 6
Read only

Former Member
0 Likes
639

in PBO u can do like this ......

loop at screen.
  if screen-name = TABCNTRL-FNAME.
  screen-invisible = 1.
  modify screen.
  endif.
endloop

Read only

Laxmana_Appana_
Active Contributor
0 Likes
639

Hi,

Write below code in PBO in table control loop , otherwise screen changes will not get reflected.

LOOP WITH CONTROL tc_detail.

MODULE change_tc_detail.

ENDLOOP.

MODULE change_tc_detail OUTPUT.

Loop AT screen.

if screen-name = 'FD1'.

screen-invisible = 1.

modify screen.

endif.

endloop.

ENDMODULE.

Regards

Appana

Read only

Former Member
0 Likes
639

hi

first of all assign a group to that perticular field.

then,

use the code in PBO.

loop at screen.

if screen-group1 = <grpname>.

screen-invisible = 1.

modify screen.

endloop.

regards

sushant.

Read only

0 Likes
639

How to Hide the column in Table control

lease check this thread..

Read only

Former Member
0 Likes
639

Hi,

TRy this-

loop at screen.

if screen-name = TABCNTRL-FNAME.

screen-active = 1.

screen-input = 0.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

endloop.

Regards,

Seema.

Read only

dani_mn
Active Contributor
0 Likes
639

Hi,

write this code in PBO module.

<b>

DATA: waa LIKE LINE OF TAB_CONTROL-cols.
CLEAR waa.


      LOOP AT TAB_CONTROL-cols INTO waa.

        IF waa-index = 1.

          waa-invisible = 'X'.
          MODIFY TAB_CONTROL-cols FROM waa.

        ENDIF.

      ENDLOOP.

</b>

REgards,

Wasim ahmed