How best to approach developing call to procedure for a value to be used

Hi, I have a grid that allows me to select rows of temporary items (bank statement items) and turn them into transactions. Then in the main bank account transaction grid I can edit these items and add (Master/Detail) general ledger codes and complete the double entry bookkeeping (Allocations).

What I now want to see if I can do it, is in the temporary grid, I want to be able to select a general ledger code and do a multiple select and create all of the Transaction and allocation entries in one go.

I can create a new button to do this, and I can handle the creation of entries, EXCEPT that I need to obtain the general ledger code while the grid is open.

What suggestions to do this? Under the button do I do a sc_redir() in a modal window, and set the general ledger code as a global variable, and have sc_redir() back?

Or, can I add a drop down list on the toolbar with general ledger codes? Not sure if or how to do this.

Can a search be added to the grid to access the code (It would be just a lookup)

Any suggestions welcome.

See ya
Tony