Here goes the scenario for upload financial dimension value for Dynamic AX 2012
Example : You have financial dimension : Department and you want to insert or add financial dimension value into it.
here goes the scripts :
static void TCN_DPRcreateDimensionValue(Args _args)
{
DimensionValueService service;
DimensionValueContract dimensionValueContract;
TCN_FinancialDimensionValueTemp dimTemp;
service = new DimensionValueService();
dimensionValueContract = new DimensionValueContract();
try
{
while select dimTemp order by FinancialDimension
{
dimensionValueContract.parmDescription(dimTemp.FinancialDimensionDescription); //financial dimension value description
dimensionValueContract.parmValue(dimTemp.FinancialDimensionValue); //financial dimension value;
dimensionValueContract.parmDimensionAttribute(dimTemp.FinancialDimension); //financial dimension
service.createDimensionValue(dimensionValueContract);
}
}
catch
{
ttsAbort;
}
info("Hore Sukses");
}
Good Luck
Please suit for your needs :D
Dwipa
READ MORE -
Upload Financial Dimension Value For Dynamic AX 2012
Example : You have financial dimension : Department and you want to insert or add financial dimension value into it.
here goes the scripts :
static void TCN_DPRcreateDimensionValue(Args _args)
{
DimensionValueService service;
DimensionValueContract dimensionValueContract;
TCN_FinancialDimensionValueTemp dimTemp;
service = new DimensionValueService();
dimensionValueContract = new DimensionValueContract();
try
{
while select dimTemp order by FinancialDimension
{
dimensionValueContract.parmDescription(dimTemp.FinancialDimensionDescription); //financial dimension value description
dimensionValueContract.parmValue(dimTemp.FinancialDimensionValue); //financial dimension value;
dimensionValueContract.parmDimensionAttribute(dimTemp.FinancialDimension); //financial dimension
service.createDimensionValue(dimensionValueContract);
}
}
catch
{
ttsAbort;
}
info("Hore Sukses");
}
Good Luck
Please suit for your needs :D
Dwipa