Application Development and Automation 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: 
Read only

Disabling Fields

Former Member
0 Likes
585

Hi there

Is there a way to do the following: I have a screen with a couple of select-options and one check box. If the check box is ticked the select-option fields should become read only..

Thanx,

Jan

5 REPLIES 5
Read only

Former Member
0 Likes
564

Use the LOOP AT SCREEN ... ENDLOOP statements in the event AT SELECTION-SCREEN OUTPUT.

Read only

Former Member
0 Likes
564

Hi,

Use the loop at screen

LOOP AT SCREEN.
   IF rb_head = c_x  AND screen-group1 = c_aa.
SCREEN-OUTPUT      1   "C Displayed field 
 MODIFY screen.
   ENDIF.
EnDLOOP.

Regards,

Nandha

Read only

former_member585060
Active Contributor
0 Likes
564

Hi,

Try this code

TABLES : mara.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.

SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID ggg.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

PARAMETERS : rd_r1 TYPE c RADIOBUTTON GROUP r2 MODIF ID ccc,

rd_r2 TYPE c RADIOBUTTON GROUP r2 MODIF ID ccc,

rd_r3 TYPE c RADIOBUTTON GROUP r2 MODIF ID ccc.

SELECTION-SCREEN END OF BLOCK b2.

PARAMETERS var1 TYPE c

AS CHECKBOX USER-COMMAND onli.

AT SELECTION-SCREEN OUTPUT.

IF var1 = 'X' .

LOOP AT SCREEN.

CASE screen-group1.

WHEN 'GGG'.

screen-active = 0.

MODIFY SCREEN.

ENDCASE.

ENDLOOP.

ENDIF.

START-OF-SELECTION.

Regards

Bala Krishna

Read only

0 Likes
564

Awesome!

Thanx,

Jan

Read only

Former Member
0 Likes
564

REPORT ZSRK_024 . .

TABLES : VBAP.

SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN,

S_POSNR FOR VBAP-POSNR,

S_MATNR FOR VBAP-MATNR,

S_WERKS FOR VBAP-WERKS.

PARAMETER : CH AS CHECKBOX.

AT SELECTION-SCREEN OUTPUT.

IF CH EQ 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME CS 'S_VBELN' OR

SCREEN-NAME CS 'S_POSNR' OR

SCREEN-NAME CS 'S_MATNR' OR

SCREEN-NAME CS 'S_WERKS'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.