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: 

Loop at screen + radiobutton

Former Member
0 Kudos

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

ferry_lianto
Active Contributor
0 Kudos

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

ferry_lianto
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.