Reservation for quantity on transferOrder line.

Hi i have tried reserving qunaity on a transferOrder Line using the below code.

static void reserveQuantity(Args _args)


InventTransferLine transferLine;

InventDim InventDim;

InventUpd_Reservation reservation;

InventMovement InventMovement;


select transferLine where transferLine.InventTransId == “002375”;

InventDim = InventDim::find(transferLine.InventDimId);

InventMovement = InventMovement::construct(transferLine,InventMovSubType::None);

reservation = InventUpd_Reservation::newinventdim(InventMovement,InventDim, -2,false);


But, i did not see anything reserved for this. please suggest me how can i i achieve this.