Skip to Content
0
Former Member
Aug 24, 2011 at 04:40 PM

Scrip Logic *IS *ELSE behaviour

22 Views

Hello everyone,

I am working with BPC 7.5 NW SP08 and trying to make an script logic using WHENISESEENDWHEN, but having some problems.

This is my code

*XDIM_MEMBERSET R_REGALIAS=Antes

*WHEN R_CATSOCIO
*IS Regalias
      *REC(EXPRESSION=%VALUE%,R_REGALIAS=Despues)
*ELSE
     *REC(EXPRESSION=(100-([R_CATSOCIO].[Regalias]))*%VALUE%/100,R_REGALIAS=Despues) 
*ENDWHEN

What i would expect is that when R_CATSOCIO = Regalias the *REC inside the *ELSE would not be executed but actually when is Regalias, is doing both *REC

I have try also writing *IS NOT Regalias (I wrote not beacuse i do not why the message does not allow to write symbol less than, greater than) instead of else, but is getting executed also.

Is this a normal behavior or is a known problem? Thanks for your answers

Edited by: cegarcia on Aug 24, 2011 6:42 PM