‎2008 Nov 27 11:09 AM
Hi,
How do i make the non key fields inactive after selecting the row in table control. Please tell me.
Thanks, Ahmed
‎2008 Nov 27 11:12 AM
Hi,
group all the non key field to a group id in screen painter( there are 4 groups )
then in PBO
loop at screen
if screen-group1 = 'GRP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
ENDIF.
endloop.
Hope this is clear to you.
Regards
Ramchander Rao.K
‎2008 Nov 27 11:16 AM
Hi,
Thanks for your reply. But my question is if the table control has a colmun which we use to select the row then after doing this the non key fields should be inactive.
As the column does not have function code then how will i code it. Please clear me.
Thanks , Ahmed.
‎2008 Nov 27 11:21 AM
Hi
if you double click the table control in the screen painter there is w/selcolumn
give the name as itab-ind like that
if you check it you will get a button at the leftmost of the table control
add one more field with the same name in the program
in PBO
loop at screen
if itab-ind = 'X'.
if screen-group1 = 'GRP'.
SCREEN-input = 0.
screen-active = 0.
modify screen.
endif
endif.
endloop.
hope this will serve your purpose.
regards
Ramchander Rao.K
‎2008 Nov 27 11:17 AM
Try tihs :
To disable/enable fields of a column you can use the field SCREEN-INPUT of the
structure CXTAB_COLUMN and set its value to 0 or 1.
To disable input at column 4 of the table control .
DATA col LIKE LINE OF tab_con-COLS.
READ TABLE tab_con-COLS INTO col INDEX 4.
col-SCREEN-INPUT = 0 .
MODIFY tab_con-COLS FROM col INDEX 4.
Check this link for more detailed info on CXTAB_COLUMN:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm
Regards
Neha
Edited by: Neha Shukla on Nov 27, 2008 4:48 PM
‎2008 Nov 27 11:21 AM
Hi,
Actually after i select it ,those fields should go immediately disable. But there is no movement of control either to PAI OR PBO as there is no function code available.
Thanks , Ahmed.
‎2008 Nov 27 11:27 AM