2009 Feb 19 2:19 PM
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.
2009 Feb 19 2:44 PM
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
2009 Feb 19 2:44 PM
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
2009 Feb 19 3:02 PM
2009 Feb 19 3:02 PM