Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Changing Subject of Mail sent through "Spool Recipient"

$
0
0

Scenario: We usually use the “Spool Recipient” of the SM37 Background Job  to send the Spool Outputs to designated users
in their Work Place Inbox.

 

Spool Recipient:

1.jpg


Workplace Inbox:

2.jpg

 

If you notice the Subject of the Item, it takes theBackground Jobs Name & Step Number & we obviously Didn’t Like that

 

3.jpg

 

What we did:

 

After some research, we stumbled upon one SAP Note which will allow us this to change.

 

Note number: 1101211 - Using spool request title as e-mail  title.

 

This Note allows you to set the Title of your Email to be  the Title of your Spool Request.

 

So, We thought if we could have our Spool contain the Namewhich we wanted, it would definitely flow to the Title of the Email sent to Workplace Inbox,

We went about this in 2 Steps

 

  1. Do what the SAP Note said

 

Run the Program RSPO0021 with the Below Parameters:

 

4.jpg

 

Once this is done, we proceed with a way to change the Spool Request Name.

 

 

2.   Since ours was a Custom Program calling a Standard Program, we passed the Name we wanted to the Spool Parameters Id along with the Calling
Program.

 

In the Below screenshot we call the Standard Program “RFEBCK00”,so in the Spool  Parameters we passed the needed values.

 

5.jpg


6.jpg

 

So, if your case is a Standard Program just change it in the Spool Title” while setting the Print Parameters.

 

 

 

After these changes we ran the Custom Program and went to check the Output and see if the Name on the work item is changed


We checked first if the Spool got the Name we wanted,

7.jpg

The above screen says we did!

 

Next, we want to check the all Important One

 

8.jpg

 

Thankfully the effort paid off !


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>