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: 

Change e-mail subject during printing to a MAIL printer device

Former Member
0 Kudos

Hi!

I set up a printer device (called MAIL) in SPAD for sending e-mails, using this link:

http://help.sap.com/saphelp_nwmobile711/helpdata/en/ae/16193ce8fac413e10000000a114084/frameset.htm

It's working almost fine, e-mail has been sent successfully.

I can use it for e-mailing everything, even spool requests.

However if I wanted to print using this device, the outbound e-mails has the following problems:

- the e-mail title, subject has been changed. For example a spool request title is "Invoice 123", then the outbound e-mail's subject will be "DEV12345-1: Invoice 123". So SAP adds a SYSTEM ID (DEV) and the SPOOL REQUEST NR (12345), and a PRINT COUNT(-1) in front of the original title.

- the e-mail body contains a SAP standard text:

The Mail Attachment Contains the Print File Created by User <SY-UNAME> , with Number <Spool number> from SAP System <SID> .

To Print the Data, Open the Mail Attachment with a Suitable Program and Print the Document.

- the printed spool request is attached as an e-mail attachment, with a standard name

How can I customize the outbound e-mails subject, body and attachment's name?

Thank you.

Tamas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Tamas,

Refer SAP Note 1101211 - Using spool request title as e-mail title.

Basically, call the report RSPO0021 and activate the entry USE_SPOOL_TITLE. The title of the spool request is used for the e-mail

Best,

Abhijith

1 REPLY 1

Former Member
0 Kudos

Hi Tamas,

Refer SAP Note 1101211 - Using spool request title as e-mail title.

Basically, call the report RSPO0021 and activate the entry USE_SPOOL_TITLE. The title of the spool request is used for the e-mail

Best,

Abhijith