Below X++ code to get Transit Warehouse stock on hand . You can try on Job and run. Thanks. InventSum inventSum; InventDim inventDim; InventDimParm inventDimParm; InventLocation inventLocation; Qty qtyPhysical, qtyOrdered, qtyAvailable; WarehouseId transitWarehouseId = 'TRN0001'; // Replace with your transit warehouse ID // Find the warehouse record inventLocation = InventLocation::find(transitWarehouseId); if (!inventLocation) { info(strFmt("Warehouse %1 not found.", transitWarehouseId)); return; } // Build dimension parameters inventDimParm.initFromInventDim(InventDim::find(inventLocation.InventLocationId)); // Query InventSum for stock in the transit warehouse while select inventSum join inventDim...
Microsoft Dynamics Ax,AIF,Axapta, Enterprise portal,,Microsoft , United State,U.S., SharePoint , BI Tools, Performance Tuning, SSRS,Business Logic,Ax ERP Errors and solution,Dynamics 365 Errors Solution,Business software .