Fetch product number and storage dimension group in AX 2012 using SQL Query

Hi Readers,

Today, in this post we will share a SQL Query to fetch product number and storage dimension group in AX 2012.

Requirement:

We need to fetch product number and storage dimension group in AX 2012.


Solution:
  • Open SQL Server Management Studio (SSMS) and create a new query.
  • Copy, paste the below query and execute it.
-- SQL Query written by Chirag Gupta
select EcoResProduct.DISPLAYPRODUCTNUMBER as 'Product Number', 
EcoResStorageDimensionGroup.NAME as 'Storage Dimension Group' 
from EcoResStorageDimensionGroup
join EcoResStorageDimensionGroupProduct
on EcoResStorageDimensionGroupProduct.STORAGEDIMENSIONGROUP = EcoResStorageDimensionGroup.RECID
join EcoResProduct
on EcoResStorageDimensionGroupProduct.PRODUCT = EcoResProduct.RECID
where EcoResStorageDimensionGroup.NAME = 'SWL'


We hope this solution helped you to fetch product number and storage dimension group in AX 2012 using SQL Query. Please comment your valuable feedback for this article...

Author:
Chirag Gupta
Microsoft Dynamics D365/AX 2012
Senior Technical Consultant at IBM Bangalore

Date:
10-Apr-2020

Happy Learning !!

Comments

Post a Comment

Popular posts from this blog

[Solved] : Error: String or binary data would be truncated. Cannot execute a data definition language command on Vendor (VendLedgerReconciliationTmp)

AX 2012 - Command prompt compilation / AxBuild.exe for Parallel Compile on AOS of X++ to P-code / Parallel Compilation

AX 2012 - How to send SSRS report in email as an attachment using X++

AX 2012 - How to stop AOS when services got stuck at stopping status

AX 2012 - How to make a form field mandatory

Error: There was no endpoint listening at net.tcp://your_server_name:8201/Dynamics AX/Services…

Fetch vendor address using X++ in AX 2012

AX 2012 - How to print current date and time on SSRS Report

[Error] - Error in unit of amount in currency KES. Must be rounded to 0.01 | The unit of 37.563.5343100000000000 KES being posted to account 32710001-- is outside the current penny rounding threshold | Posting has been canceled

[Solved] : AX 2012 - No connection could be made because the target machine actively refused it 192.168.10.249:8201