Question: getting the next HeadNum value for Cash Receipts?

I’m trying to convert a program we have for E9 to a C# program in E10.2.200 that creates files for DMT to load a Cash Receipts batch. The current program uses the CURRENT-VALUE(CashHeadSeq) from Progress to get the last Cash Receipt HeadNum value, however I can’t find an equivalent method to do the same thing in E10. Has anyone found a solution for this issue? Any help is greatly appreciated!