IF Statement
Posted: Mon Feb 27, 2017 3:28 pm
Hi All,
I am trying code with two if statements one- IFCellsupdatable and other one if CellputN IFvAccount.
I am not able to save and execute TI process after the multiple try "END" out of place problem. I thought to take your suggestion to know where I am making mistake.
IF(CellIsUpdateable(TargetCube, elmCurrency, elmSource, vAccount, elmLOB1, elmEntity1, elmVersion, elmMeasure, elmPeriod) =1);
ELSE;
IF(vAccount @= '620000' );
CellPutN(Value,TargetCube, elmCurrency, elmSource, vAccount, elmLOB1, elmEntity1, elmVersion, elmMeasure, elmPeriod);
ENDIF;
IF(CellIsUpdateable(TargetCube, elmCurrency, elmSource, vAccount, elmLOB1, elmEntity1, elmVersion, elmMeasure, elmPeriod)=1);
ELSE;
IF(vAccount @= '640000' );
CellPutN(Value,TargetCube, elmCurrency, elmSource, vAccount, elmLOB2, elmEntity2, elmVersion, elmMeasure, elmPeriod);
ENDIF;
END;
Thanks
I am trying code with two if statements one- IFCellsupdatable and other one if CellputN IFvAccount.
I am not able to save and execute TI process after the multiple try "END" out of place problem. I thought to take your suggestion to know where I am making mistake.
IF(CellIsUpdateable(TargetCube, elmCurrency, elmSource, vAccount, elmLOB1, elmEntity1, elmVersion, elmMeasure, elmPeriod) =1);
ELSE;
IF(vAccount @= '620000' );
CellPutN(Value,TargetCube, elmCurrency, elmSource, vAccount, elmLOB1, elmEntity1, elmVersion, elmMeasure, elmPeriod);
ENDIF;
IF(CellIsUpdateable(TargetCube, elmCurrency, elmSource, vAccount, elmLOB1, elmEntity1, elmVersion, elmMeasure, elmPeriod)=1);
ELSE;
IF(vAccount @= '640000' );
CellPutN(Value,TargetCube, elmCurrency, elmSource, vAccount, elmLOB2, elmEntity2, elmVersion, elmMeasure, elmPeriod);
ENDIF;
END;
Thanks