Function Module to find the background job name
I need to send a mail in the below format where the SUBJECT has to be replaced by background job name :
Subject : <Jobname>
The file extract <file name > to GTS could not be distributed to GTS due to fatal technical errors.
Hence, is there any Function Module to find the job name else what r other options to find the same?