Skip to Content

Nested Ternary Expressions

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 11, 2017 at 08:48 PM

    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!

    Add comment
    10|10000 characters needed characters exceeded