cancel
Showing results for 
Search instead for 
Did you mean: 

If then else statement in bex

Former Member
0 Kudos

Does anyone know how to create an If Then Else statement in BEX?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi syed,

I think this might help you...

(( 'Cumulative Value GC' > 0 ) * 'Dummy Key Figure') + (( 'Cumulative Value GC' <= 0 ) * 15)

If 'Cumulative Value GC' > 0.

rslt = 'Dummy Key Figure'.

else.

rslt = 15.

endif.

check out and reward me if its helpful.

regards,

ani

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Syed,

Please go to BEX query designer.

Select or create new CKF

Go to operator as data function (just below percentage function).

Delta of something non zero populates 1 else Delta populates 0.

You have only this much possibility in BEX while creating if then else function.

If the above info found useful, please reward me with points.

Regards,

Subha

Former Member
0 Kudos

Hi Syed,

You can create a IF-THEN-ELSE statement using the Boolean Operators given in BEx

(Eg)

IF<Logic Expression> THEN <Expression1> ELSE <Expression2>

this expression can be made using a formula in the form

<Logic Expression> * <Expression1> + NOT <Logic Expression> * <Expression2>

Regards,

vasanth.vf