EPO Consulting Wiki - ZUGFeRD - installation - e-mail


This is an old version of this page. To the new page please click here

Das ist eine alte Version dieser Seite. Zur neuen Seite klicken sie hier

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 process of e-mail creation in simple steps

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:
  • OI-CREATOR: read the e-mail address of the creator (ERNAM) of the invoice (read from table VBRK)
  • ACTUAL-USR: read the e-mail address of the current user (dialog user or batchjob-user)
  • EPO-OPERAT: use the e-mail address of the user from the EPO operation (see below for details)


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:
  • read the SO10 - text '/EPO1/INV_EMAIL_SUBJECT', replaces the character '&' with the invoice number
  • if nothing found, read the standard texts from the report '/EPO1/SAPLINVOICE_PDF', concatenate line 001 / invoice number / line 003


mail body
/EPO1/CL_INVOICE_EMAIL->GET_BODY tries to read the text from different sources:
  • read the SO10 - text '/EPO1/INV_EMAIL_BODY'
  • if nothing found, read the standard text from the report '/EPO1/SAPLINVOICE_PDF', use line 003 as body text


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.

 

Customizing EPO-connector

Services

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

 

Outbound Service Configuration

Create a new service configuration

Service EPO_ZF_EMAIL
Direction of service O Out of SAP
Operation E-Mail
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

 

Table /EPO1/OI_INVTYPE

Set/adjust the operation and the sender type for e-mail sending:

field ServiceId OIL
  • EPO_ZF_EMAIL - the service id of the EPO e-mail service


field Sender type
  • ACTUAL_USR - use the e-mail address of the current SAP user (when using the EPO outgoing ledger report or batch user)
  • EPO_OPERAT - use the e-mail address of the user from the EPO operation 'EPO_ZF_EMAIL' (see above)
  • OI-CREATOR - use the e-mail address of the creator of the invoice