Inventory Transfer Allocated Stock

Hello,

I have a similar issue, but I’m working in an Epicor Function. Any idea how to access this functionality (UpdPQDemand) from an Epicor Function?