cancel
Showing results for 
Search instead for 
Did you mean: 

Nested Ternary Expressions

0 Kudos

Hi,

I'm trying to write a nested ternary expression on BPC 10.1 NW on HANA. I believe these expressions used to work on 10.0.

Something along the lines of the line below:

*REC(EXPRESSION=(LOOKUP(METHOD)==1)?((3<49)?3:2):1, ACCOUNT_VOL="VD641010")

I simplified the statement to just using number and it seems like it's the nested structure what doesn't work. Is this correct?

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

First - please read: https://blogs.sap.com/2014/01/31/how-to-ask-questions-about-script-logic-issues/

Nested ternary operator is not supported with ABAP calc engine. Please check!

Also try to create test case without LOOKUP with data from one model. Provide log!

Answers (0)