Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

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!