Skip to Content
0
Former Member
Nov 13, 2006 at 04:17 AM

making field mandatory on check-box clicking!!

22 Views

Hi

i am using 2 parameter declared like this:

PARAMETERS:
  cb_bord AS CHECKBOX ,           "Electronic Borderel
  p_file TYPE rlgrap-filename MODIF ID scr. "OBLIGATORY.  " File Name

and my req is when the check bos is checked the p_file shud b input enabled and mandatory.....

for that i am doing...

 CLEAR screen.
  IF cb_bord EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ c_scr.
        screen-input = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ c_scr.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

but at the same time how to make fields madatory..if i declare it mandatory in the parameter......once the check box is unchecked it again prompts for entering some value in that p_file parameter....

Regards

Gunjan