‎2008 May 07 8:05 AM
Hi Experts,
In a selection screen I have one checkbox and a related parameter field.condition is that, when the checkbox is checked the field should be mandatory and when it is unchecked, the field should be optional.
when i am selectiong the checkbox first time it is working perfectly but without providing any value if I am trying to uncheck the checkbox it is not able to trigger the "At selection-screen output" event due to the system generated error message.
can any1 help me on that.
‎2008 May 07 9:47 AM
Try this example code:
PARAMETERS: p_text(10) TYPE c.
PARAMETERS: p_check TYPE c AS CHECKBOX.
AT SELECTION-SCREEN.
IF p_check EQ 'X'.
IF p_text IS INITIAL.
MESSAGE 'Text field is mandatory' TYPE 'E'.
ENDIF.
ENDIF.
START-OF-SELECTION.
WRITE: / 'OK!'.
‎2008 May 07 10:04 AM
thanks a lot for your ans.
That means I can't use At selection-screen output in this case.
is it??
‎2008 May 07 9:56 AM
hi
good
if you do any kind of changes in the system generated error mesages than you have to do the changes in the configuration.
thanks
mrutyun^