It is Finance And Operations version - 10.0.35 Dev VHD setup.
I have a requirement of fetching entire inventory data across all legal entities/companies.
So I have created x++ class to make a select query for entity "InventWarehouseInventoryStatusOnHandEntity" with cross-company enabled as shown below..
InventWarehouseInventoryStatusOnHandEntity inventoryDetails;
while select crosscompany DataAreaId,ItemNumber,ProductColorId,ProductConfigurationId,ProductSizeId,ProductStyleId ,InventorySiteId, InventoryWarehouseId,InventoryStatusId,AvailableOnHandQuantity,ReservedOnHandQuantity,AvailableOrderedQuantity,ProductName,ReservedOrderedQuantity,OnHandQuantity, AreWarehouseManagementProcessesUsed,OrderedQuantity, OnOrderQuantity,TotalAvailableQuantity from inventoryDetails
{
// entity data conversion to json object
}
But this approach is throwing memory issue..
is there any other way to fetch the bulk data efficiently ??