Hello.
As this selection Screen is linked to called query you can´t add any selection criteria by calling functionmodule.
The first Routine list all available SAP sessions info´s and store them in an Range on a sheet.
This is used as source for userform listbox.
Second Routine adopt selected line (Session-ID) from listbox to an object for VBA coding.