2007 Jun 25 4:10 PM
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,
2007 Jun 25 4:18 PM
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
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
2007 Jun 25 4:18 PM
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
2007 Jun 28 8:39 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |