EPBCS - @return function is not returning anything
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