ZUGFeRD invoices can be send from the EPO outgoing ledger - report via e-mail. The e-mail object is filled by means of the function module /EPO1/INV_LED_ZUG_SEND_EMAIL.
The customizing on this page requires the basic configuration according to the ZUGFeRD installation.
The e-mail object is created by the function module /EPO1/INV_LED_ZUG_SEND_EMAIL and the class /EPO1/CL_INVOICE_EMAIL. The creation depends on some settings (customizing / texts).
sender
/EPO1/CL_INVOICE_EMAIL->GET_SENDER reads the sender, depending on the field EMAIL_SENDER in table /EPO1/OI_INVTYPE:
receiver(s)
/EPO1/CL_INVOICE_EMAIL->GET_RECEIVER_LINES reads the already prepared receiver-list from the EPO outgoing ledger table /EPO1/OI_RECIP
subject
/EPO1/CL_INVOICE_EMAIL->GET_SUBJECT tries to read the text from different sources:
mail body
/EPO1/CL_INVOICE_EMAIL->GET_BODY tries to read the text from different sources:
For user-defined texts, maintain texts with transaction SO10 in each required language (text name '/EPO1/INV_EMAIL_SUBJECT' and/or '/EPO1/INV_EMAIL_BODY', text-id 'ST').
For custom texts, the class /EPO1/CL_INVOICE_EMAIL can be derived to a Z-class with redefined methods. Maintain table /EPO1/SUBCLASSES with the key 'ZUGF' and the name of the Z-class.
Transaction: /EPO1/EXC
EPO connector menu / EPO Connector Sonfiguration / Maintain EPO Connector Services
Create a new service:
Service | EPO_ZF_EMAIL |
---|---|
Direction of service | O Out of SAP |
Operation mandatory | X |
Description | e-mail for ZUGFeRD |
Note: leave other fields empty
Create a new service configuration
Service | EPO_ZF_EMAIL |
---|---|
Direction of service | O Out of SAP |
Operation | |
NR object | /EPO1/NOR |
Number Range Number | 01 |
Protocol | 3 UM - E-Mail via SOST |
Processing type | S Synchronous |
Message (+hd) | X store in- and outbound data |
Meta data (+hd) | O store outbound data |
UM sender | ?? optional: enter a 'fall back' SAP-user for the sender e-mail address |
UM content type | HTM Content-Type: text/html |
UM attachment type | A as attachment |
FILE,UM compression | No compression |
FILE,UM comp>n Bytes | 0 |
Description | send e-mail via SCOT / SOST |
Note: leave other fields empty
Set/adjust the operation and the sender type for e-mail sending:
field ServiceId OIL
field Sender type