Skip to Content
0
Former Member
Jun 05, 2009 at 11:49 AM

BPC Logic- Nesting WHEN/IS

153 Views

Hi experts, how exactly can we nest WHEN/IS statements?

1) Can we do this?

*WHEN ACCOUNT
*IS "A"
     *REC(something)
     *REC(something)
     *WHEN Otherdim
     *IS "Otherthing"
           *REC(something)
     *ENDWHEN
*ENDWHEN

2) And can we do this?

*WHEN ACCOUNT
*IS "A"
     *WHEN Otherdim
     *IS "Otherthing"
           *REC(something)
      *ENDWHEN

      *WHEN Otherdim
      *IS "Otherthing"
           *REC(something)
      *ENDWHEN
*ENDWHEN

3) In the help guide we can see this example. I don't fully understand it: is yyy a member from a different dimension than xxx?

*WHEN xxx
   *IS "A"
      *REC(&ldots;)
      *REC(&ldots;)
   *IS "B"
      *REC(&ldots;)
   *WHEN yyy
      *IS "C","D","E"
         *REC(&ldots;)
   *ELSE
      *REC(&ldots;)
   *ENDWHEN
*ENDWHEN

Regards,

Rafa