03-13-2011 7:37 AM
Hi,
I have a requirement to open up grayed out fields for input in module pool table control.
I have designed a module pool screen with table control with fileds F1, F2, F3 in which it displays for suppose 3 entries.
in these F1 is grayed out and F2, F3 are open for modifications. Now i need to add another functionality to add new entries
in the same table control with all the fields F1, F2 & F3 as input fields and add that entry to the same internal table and update data base.
Can you please let me know how can I achieve this.
Thanks.
raviraj.
03-14-2011 11:57 AM
Hi Ravi,
You can achieve it by grouping the fields F1, F2 and F3 in the screen painter. And write this piece of code in the PBO of the screen that has the Table control .
LOOP AT SCREEN.
IF screen-group1 EQ 'G1' and some condition.
screen-input = 1. "input enabled
MODIFY SCREEN.
else.
screen-input = 0. "input disabled
MODIFY SCREEN.
ENDIF.
ENDLOOP.
If needed, add some more conditions too. And remember the forum rules, you can find the solution by searching in SDN before posting.
Hope this is helpful,
Cheers,
Vivek.
Edited by: Vivek91188 on Mar 15, 2011 8:56 AM