Vielleicht geht hiermit:

Retrieve Identity of Last Spooled File Created (QSPRILSP) API