cancel
Showing results for 
Search instead for 
Did you mean: 

Optional prompt on universe level

former_member419024
Participant
0 Kudos

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)

))

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

try this:

(A.BATCTRCDE='T413' or (A.BATCTRCDE='T405' and E.REPTYPE in (select REPLCODE fromCDE_T_T3586)))and A.SACSCODE in ('FG', 'CO')

and

(

  1. A.BATCACTYR = isnull(@Prompt('Enter This Year','N','Year Others':'BATCACTYR',Mono,Constrained,Persistent,,User:-1,Optional), A.BATCACTYR)

AND

(

  1. A.BATCACTYR = year(getdate())

OR

  1. A.BATCACTYR =isnull( @Prompt('Enter This Year','N','Year Others':'BATCACTYR',Mono,Constrained,Persistent,,User:-1,Optional), A.BATCACTYR)

))


regards

Andreas

former_member419024
Participant
0 Kudos

Thank for replied, tried but getting the same error message.

Former Member
0 Kudos

which BO Version you ar using?

former_member419024
Participant
0 Kudos

Support Pack 7 - 14.0.7.1147

BO4.0

Former Member
0 Kudos

Hi,

look at this

Perhaps try first:

A.BATCACTYR =isnull( @Prompt('Enter This Year','N','Year Others\BATCACTYR',Mono,,,,,Optional), A.BATCACTYR)

Answers (0)