Skip to Content
0

Nested Ternary Expressions

Sep 11, 2017 at 06:12 PM

72

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Vadim Kalinin Sep 11, 2017 at 08:48 PM
0

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!

Share
10 |10000 characters needed characters left characters exceeded