How to use reservation to reserve the quantity for multiple orders at same time?

Hi,

I want to use existing reservation functionality to reserve quantity for all open orders at same time by creating new form.

We have planned to use existing class InventOnhandReserve à ReserveNow(true,invent_sum buffer,allocated quantity,invent dim id) method but throwing error that initialization required although construct method is used.

Please help.