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;
}
}
Thanks for sharing this.,
ReplyDeleteLeanpitch provides online training in Scrum Master during this lockdown period everyone can use it wisely.
Join Leanpitch 2 Days CSM Certification Workshop in different cities.
Best Scrum master certification