BP_JOB_SELECT: Read Jobs from Database
Returns the set of jobs (records of the form TBTCJOB) that match the selection criteria that you specify.
You can use BP_JOB_SELECT to collect a set of jobs that you wish to process further. For example, you could select jobs that match a particular naming convention and check their status with the field TBTCJOB-STATUS.
For a sample program containing BP_JOB_SELECT, please see the online documentation in the function module facility (transaction SE37)
Selecting and Deleting a Job.