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

hide column in Table control wizard

Former Member
0 Likes
2,086

Hi

I want to hide one column in table control, which is created using wizard.

In dynpro layout, i can see in the attributes of that field, invisible attribute is disabled. i cant check it invisble.

Can you tell me how to enable it?

regards

Chandra

1 ACCEPTED SOLUTION
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,892

Hi princeck.

The invisible option will be enabled only for GUI elements like text box,radio button,push button etc.

To make a column in a table control invisible, you have to write the business logic in PBO (loop at screen...endloop) of that screen.

3 REPLIES 3
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,893

Hi princeck.

The invisible option will be enabled only for GUI elements like text box,radio button,push button etc.

To make a column in a table control invisible, you have to write the business logic in PBO (loop at screen...endloop) of that screen.

Read only

Former Member
0 Likes
1,892

hi,

you can not hide any colum automatically if you have used table control wizard. insted you can use LOOP ENDLOOP cocept . The LOOP ENDLOOP code has to be written in PBO block.

Thanx

Ankitesh

Read only

0 Likes
1,892
tbc-hide-column.txt

MODULE MODIFY_100 OUTPUT.
 DATA wa_tabctrl TYPE cxtab_column .
 LOOP AT TABCTRL-COLS INTO WA_TABCTRL.
 IF WA_TABCTRL-screen-NAME =  'zemp_nm'. 
 WA_TABCTRL-INVISIBLE =  'X'.
 MODIFY TABCTRL-COLS FROM WA_TABCTRL.
  ENDIF.
 ENDLOOP.
ENDMODULE.

Try This Code. Definitely you can hide the column. You Should write this code in PBO and out side the loop of TBC.