Renaming of report's name that is attached in email based on the parameters set by the users

SOLVED

Hi everyone,

The current report name in the email: jobrpt_YNA-CUSSTA2.pdf
(The YNA-CUSSTA2 is the name of the report)

Expected report name: 

if the user selects one business partner : SOA_BusinessPartnerName.pdf
If the user selects more than one BP       : SOA_FirstBpCode-LastBpCode.pdf

Is there any way to rename the report in email by using the parameters selected by the user like the above examples? I can modify the report name if the destination is PDF, but have no idea how to do it in Email

Thanks in advance for the assistance.