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

How to hide a Table control?

Former Member
0 Likes
1,998

Hi,

I've a modul-pool that has severals subscreens. One of them has 2 parts.

- Part 1 has two containers, one table control and several camps

- Part 2 has a container and several camps.

MODULE HIDE.

IF zf11_t_sol-tipo = '02'.

LOOP AT SCREEN.

IF screen-group1 = '5_1' OR screen-name = 'CONTAINER_1'

OR screen-name = 'TABLE_CONTROL

OR screen-name = 'CONTAINER_2'.

screen-input = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSEIF zf11_t_sol-tipo = '01'.

LOOP AT SCREEN.

IF screen-group1 = '5_2' OR screen-name = 'CONTAINER_3'.

screen-input = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

It's work perfectly for camps, but the Table_contol doesn't work. I try to join it into a group but i can´t.

Are there some solution or method? How can I hide the table control?

Thanks.

Edited by: Daniel Hernando on Apr 2, 2008 12:53 PM

Edited by: Daniel Hernando on Apr 2, 2008 12:54 PM

1 ACCEPTED SOLUTION
Read only

ak_upadhyay
Contributor
0 Likes
1,043

Hi,

In screen painter, open the table control attributes, enter the some value in group column.

ex:

PROCESS BEFORE OUTPUT.

MODULE SCR_INIT.

&----


*& Module SCR_INIT OUTPUT

&----


text

-


MODULE SCR_INIT OUTPUT.

LOOP AT SCREEN.

if g_auth = 'BM'.

if screen-group1 = 'GR1'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

endif.

modify screen.

endloop.

Reward points if useful....

Regards

AK

Hi,

I've a modul-pool that has severals subscreens. One of them has 2 parts.

- Part 1 has two containers, one table control and several camps

- Part 2 has a container and several camps.

MODULE HIDE.

IF zf11_t_sol-tipo = '02'.

LOOP AT SCREEN.

IF screen-group1 = '5_1' OR screen-name = 'CONTAINER_1'

OR screen-name = 'TABLE_CONTROL

OR screen-name = 'CONTAINER_2'.

screen-input = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSEIF zf11_t_sol-tipo = '01'.

LOOP AT SCREEN.

IF screen-group1 = '5_2' OR screen-name = 'CONTAINER_3'.

screen-input = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

It's work perfectly for camps, but the Table_contol doesn't work. I try to join it into a group but i can´t.

Are there some solution or method? How can I hide the table control?

Thanks.

Edited by: Daniel Hernando on Apr 2, 2008 12:53 PM

Edited by: Daniel Hernando on Apr 2, 2008 12:54 PM

5 REPLIES 5
Read only

ak_upadhyay
Contributor
0 Likes
1,044

Hi,

In screen painter, open the table control attributes, enter the some value in group column.

ex:

PROCESS BEFORE OUTPUT.

MODULE SCR_INIT.

&----


*& Module SCR_INIT OUTPUT

&----


text

-


MODULE SCR_INIT OUTPUT.

LOOP AT SCREEN.

if g_auth = 'BM'.

if screen-group1 = 'GR1'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

endif.

modify screen.

endloop.

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
1,043

Hi,

You can hide the Table Control by:

CONTROLS <ctrl> TYPE TABLEVIEW USING SCREEN <scr>.

cxt_control-columns = '0'.

modify screen.

OR Also:

use the following code in PBO.

loop at screen.

if screen-name = 'tabl_ctrl'.

screen-invisible = '0'.

endloop.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

Read only

Former Member
0 Likes
1,043

For AK,

I try to do you said but I can´t join the table control to a group. For camps there aren't any problem but for the table control it's imposible it show the option unwriteble.

For Chandra Sekhar,

I try too to use:

if screen-name = 'tc_'. But for some reason the table control doesn't appears in the debuggin mode, so it's imposible change it the status, for active or input.

The other solution you said:

CONTROLS 'TABLE_CONTROL' TYPE TABLEVIEW USING SCREEN '9005'.

I can active, it saids:

In unicode programs, the "" character cannot appear in names, as it does her in the name "TABLE_CONTROL".

A lot of thanks for yours answers!!

Read only

Former Member
0 Likes
1,043

Thanks. It's done

Read only

0 Likes
1,043

Hi...

Can u please share ur solution...

I too want to hide a field in table control..but it is not visible through screen-field.

Thanks a lot in advance.