‎2008 Feb 01 10:00 AM
Hi all,
How to disable the table control. User cant enter anything to the table control. Code pls
thks
‎2008 Feb 01 10:09 AM
Hi,
in PBO of that screen.
include a module say change_attr
module change_attr.
LOOP AT SCREEN.
IF screen-name = 'I_POINT-POINT'. "field of that table control and not table control name.
screen-input = 0.
ENDIF.
modify screen.
endloop.
endmodule.
Cheers,
Will.
‎2008 Feb 01 10:04 AM
‎2008 Feb 01 10:09 AM
Hi,
in PBO of that screen.
include a module say change_attr
module change_attr.
LOOP AT SCREEN.
IF screen-name = 'I_POINT-POINT'. "field of that table control and not table control name.
screen-input = 0.
ENDIF.
modify screen.
endloop.
endmodule.
Cheers,
Will.
‎2008 Feb 01 10:21 AM
It cant. I tested. But when i try it with a input box ... it can be disable but not in table control of that field. Why? Anything that is not set ?
‎2008 Feb 01 10:40 AM
hi,
try like this
MODULE disable OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'ITAB-MATNR'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE. " disable OUTPUT
reward if usefull...
‎2008 Feb 01 10:42 AM
Do i need to create another new module for the disable of the table control? Can't i do it in MODULE STATUS_100 OUTPUT.
‎2008 Feb 01 10:42 AM
Hi,
goto ur screen>layout->here u have ur table control if u hav 4 columns in ur table control....ull hav 4 I/O field................U hav 2 give their name for screen name in caps ......
do it in same module only
Cheers,
Will.
‎2008 Feb 01 10:43 AM
‎2008 Feb 01 10:47 AM
ookay i will try later as i am already offline.
What do u mean by do in the same module?
I built the table control in screen 100.
My PBO is MODULE STATUS_100 OUTPUT.
Can i jus put the code in here?
‎2008 Feb 01 10:49 AM
hi,
in screen flow logic make new module disable....
PROCESS BEFORE OUTPUT.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TAB1'
MODULE tab1_change_tc_attr.
*&SPWIZARD: MODULE TAB1_CHANGE_COL_ATTR.
LOOP AT itab
INTO itab
WITH CONTROL tab1
CURSOR tab1-current_line.
MODULE tab1_get_lines.
MODULE disable.
*&SPWIZARD: MODULE TAB1_CHANGE_FIELD_ATTR
ENDLOOP.
MODULE status_1000.
‎2008 Feb 01 10:51 AM