How to access data for GLCntrlAcct table from UD109?

I have a button that uses GLCntrlAdapter to search for control code. I want to limit searchable control codes based on SegValue3 of the control account for the control code type. To do this I need to loop through GLCntrlAcct table and identify control codes that meet my criteria and only display control codes that meet this criteria.
How can I query GLCntrlAcct table from UD109?

How about using baq results as a dataset