Hi,
Yes Surajit you will require the quantity variable as you need to return a value for that item in that particular location.
Qty calculates the values and then return it to DOTNET.
If you have issues in Dotnet part I have made a sample to consume data from this codeunit.