Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
EPBCS - @return function is not returning anything — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

EPBCS - @return function is not returning anything

Accepted answer
24
Views
8
Comments
edited Mar 13, 2021 9:17PM in Planning 8 comments

Content

Hi all,

In EPBCS OEP_FS cube I wrote a custom script in order to validate my start/end month prompts, please see below.

When I run it, it does not return anything even though the first condition is true, can you please help?

 fix("OEP_Working","BegBalance","No Plan Element",
 "No Product","No Departments","No Entity","No Currency","OEP_Actual","No Division")

 "A41010"(if("Fiscal TP-Index"->{prmptStartMonth} > "Fiscal TP-Index"->{prmptEndMonth})
 
                  @return(@hspmessage("THE START MONTH IS GREATER THAN THE END MONTH"),error);
                  
                  else
                  
                  @return(@hspmessage("THE START MONTH IS OK"),info);
 
                  endif)
 
 endfix
 

 

Code Snippet

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!