THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
There is an example of how to do this in the Facilities application.
Tthe example is at https://localhost:8443demo-trunk.ofbiz.apache.org/facility/control/ViewFacilityInventoryByProduct?facilityId=WebStoreWarehouse.
You need to generate the list by using the "Find" button before exporting using the "Export" button.
...