dimStorage = DimensionAttributeValueSetStorage::find(custtrans.defaultdimension);
for(i=1 ; i<= dimStorage.elements() ; i++)
{
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == #Product)
{
ProductUnit = dimStorage.getDisplayValueByIndex(i);
select Value,Description from dimensionFinancialTag where dimensionFinancialTag.Value == ProductUnit;
Product = dimensionFinancialTag.Description;
}
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == #ProfitCenter)
{
ProfitcenterUnit = dimStorage.getDisplayValueByIndex(i);
select Value,Description from dimensionFinancialTag where dimensionFinancialTag.Value == ProfitcenterUnit;
branchname = dimensionFinancialTag.Description;
}
}
for(i=1 ; i<= dimStorage.elements() ; i++)
{
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == #Product)
{
ProductUnit = dimStorage.getDisplayValueByIndex(i);
select Value,Description from dimensionFinancialTag where dimensionFinancialTag.Value == ProductUnit;
Product = dimensionFinancialTag.Description;
}
if(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name == #ProfitCenter)
{
ProfitcenterUnit = dimStorage.getDisplayValueByIndex(i);
select Value,Description from dimensionFinancialTag where dimensionFinancialTag.Value == ProfitcenterUnit;
branchname = dimensionFinancialTag.Description;
}
}