SAP Message BRAINOLAPAPI136 - Variables are defined at invalid postion; see long text

Diagnosis
The variables are defined at an invalid position in the MDX statement.

System Response
The execution of the MDX statement ends with an error.

Procedure
Check the definition of the variables. If the statement is a nested MDXstatement, variables can only be defined in the innermost MDX statement.