Applied code below in order to have optional prompt, although optional prompt is succeed but after that I get the error which attach below
where
(A.BATCTRCDE='T413' or (A.BATCTRCDE='T405' and E.REPTYPE in (select REPLCODE from CDE_T_T3586)))and A.SACSCODE in ('FG', 'CO')
and
(
A.BATCACTYR = @Prompt('Enter This Year','N','Year Others':'BATCACTYR',Mono,Constrained,Persistent,,User:-1,Optional)
AND
(
A.BATCACTYR = year(getdate())
OR
A.BATCACTYR = @Prompt('Enter This Year','N','Year Others':'BATCACTYR',Mono,Constrained,Persistent,,User:-1,Optional)
))