Skip to Content
0
Former Member
Dec 09, 2011 at 02:31 PM

Reg : Module pool Table control - disabling and enabling row wise

1047 Views

Dear Techies,

I have a Table control, I want to made some part of Row should be grayed out (Disable) and the other is Enable.

let say in my Table control I have 5 records.

each record has 10 columns and the first 4 fields I want to disable and the other 6 will be enable mode.

here the example

SNO PR No PR Item-no Quantity Price "asume this is the Table control

1 100001 10 5 500/-

2 100002 10 7 1600/-

3 100002 20 3 1500/-

I will enter PR no, PR-item, Qty and Price and if saved it one Unique no is generating through SNRO.

Once it is saved I want to grayed out PR No, PR Item-no and the rest of two fields are enable mode.

also I can able to add 4 th row, 5 th row and so on.

I have assigned a Group for the above fields in Screen and I loop that screen in PBO also I made Screen-input = 0.

first I have read those inputs in in PAI and I used like DESCRIBE TABLE ITAB lines lv_var.

if lv_var is not initial.

tablecontrolname-lines = lv_var.

endif.

clear lv_var.

In the above case I can able to disable all remining empty lines other than what I entered but I want to disable some portion of line should be disable and the other will be enable.

Please suggest and Tnks in advance.

Regards

valluru