Edit: as pointed out this is for ledger dimension and not default dimension, but I'll leave it for info:
Check out the DimensionAttributeLevelValueAllView
view. It contains all the data you need.
- Filter on the
DimensionAttributeValueGroup
field using the ledgerdimension recid from ledgerjournaltrans.
- The
DisplayValue
contains the value of the dimension
- The
DimensionAttribute
field refers to the dimension, for example the department, and it links to the DimensionAttribute
table. This is setup so you'll have to store the recid for the department somewhere and join with this setup field. Otherwise there is no way to 'know' which of those dimensions the department dimension is.