Application Development 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: 

Table control with cells modifiable input

Former Member
0 Kudos

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

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

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