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

Loop at screen + radiobutton

Former Member
0 Likes
3,542

Hi all,

I have two radiobuttons, and when one is selected I need to mark a date field as required, but if the other radio button is selected i need to mark the same field of date as not required in the selection screen.

How can I do that?

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,282

Hi,

I don't think you can disable the required field (obligatory field) in selection screen.

Perhaps you can check the field and issue an error message (if initial).

Regards,

Ferry Lianto

2 REPLIES 2
Read only

Former Member
0 Likes
1,283

Hi,

I don't think you can disable the required field (obligatory field) in selection screen.

Perhaps you can check the field and issue an error message (if initial).

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,282

Hi all, i resolved the problem :

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-008.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 10(30) text-022 FOR FIELD p_r1.

SELECTION-SCREEN POSITION 1.

PARAMETERS : p_r1 TYPE c RADIOBUTTON GROUP g1 USER-COMMAND ucom.

SELECTION-SCREEN COMMENT 43(31) text-023 FOR FIELD p_r2.

SELECTION-SCREEN POSITION 40.

PARAMETERS : p_r2 TYPE c RADIOBUTTON GROUP g1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b4.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_r2 = 'X'.

IF screen-name = text-013. "S_BADAT-LOW

screen-required = c_1. " 1

MODIFY SCREEN.

ENDIF.

IF screen-name = text-014."S_UDATE-LOW

screen-required = c_0. "0

MODIFY SCREEN.

ENDIF.

ELSE.

IF screen-name = text-013.

screen-required = c_0.

MODIFY SCREEN.

ENDIF.

IF screen-name = text-014.

screen-required = c_1.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.