Alias to Element
Posted: Tue Mar 08, 2011 10:59 pm
I have data file having the alias value instead of the element value.
APN is the alias for ProductCode.
Normally for element i would be doing
IF( DIMIX(DimensionProduct, ProductCode) = 0);
DimensionElementComponentAdd(DimensionProduct, 'All Products', ProductCode, 1);
ENDIF;
But i have tried the following and it doesnt seems to be working as APN is an alias to ProductCode but it is treating APN is an element and check if APN does exist as an element in the dimension.
IF( DIMIX(DimensionProduct, APN) = 0);
DimensionElementComponentAdd(DimensionProduct, 'All Products', APN, 1);
ENDIF;
I am trying to add data using an alias name and the statement below works for those that has an alias for ProductCode and generate an error for those whose alias does not exist within the dimension.
CELLPUTN(SOH,CubeName,Year2,'Final','Week '|CalandarWeek,Store,APN,'SOH');
did i miss out something ?
APN is the alias for ProductCode.
Normally for element i would be doing
IF( DIMIX(DimensionProduct, ProductCode) = 0);
DimensionElementComponentAdd(DimensionProduct, 'All Products', ProductCode, 1);
ENDIF;
But i have tried the following and it doesnt seems to be working as APN is an alias to ProductCode but it is treating APN is an element and check if APN does exist as an element in the dimension.
IF( DIMIX(DimensionProduct, APN) = 0);
DimensionElementComponentAdd(DimensionProduct, 'All Products', APN, 1);
ENDIF;
I am trying to add data using an alias name and the statement below works for those that has an alias for ProductCode and generate an error for those whose alias does not exist within the dimension.
CELLPUTN(SOH,CubeName,Year2,'Final','Week '|CalandarWeek,Store,APN,'SOH');
did i miss out something ?