Skip to Content
Author's profile photo Former Member

Changing Subject of Mail sent through “Spool Recipient”

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:

/wp-content/uploads/2013/12/1_342552.jpg

Workplace Inbox:

/wp-content/uploads/2013/12/2_342553.jpg

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

/wp-content/uploads/2013/12/3_342578.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:

/wp-content/uploads/2013/12/4_342579.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.

/wp-content/uploads/2013/12/5_342580.jpg

/wp-content/uploads/2013/12/6_342582.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,

/wp-content/uploads/2013/12/7_342584.jpg

The above screen says we did!

Next, we want to check the all Important One

/wp-content/uploads/2013/12/8_342586.jpg

Thankfully the effort paid off !

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Great help to me. Thanks for sharing.

      Regards,

      Archer

      Author's profile photo Former Member
      Former Member

      Nice to know this.. Thanks for your help on sharing this useful article...

      Author's profile photo Former Member
      Former Member

      Dear Ram,

      Thanks for sharing, it helped a lot!

      Author's profile photo RAMESH PRUSTY
      RAMESH PRUSTY

      Dear Ram,

      Nice document , Very useful ..

      Regards

      Ramesh

      Author's profile photo Ronald Ouma
      Ronald Ouma

      Thanks a lot Ram. This has been very useful for me.

       

      Question. Can the same be used to add an email body?

      Regards,

      Ouma

      Author's profile photo Vladislav Solovyov
      Vladislav Solovyov

      Hello!

       

      Have you found the way to solve this problem (i have a neccesity to use text body  an email)

       

      Regards