Q

How to send a spool request as a PDF to an SAP inbox

Matt Billingham, application development expert, responds to a reader question on how to send a spool request as a PDF document to an SAP inbox in this expert tip.

I'm trying to send a spool request as a PDF document to an SAP inbox. I have managed to translate the report into a PDF format and write it to my hard drive using CONVERT_ABAPSPOOLJOB_2_PDF and WS_DOWNLOAD, but I want to send it as an attachment to an SAP inbox instead of downloading the file.

I found the function module SO_NEW_DOCUMETN_ATT-SEND_API1, but I'm not sure if this will work, or how to use i...

t.

SO_NEW_DOCUMENT_ATT_SEND_API1 will work. You need to get the PDF into an internal table in memory -- which you can access from the OTF in the spool, using FM CONVERT_OTF.

SO_NEW_DOCUMENT_ATT_SEND_API1 is one of the FMs that has valuable online documentation to help you use it.

This was last published in April 2006

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close