3 Methods To Generate A PDF Output and Send Using Floe SAP
3 Methods To Generate A PDF Output and Send Using Floe SAP
Technical Articles
Chris Scott
November 24, 2022 | 3 minute read
It’s never been easier to generate powerful dynamic emails from SAP using Floe. In many cases,
Like the email can replace old PDF outputs generated by SAPScript, Smartforms or Adobe forms.
But in some scenarios there is still a valid business need to include an attachment with the
outbound email.
RSS Feed
There are multiple ways to generate the PDF and attach it to the email. Here are three methods,
rising in complexity…
1) Floe
By far the easiest method is to build the output template in Floe Designer.
The process is exactly the same as designing a dynamic email template in Floe, but you can add
PDF options:
Then simply reference the template type as an attachment in the outbound email settings:
Then, in your output program, simply call the Floe API and the PDF will be automatically
generated and added to the email:
This method requires a subscription to Renda.io, which integrates seamlessly with Floe for PDF
generation.
The form �eld design is handled by Varo, and the �elds arranged in Adobe Designer.
Then when you call the output program, you need to pass in two template types – one for the
Floe email template and the other for the Varo form template:
Then in the output program you need to call the Varo function to return the PDF:
And then add this to the Floe attachments import parameter before calling the Floe API:
*-------------------------------------------------------------------
* Fill attachment
*
CONCATENATE 'Order_' lv_order '.pdf' INTO ls_attach-att_filename.
ls_attach-att_description = 'Order_output'.
ls_attach-att_data = lv_pdf.
APPEND ls_attach TO lt_attach.
ENDIF.
ENDIF.
*
*-------------------------------------------------------------------
3 ) F l o e a n d I f BA
In scenarios where you already have a PDF template de�ned using Interactive Forms by Adobe,
then you can generate the PDF, then add it to the Floe attachments table as above.
In order to generate the PDF you �rst need to set output settings:
ls_outputparams-nodialog = abap_true.
ls_outputparams-connection = 'ADS'.
ls_outputparams-getpdf = abap_true.
ls_outputparams-preview = abap_false.
Then follow the process to call ADS to print the PDF, but the output settings will return the PDF
�le rather than send to the SAP Spool.
…
PERFORM get_output_params
…
Summary
Using Floe alone (with Renda.io) is comfortably the easiest way to manage PDF output
templates, but you can use any other means to generate a PDF and then send as an email
attachment with Floe.
Of course, it’s even better if you can get rid of the attachment entirely.
Assigned Tags Alert Moderator
Related Questions
PO output as PDF PDF format PO send to Vendor
By Former Member Aug 04, 2008 By sapman man Aug 25, 2011