cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Mail using PDF Printer

Former Member
0 Kudos

Hi

What are the print Parameter or is it possible to send output (through ABAP) using a PDF type Printer.

We can able to select PFD1 Printer and input the recepient Email ID and send output as a PDF over email. This os working correctly.

We are trying to use PRINT PARAMETER to make defult printer as PFD1. However, we do not know where to give the EMAIL ID of recepient in the PRINT PARAMETERS for this.

Please help.

- Sunil Kolambkar

Accepted Solutions (0)

Answers (2)

Answers (2)

aidan_black
Active Contributor
0 Kudos

Hi,

When you call the sapscript funtion module, there is a parameter DEVICE. If you set this to 'MAIL', then instead of creatign a spool, the Sapconnect interface processes the OTF data and sends an email with PDF attachment. Parameter MAIL_RECIPIENT can be used for the address.

Another possibilty is to create a spool as normal, then use a function module like CONVERT_OTF to convert the spool to PDF. Finally see example program BCS_EXAMPLE_8 about how to handle the sending of the created PDF data.(see SAP note #1324547)

regards,

Aidan

Former Member
0 Kudos

Hi,

If you intend to send smartform as an email, why dont you convert it to pdf and tehn send as an attachment.

[http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformasaPDFtoMailid].

I doubt if we have some print parameter to pass email id.

Former Member
0 Kudos

Dear SAP_Wiz

Thanks

It is a sapscript out put.

Converting output to spool and then to PDF is definetly a way.

However, seens SAP has already provided a PDF printer and which asked for email as parameter, It could be easy.

Is email ID as parameter is really not there is PRINT PARAMETER. ????

- SUNIL

Former Member
0 Kudos

No i dont think so.

check this link containing details of teh parameters.

[http://help.sap.com/saphelp_nw70/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/content.htm]