02-08-2011 12:40 PM
Hello,
I built a Table control in a subscreen for the user to input some fields in an internal table.
As a row is entered, some further processing is done on this row. for this, I need that some fields in this row become dimmed.
the solution that i used:
in PBO of the Subscreen:
LOOP AT CSITAB cursor TCCS-current_line WITH CONTROL TCCS .
module change_fields.
ENDLOOP.
in the Module change_fields:
data: my_tc type SCXTAB_COLUMN.
LOOP AT tccs-cols into my_tc .
IF csitab-salesdocument <> space.
IF my_tc-screen-group1 = '001'.
my_tc-screen-input = '0'.
modify tccs-cols from my_tc.
ENDIF.
modify screen.
ENDLOOP.
The effect of this code, is that it changes the whole column to output only & no other value can be entered.
I want to have some fields on the same column as editable and others as output only.
Your help is appreciated.
Thanks
02-08-2011 3:20 PM
A this PBO level, forget the Control fields, use a simple LOOP AT SCREEN, like
* in the Module change_fields:
LOOP AT SCREEN.
IF csitab-salesdocument NE space.
IF screen-group1 = '001'.
screen-input = '0'.
ENDIF.
MODIFY screen.
ENDIF.
ENDLOOP.
Regards,
Raymond