AX Inventory Report

look at the cross references of that method, to understand how to use it.