04-02-2008 11:45 AM
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
04-02-2008 11:59 AM
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
04-02-2008 11:59 AM
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
04-02-2008 11:59 AM
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.
04-02-2008 12:34 PM
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!!
04-25-2008 9:17 AM
11-13-2008 12:32 PM
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.