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: 

Need to make a field inactive but still showing values

Former Member
0 Kudos
199

Hello , i am adding some controls for a table maintenance( SM30)

i have two fields, fields A and B.

when i add an entry in field A the description is fetched.I need to display the description in the B column and also grey out the B column.

i have used :

loop at screen .

if screen-name = 'Znum-EMET'.

screen-active = 0.

modify screen.

endif.

endloop.

it is only greying out the field but not displaying the fetched description.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
93
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.
PARAMETERS: r1 RADIOBUTTON GROUP rad1 USER-COMMAND onlx default 'X',
r2 RADIOBUTTON GROUP rad1.

SELECT-OPTIONS:
s_veh FOR but000-partner modif id AB,
s_driver FOR but000-partner modif id AA.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF r1 = 'X'.

IF screen-group1 = 'AB'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.

IF r2 = 'X'.
IF screen-group1 = 'AA'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.

Try these codes it works.

Rehards,

Gurpreet

3 REPLIES 3

Former Member
0 Kudos
94
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.
PARAMETERS: r1 RADIOBUTTON GROUP rad1 USER-COMMAND onlx default 'X',
r2 RADIOBUTTON GROUP rad1.

SELECT-OPTIONS:
s_veh FOR but000-partner modif id AB,
s_driver FOR but000-partner modif id AA.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF r1 = 'X'.

IF screen-group1 = 'AB'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.

IF r2 = 'X'.
IF screen-group1 = 'AA'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.

Try these codes it works.

Rehards,

Gurpreet

0 Kudos
93

awesome it works thx.

Former Member
0 Kudos
93

Hi,

Instead of active use INPUT = 0.

Thanks,

Prashanth