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

Requirement in Table Control

Former Member
0 Likes
734

Hi,

How do i make the non key fields inactive after selecting the row in table control. Please tell me.

Thanks, Ahmed

6 REPLIES 6
Read only

Former Member
0 Likes
716

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

Read only

0 Likes
716

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.

Read only

0 Likes
716

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

Read only

Former Member
0 Likes
716

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

Read only

0 Likes
716

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.

Read only

0 Likes
716

please clear my doubt