Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the program name of the scheduled background job sent to external mail

Former Member
0 Kudos
578

Hi Gurus,

I scheduled a background job to run at a particular time and the output should be sent to a mail which is working perfectly but the issue am having is that the attachment in the mail is coming in the name of the program name. How do I change the program name to the actual description of the report.

6 REPLIES 6

Sandra_Rossi
Active Contributor
0 Kudos
291

Is the attachment issued from the spool generated by the program? If yes, then you can define the spool properties within the job (print specifications -> more properties -> spool request name).

If no, please explain where this attachment comes from.

0 Kudos
291

Hi Sandra,

The attachment is coming from the scheduled background job of a particular transaction code.

0 Kudos
291

Hi Sandra,

When I ran the tcode ME2L and scheduled it to run at the background and the output should be sent to a mail address which is fine but I want the name of the attachment to be the description of the report like Purchasing document list report but the name of the attachment is coming as Job RM06EL00 step 1.htm. How do I change the Job RM06EL00 step 1.htm to Purchasing document list report

0 Kudos
291

I think it's as I explained previously, after you click menu Program -> Schedule in background. In the popup, there's the button "properties" -> "spool request" -> "name". Could you try please?

0 Kudos
291

Hi Sandra,

I just tried it now but the name of the attachment still shows Job RM06EL00 Step 1.htm even after changing the name to purchase document report.

0 Kudos
291

Right. As far as I can see, the attachment name is the same as the mail title (subroutine create_packing_list in function module RSPO_SPOOLJOB_TO_OFFICE); the mail title can be set differently using instructions in note 1101211 - Using spool request title as e-mail title . So, I think, if you want to change the attachment name differently from the mail title, you should change the standard.