‎2008 Apr 28 12:57 PM
hi all,
i neeed to make on field mandatory dependending on
weather a check bbox is checked.
‎2008 Apr 28 1:05 PM
I think you have to handle this thru Error message .
If Check box is checked .
then check for the field which u need mandatory .
IF Initial then throw an error message and set the curson on the field.
otherwise make to diff screen which can be operated(hide and unhide) depends upon u r check box value.
Rewards if u find useful.
‎2008 Apr 28 1:05 PM
Loop at screen.
if p_chk = 'X'.
if screen-name = 'P_PERNR'.
screen-required = 'X'.
modify screen.
endif.
endif.
endloop.
‎2008 Apr 28 1:06 PM
Hi,
you can do it in event.
at selection-screen output.
loop at screen.
check if checbox is checked or not and then depending upon that.
IF screen-name = '<fieldname in caps>'.
screen-required = 1.
MODIFY SCREEN.
ENDIF.
regards,
sudha
‎2008 Apr 28 2:05 PM
Hi,
Use below code.
parameters: p_check as checkbox,
p_name(20), P_name1(30).
at selection-screen output.
loop at screen.
if p_check = 'X'.
if screen-name = 'P_NAME'.
screen-required = '1'.
endif.
endif.
modify screen.
endloop.