Configure E-mail¶
This use case describes how to configure distribution via the EMAIL channel: PLOSSYS Distribution Engine creates an e-mail with the form and the original files of a SAP structure as attachment, optionally merged into one PDF or ZIP file. The e-mail can be re-archived into the attachment list of the SAP structure.
Prerequisites¶
- SAP DDD is connected to PLOSSYS Distribution Engine, refer to Architecture Overview. For the SAP-side setup, refer to the chapter "Output via PLOSSYS Distribution Engine" in the SAP Document Distribution Director documentation.
- SAP transaction
/n/seal/imgis available.
Activate the E-mail Channel¶
To activate the E-mail channel, execute the following steps in SAP:
-
Start transaction
/n/seal/img. -
Navigate to
SEAL BC Sets→BC Sets PLOSSYS Distribution Engine(BC Set/SEAL/DDD_DST_DEV, registers theEMAILoutput device together withFILEOUTandWEBPORTALin one shared BC Set). -
Check the delivered defaults and activate the BC Set for the desired SAP order type, for example
PUR. -
Also activate
/SEAL/DDD_DST_EMAILfor the same order type. It presets the menu function, user exits, and the mandatoryMAILRECEIVER/MAILSENDER/MAILSUBJECTsettings.
Hint - related BC Set
/SEAL/DDD_DST_EMAIL_DAT presets DIST_CONFIG and QUEUE to EMAIL for order type PUR.
Configure the Distribution Engine Server¶
Execute the following steps on the Distribution Engine server:
-
Open the
<DIST_CONFIG>.inifile selected by theDIST_CONFIGparameter:- Windows:
D:\SEAL\customer\server\dpf\conf\dpf4distribute\email.ini(default installation drive) - Linux:
/opt/seal/server/dpf/conf/dpf4distribute/email.ini
Hint - only the file name is configurable
The directory is fixed. Only the file name changes, following the
DIST_CONFIGvalue passed from SAP. Confirmed against a May 2026 test server configuration, which uses this per-channel file selection. - Windows:
-
Add the channel activation entry:
DistChannel_1 = dpf4distribute.DistributeMail -
Set the mail server connection parameters, for example:
JavaMailWorker_MailAuthType = "" JavaMailWorker_MailPassword = "" JavaMailWorker_MailSendPort = 25 JavaMailWorker_MailSendProtocol = SMTP JavaMailWorker_MailSendHost = <smtp-relay-host>
Caution - DistChannel_1 is required
Without a DistChannel_n entry pointing to dpf4distribute.DistributeMail, no mail is sent even if the SAP-side BC Set is fully activated. This is the step that actually connects the EMAIL channel to the mail-sending workflow on the Distribution Engine server.
Remove Parameters Not Needed for E-mail¶
If unrelated parameters are not removed, they can cause error messages for the EMAIL channel. Remove them in SAP:
-
Navigate to
Grundeinstellungen→Parameter-Konfiguration→Parameter festlegen (Detail)(table/seal/out_cr010). -
Delete the row for your order type (for example
PUR) with parameter IDMAILFILENAME.
Enable Re-archiving (Optional)¶
By default, the BC Set delivers re-archiving via SAP ArchiveLink (SEAL ArchiveLink File Loader), document type Bestellung, MIME type PDF. Execute the following steps in SAP:
-
In addition to the E-mail BC Set, activate under
DDD BC Sets - SAP Upload:-
BC Set aktivieren - SAP UploadBC Sets:
/SEAL/DDD_UPL_DAT,/SEAL/DDD_UPL_PARConfirmed presets for order type
PUR:DPFL_VARIANT,SAPAL_ARCHIVEID,SAPAL_DESCRIPTION,SAPAL_DOCCLASS -
Either
BC Set aktivieren - SEAL Generic Object Loader(/seal/lad_go) orBC Set aktivieren - SEAL ArchiveLink Loader(/seal/lad_al), depending on the upload variant used.Hint - source
Both BC Set IDs confirmed in the Document Distribution Director System Description, version 1.5.0 (2025-04-17).
-
-
If you use the SAP ArchiveLink File Loader as upload variant, set the following parameters:
SAPAL_ARCHIVEID: mandatory, ArchiveLink archive to store the document in, no default — must be set to a customer-specific archive, for exampleZ7.SAPAL_DESCRIPTION: optional, free-text description shown in ArchiveLink, default provided by the BC Set.SAPAL_DOCCLASS: optional, ArchiveLink document class, defaultBestellung(BC Set default), for exampleMEOORDER.SAPAL_DOCTYPE: optional, ArchiveLink document type/MIME type, defaultPortable Document Format(BC Set default), for examplePDF.
Activate re-archiving with the following steps on the Distribution Engine server:
-
Copy the configuration file:
- Source:
applications/server/dpf/conf/dpf4distribute/email.ini - Target:
customer/server/dpf/conf/dpf4distribute/email.ini
- Source:
-
Open the copied file and set:
WantArchiveMail = Y -
Run
dpfupdate.
Hint - alternative upload variant
Instead of the SAP ArchiveLink File Loader, you can use the SEAL Generic Object Loader (DPFL_VARIANT = SAPGO) or disable the upload entirely (DPFL_VARIANT empty). Refer to SAP Archiving for the corresponding parameters.
Advanced Configuration¶
Settings in SAP¶
DIST_TYPE: attachment type of a document,ZIP,MERGE,NATIVE, orPDF. Set it on order level as the default. Override it on document or file level. Default:MERGEon order level,NATIVEfor the form, object type/seal/0300.PLS_MAIL_ZIP: packs all attachments of the e-mail into one ZIP file, if set toY. Default:N.PLS_MAIL_ZIPFILENAME: file name of the ZIP file. Default:attachmentsZip.zip.MAIL_RECEIVER_CCandMAIL_RECEIVER_BCC: CC and BCC receivers, set on order level. Also requires the keysJavaMailWorker_MessageCcAddrListandJavaMailWorker_MessageBccAddrListon the Distribution Engine server.SAP_UPLOAD_FORMAT= EML: re-archives the e-mail instead of the PDF. Requires the SEAL Generic Object Loader instead of the SAP ArchiveLink File Loader. Also requires an ArchiveLink document type such asZEMLwith MIME typemessage/rfc822.- E-mail text: standard text in transaction
SO10. Assign a custom standard text to the order type viaTextvorlagen und Rückmeldungseinstellungen. Default:/seal/out_ml_mm_raw. - PDF/A check profile: check profile for the re-archived PDF, for example
PDFA2B.
Settings on the Distribution Engine Server¶
JavaMailWorker_MessageAttachments_MaxSize: maximum size of the attachments of one e-mail, as an integer in MB without unit. 1 MB counts as 1,000,000 bytes. Larger attachments are distributed across several e-mails. WithPLS_MAIL_ZIP= Y, they are distributed across several ZIP files. Set it indpf4distribute.customer.ini. Default:20.JavaMailWorker_MessageCcAddrList: CC receivers of the e-mail, set indpf4distribute.ini. Default:%PLS_RECEIVER_CC%.JavaMailWorker_MessageBccAddrList: BCC receivers of the e-mail, set indpf4distribute.ini. Default:%PLS_RECEIVER_BCC%.
Validate¶
-
In SAP, trigger a message for a purchase order (transaction
me22n). -
In SAP, check that the DDD output order was created, and that the
AusgabeparameterandSAP Uploadtabs match your configuration. -
On the Distribution Engine server, check that the output order was processed in the DPF Tracker.
-
Check that the e-mail was sent with the expected attachments.
-
If re-archiving is enabled, check in SAP that the object was re-archived into the attachment list of the purchase order.