We had a custom report created for us called "Clear G/L Restrictions" and it seems to reset our dimensions to our default dimensions...possibly...where can I find our default dimensions as I assume they are different from our active dimensions?
Comments:
Modified to copy state of Default Dimension table to temp table, and restore values in "Set" mode
Only restore default dimensions that exist (this excludes dimensions that have been created between
running Clear and running Set.
A sample of the code is below.
IF ReportMode = ReportMode::Clear THEN BEGIN
Counter += 1;
Window.UPDATE (1,ROUND(Counter/Total*10000,1));
DefDimTemp.INIT;
DefDimTemp.TRANSFERFIELDS ("Default Dimension");
DefDimTemp.INSERT;
"Default Dimension".VALIDATE("Value Posting","Default Dimension"."Value Posting"::" ");
"Default Dimension".MODIFY(TRUE);
END ELSE IF ReportMode = ReportMode::Set THEN BEGIN
Counter += 1;
Window.UPDATE (1,ROUND(Counter/Total*10000,1));
IF DefDimTemp.GET ("Table ID","No.","Dimension Code") THEN BEGIN
"Value Posting" := DefDimTemp."Value Posting";
MODIFY(TRUE);
DefDimTemp.DELETE;
END;
*This post is locked for comments