How to Retrieve Financial Dimension Value Description with SQL in D365FO
In this post, we will explore how to retrieve the description of a financial dimension value in an ERP or financial management system using a specific SQL query in D365FO.
The Query
SELECT DIMATTVALUE.DISPLAYVALUE AS 'DIMENSIONVALUE',
DIMATT.NAME AS 'FINANCIALDIMENSION',
DIMATTVALUE.ISSUSPENDED,
HCMWORKER.PERSONNELNUMBER AS 'OWNER',
DimFinTag.DESCRIPTION
FROM DIMENSIONATTRIBUTEVALUE AS DIMATTVALUE
LEFT JOIN HCMWORKER ON DIMATTVALUE.OWNER = HCMWORKER.RECID
JOIN DIMENSIONATTRIBUTE AS DIMATT ON DIMATT.RECID = DIMATTVALUE.DIMENSIONATTRIBUTE
JOIN DIMENSIONATTRIBUTEDIRCATEGORY dimAttDirCategory
ON dimAttDirCategory.DIMENSIONATTRIBUTE = DIMATTVALUE.DIMENSIONATTRIBUTE
JOIN DIMENSIONFINANCIALTAG DimFinTag ON DIMATTVALUE.DISPLAYVALUE = DimFinTag.VALUE
AND DimFinTag.FINANCIALTAGCATEGORY = dimAttDirCategory.DIRCATEGORY
WHERE DIMATTVALUE.ISDELETED = 0
AND DIMATTVALUE.ISSUSPENDED = 0
No comments:
Post a Comment